Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Creating my own editor(Creating a new editor based on WB)
Creating my own editor [message #1449483] Tue, 21 October 2014 12:32 Go to next message
Rafael Barioni is currently offline Rafael BarioniFriend
Messages: 18
Registered: October 2014
Junior Member
Hello everyone.

I´m trying to create my own editor, based on WB here.
So, I copied/pasted some code from Swing editor from WB and tried to change it here.

But, things are getting ugly here. Mad

Maybe I started it wrong.
Did anyone do this before and could give me some help?

Any suggestions are welcome.

Thanks a lot.
Re: Creating my own editor [message #1450501 is a reply to message #1449483] Wed, 22 October 2014 14:06 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
That is a very open ended question. You should probably start with something much more specific.

Have you done Eclipse plugin development before? You need to be very familiar with the general process of Eclipse plugin development before even considering extending WB.

Starting by cloning either Swing Designer or SWT Designer is a reasonable approach to creating your own UI builder, but you need to understand the Eclipse core as well as the WB code pretty well.
Re: Creating my own editor [message #1450507 is a reply to message #1450501] Wed, 22 October 2014 14:13 Go to previous messageGo to next message
Rafael Barioni is currently offline Rafael BarioniFriend
Messages: 18
Registered: October 2014
Junior Member
Thanks Eric.
I already did some things here. I could make it create files I need and open the editor with my main form component.

Now, what I can´t do is to add my list of components to Palette and make it add one of them to main form.
I´m trying to debug WB here, but still didn´t find the code that does that part.

Thanks again.
Re: Creating my own editor [message #1450522 is a reply to message #1450507] Wed, 22 October 2014 14:25 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
Look at all of the in the *.wbp-component.xml files in the org.eclipse.wb.rcp or org.eclipse.wb.swing plugins.
Re: Creating my own editor [message #1450568 is a reply to message #1450522] Wed, 22 October 2014 15:33 Go to previous messageGo to next message
Rafael Barioni is currently offline Rafael BarioniFriend
Messages: 18
Registered: October 2014
Junior Member
Hi Erick.

I created the XML file here for a component. Here:

<?xml version="1.0" encoding="UTF-8"?>
<component xmlns="http://www.eclipse.org/wb/WBPComponent">
	<description>An implementation of a "push" button.</description>
	<!-- CREATION -->
	<creation>
		<source><![CDATA[new TButton("New button")]]></source>
	</creation>
	<!-- CONSTRUCTORS -->
	<constructors>
	</constructors>
	<!-- PROPERTIES -->
	<properties-preferred names="icon"/>
	<properties-advanced names="defaultCapable selected"/>
	<!-- MORPHING -->
	<morphTargets>
	</morphTargets>
	<!-- PARAMETERS -->
	<parameters>
	</parameters>
</component>


But it doesn´t show up in palette. Also added it to plugin.xml file, in < palette > tag.

Need anything else?
Re: Creating my own editor [message #1462459 is a reply to message #1450568] Wed, 05 November 2014 15:49 Go to previous message
Rafael Barioni is currently offline Rafael BarioniFriend
Messages: 18
Registered: October 2014
Junior Member
Hello again.

I could add my component to my Palette here, but still can´t drag it to my Form.
I can select it, but it doesn´t let me paste it into my main component.

Can anyone help with this now?
Thanks a lot.
Previous Topic:changing text of tree items
Next Topic:Adding control freezes Eclipse
Goto Forum:
  


Current Time: Sat Apr 20 02:27:15 GMT 2024

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

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

Back to the top