Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Customization of Palette and Properties
Customization of Palette and Properties [message #923278] Tue, 25 September 2012 15:38 Go to next message
illi g is currently offline illi g
Messages: 6
Registered: September 2012
Junior Member
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 #927100 is a reply to message #923278] Sat, 29 September 2012 04:50 Go to previous messageGo to next message
illi g is currently offline illi g
Messages: 6
Registered: September 2012
Junior Member
Hi,
I got it to work to some extent. But I wanted to show only my custom component properties not of super class (i.e. Composite) in properties pane.

Thanks.
Re: Customization of Palette and Properties [message #928170 is a reply to message #927100] Sun, 30 September 2012 07:29 Go to previous message
illi g is currently offline illi g
Messages: 6
Registered: September 2012
Junior Member
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);

}

}
Previous Topic:Binding to "nested" properties
Next Topic:windowbuilder exception showing the gui with seaglass L&F
Goto Forum:
  


Current Time: Wed Jul 23 12:20:24 EDT 2014

Powered by FUDForum. Page generated in 0.14913 seconds