Custom property editor SWT [message #1734452] |
Wed, 08 June 2016 13:21 |
Duong Vu Thai Messages: 1 Registered: June 2016 |
Junior Member |
|
|
Hi,
I'm trying to create a simple custom property editor. I want to use my own object MyProp(int, int, int, String) as input of a method in a custom composite setMyProp(MyProp[ ]) and when I click at "..." (design tab) of myprop, it should open my new shell and I can type my data there.
Here's my plugin.xml:
<plugin>
<extension point="org.eclipse.wb.core.propertyEditors">
<editor
class="org.eclipse.wb.internal.swt.model.property.editor.geometry.MyPropPropertyEditor"
type="duong.windowbuilder.composites.MyProp"/>
</extension>
</plugin>
I tried with configurableEditor, but it can not find configurable editor with my id if I write it in *.wbp-component.xml
Hope somebody can help me or show me steps to do it! Maybe I miss some important things.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02566 seconds