-
Notifications
You must be signed in to change notification settings - Fork 32
Designer 2.0 Property Editors with ID's.
<editor id="staticField">
<parameter name="class">javax.swing.SwingConstants</parameter>
<parameter name="fields">TOP CENTER BOTTOM</parameter>
</editor>Editor that allows the selection of one static field from a given class.
<editor id="style">
<parameter name="class">org.eclipse.swt.SWT</parameter>
<parameter name="set">BORDER FLAT</parameter>
<parameter name="select0">type PUSH PUSH CHECK RADIO TOGGLE ARROW</parameter>
<parameter name="select1">align LEFT LEFT CENTER RIGHT</parameter>
</editor>Complex editor for «int» property that supports two sets of sub-properties – set properties (zero or more can be selected) and select properties (only one can be selected).
For «select» properties, name should start with the word «select» and then some unique string, in «values» first word is title, second — default field name, rest of the words – names of static fields from class.
<editor id="innerClass">
<parameter name="mode">inner</parameter>
<parameter name="name">Sorter</parameter>
<parameter name="class">org.eclipse.jface.viewers.ViewerSorter</parameter>
<parameter name="source"><![CDATA[
private static class ${name} extends org.eclipse.jface.viewers.ViewerSorter {
public int compare(org.eclipse.jface.viewers.Viewer viewer, Object e1, Object e2) {
Object item1 = e1;
Object item2 = e2;
return 0;
}
}
]]></parameter>
</editor>Editor that allows the selection of existing class that extends type with «class» parameter (class or interface), or create new inner class using configured code.
Other parameters:
- name — default name of created class;
- class — the type to find subclasses;
- source — the source for creating new class.
<constructor>
<parameter type="org.eclipse.swt.widgets.Table" parent="true"/>
<parameter type="int">
<editor id="displayExpression"/>
</parameter>
</constructor>Editor that shows expression of property as it is written in source, but does not allow editing it.
<editor id="stringList">
<parameter name="ignoreCase">true</parameter>
<parameter-list name="strings">qtip</parameter-list>
<parameter-list name="strings">title</parameter-list>
<parameter-list name="strings">under</parameter-list>
<parameter-list name="strings">side</parameter-list>
</editor>Editor that allows user to choose from a list of strings.