Customization of Palette and Properties [message #923278] |
Tue, 25 September 2012 19:38  |
Eclipse User |
|
|
|
Hi,
I have been developing a plugin in which
1) I have tried to add a custom component which extends Composite and I would like to add it to palette permanently for my plugin with my own set of properties (properties that come from composite should be cleared for my custom component though It extends Composite).
For this how should I proceed? Please suggest some steps.
2) Also how can I set an icon for my custom component on palette.
Thanks in advance,
illi
|
|
|
|
Re: Customization of Palette and Properties [message #928170 is a reply to message #927100] |
Sun, 30 September 2012 11:29  |
Eclipse User |
|
|
|
I am facing below error for the model added for my custom component, can anyone tell what i am doing wrong here, (If model entry is commented in wbp-component.xml, it works fine.)
org.eclipse.wb.internal.core.utils.exception.DesignerException: 502 (Unable to load *.wbp-component.xml description.).
----------------------------------------------------------------------------
In *.wbp-component.xml file , below line added for my component model.
<model class="MyModel"/>
-------------------------------------------------------------------------------
public class MyModel extends JavaInfo {
public MyModel(AstEditor editor, ComponentDescription description, CreationSupport creationSupport) throws Exception {
super(editor, description, creationSupport);
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds