public class ValueDragData extends Object
Constructor and Description |
---|
ValueDragData(String expr,
Value valueIn,
Type declaredType,
Scope scopeIn,
String preferredViewer)
Creates a vew ValueDragData.
|
Modifier and Type | Method and Description |
---|---|
Type |
getDeclaredType()
Gets the declared type of the value being dragged.
|
String |
getExpression()
Gets the expression being dragged.
|
Scope |
getScope()
Gets the scope in which the expression is valid.
|
Value |
getValue()
Gets the value being dragged.
|
String |
getViewer()
Gets the class name of the preferred viewer.
|
public ValueDragData(String expr, Value valueIn, Type declaredType, Scope scopeIn, String preferredViewer)
expr
- the expression being dragged, or null if only by-value drags
are allowed.valueIn
- the value being dragged.declaredType
- the declared type of the value being dragged.scopeIn
- the scope in which the expr
is valid. Ignored
if expr
is null.preferredViewer
- the class name of the preferred viewer to use when
dropped, or null if the default should be used.public Type getDeclaredType()
public String getExpression()
public Scope getScope()
public Value getValue()
public String getViewer()