Skip to main content


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 19:38 Go to next message
Eclipse UserFriend
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 08:50 Go to previous messageGo to next message
Eclipse UserFriend
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 11:29 Go to previous message
Eclipse UserFriend
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: Sun Feb 09 09:18:12 GMT 2025

Powered by FUDForum. Page generated in 0.02997 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top