|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICompositeEditorOptions
An interface that provides support to the CompositeEditor class. Implementations of this interface provide supporting information to the CompositeEditor. The CompositeEditor uses this interface to determine what information to display when the CompositeEditor is rendered.
Field Summary | |
---|---|
static int |
TYPE_COMPUTED
int - An integer value used to represent an expression whose type is computed (value == 1). |
static int |
TYPE_LITERAL
int - An integer value used to represent an expression whose type is a literal (value == 0). |
static int |
TYPE_UNKNOWN
int - An integer value used to represent an expression whose type is unknown (value == -1). |
Method Summary | |
---|---|
java.lang.String |
callScriptDialog(CompositeEditor editor,
java.lang.String expression)
Launches a dialog that contains an editor capable of editing the script contained in the expression parameter. |
org.eclipse.swt.graphics.Image |
getScriptImageForDisplay(java.lang.String expression)
Given a particular script value this method will return an icon to represent that script. |
java.lang.String |
getScriptValueForDisplay(java.lang.String expression,
boolean includeLanguage)
Given a String representing the value of attribute that the PropertyEditor represents this method will return a String that is readable by end users. |
java.lang.String[] |
getSupportedScripts(IMember attribute)
Returns an array of java.lang.String s which represents the names of the Scripting languages that the
CompositeEditor needs to support. |
int |
getValueType(java.lang.String expression)
Returns the type of the provided expression. |
java.lang.String |
initValue(int type)
Initializes a new variable of the given type. |
Field Detail |
---|
static final int TYPE_UNKNOWN
static final int TYPE_LITERAL
static final int TYPE_COMPUTED
Method Detail |
---|
java.lang.String[] getSupportedScripts(IMember attribute)
java.lang.String
s which represents the names of the Scripting languages that the
CompositeEditor needs to support.
attribute
- an instance of the attribute that the PropertyEditor
associated with the CompositeEditor represents.
java.lang.String
int getValueType(java.lang.String expression)
TYPE_UNKNOWN
TYPE_COMPUTED
TYPE_LITERAL
expression
- a string expressing the value of the attributed associated with the CompositeEditor's PropertyEditor
java.lang.String initValue(int type)
TYPE_COMPUTED
the return value might be "#{javascript:}"
type
-
#TYPE_COMPUTED}
{@link #TYPE_LITERAL}
{@link #TYPE_UNKNOWN}
java.lang.String getScriptValueForDisplay(java.lang.String expression, boolean includeLanguage)
expression
- a string representation of the current value of the attribute represented by the PropertyEditorincludeLanguage
- a boolean flag that determines whether or not language information should be included in the return string.
org.eclipse.swt.graphics.Image getScriptImageForDisplay(java.lang.String expression)
expression
-
Image
#TYPE_COMPUTED}
{@link #TYPE_LITERAL}
{@link #TYPE_UNKNOWN}
java.lang.String callScriptDialog(CompositeEditor editor, java.lang.String expression)
editor
- expression
- the input expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |