|Window Builder Custom Toolkit [message #758184]
||Tue, 22 November 2011 09:37
Registered: November 2011
I'm in the process of creating a new window builder UI toolkit for a custom ui library i wrote (My UI Toolkit should use the XML window builder model so equivalent to the UiBinder GWT plugin)
So i created a new eclipse plugin extending the main wb extension points and provided the following sample model and corresponding edit parts:
1- PanelInfo, PanelEditPart and PanelFigure for a panel object
2- ButtonInfo, ButtonEditPart and ButtonFigure for a button object
In these classes, i've implemented all the necessary methods (createFigure, getModelChildren, refreshVisuals, etc ...)
Then in my design page parser class, i built a PanelInfo object and added to it two ButtonInfo objects using the addChild method:
PanelInfo panelInfo = new PanelInfo(editorContext, panelInfo.createComponentDescription(editorContext), PanelInfo.createCreationSupport());
ButtonInfo buttonInfo = new ButtonInfo(editorContext, ButtonInfo.createComponentDescription(editorContext), ButtonInfo.createCreationSupport());
ButtonInfo buttonInfo1 = new ButtonInfo(editorContext, ButtonInfo.createComponentDescription(editorContext), ButtonInfo.createCreationSupport());
The problem i'm having is that only the panel object is being correctly displayed and not the buttons (The buttons appear as a black very small square on the panel top left edge).
If in my parser class, i only return a ButtonInfo object, that button is correctly displayed.
Could you tell me please what's wrong and how to fix this?
|Re: Window Builder Custom Toolkit [message #856032 is a reply to message #855242]
||Wed, 25 April 2012 09:56
| user Kyle
Registered: April 2012
My UI Toolkit is not based on Swing, SWT or GWT, it's completly independent.|
Actually, I have a project with my own UI Toolkit. Then, I created some Widgets, Composites, etc. To facilitate the programation, I want to use a palette to generate the codes of th GUI.
So I want to create a plugin depends of windowbuilder.
For example, I have a project where I want to add a palette. So I select new Project Palette, I enter my project in the first section, but in the second section my UI Toolkit doesn't appear.
You know wich extension point is concerned?
Thaks for your time
PS: Where I can find a complete documentation on windowbuilder pro?
[Updated on: Wed, 25 April 2012 11:35]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02333 seconds