Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Extending the palette with custom widgets [Eclipse 3.2, VE 1.2]
Extending the palette with custom widgets [Eclipse 3.2, VE 1.2] [message #615058] Mon, 12 February 2007 11:26
Sébastien Alonzo is currently offline Sébastien AlonzoFriend
Messages: 94
Registered: July 2009
Member
Hi,

I want to extend the VE palette with some custom widgets I created
extending Swing components.

I managed to do it ever since the first releases of VE and so far I
could always update my plugin with every new version of VE/Eclipse.

Unfortunately it does not work anymore with VE 1.2 and Eclipse 3.2 and I
wonder what might be the proper way to do it since the only online
tutorial is not up to date (unless I'm mistaken it targets Eclipse 3.1
and VE 1.1)

Apparently my classpath container is not properly registered since it
does not appear in the available libraries.

Here is a snippet of my plugin.xml file :
(my plugin id is my.widgets.plugin)

<extension point="org.eclipse.jdt.core.classpathContainerInitializer">
<classpathContainerInitializer
class=" org.eclipse.ve.internal.java.core.RegisteredClasspathContain erInitializer "
id="CUSTOM_WIDGETS_CONTAINER">
</classpathContainerInitializer>
</extension>

<extension point="org.eclipse.jdt.ui.classpathContainerPage">
<classpathContainerPage name="%customWidgetsPage"
class=" org.eclipse.ve.internal.java.wizard.RegisteredClasspathConta inerWizardPage "
id="CUSTOM_WIDGETS_CONTAINER">
</classpathContainerPage>
</extension>

<extension point="org.eclipse.ve.java.core.registrations">
<registration container="CUSTOM_WIDGETS_CONTAINER"
description="Calypso widgets distribution">
<library runtime="bin/widgets.jar" source="src/widgets_src.zip" />
</registration>
</extension>

<extension point="org.eclipse.jem.beaninfo.registrations">
<registration container="CUSTOM_WIDGETS_CONTAINER"
plugin="my.widgets.plugin">
<beaninfo path="bin/widgets_dt.jar">
<searchpath package="my.widgets.beaninfo"/>
</beaninfo>
</registration>
</extension>

<extension point="org.eclipse.ve.java.core.contributors">
<palette container="CUSTOM_WIDGETS_CONTAINER"
plugin="my.widgets.plugin"
categories="palette.xmi">
</palette>
</extension>

I think my palette.xmi file is ok since I migrated it to match the ones
used in VE plugins (jfc and swt) but I have not been able to test it so
far ...

If anyone can tell me how to properly register a classpath container
with VE 1.2 I would greatly appreciate since I'm a bit stuck there.
Previous Topic:Extending the palette
Next Topic:Turn off visual editor preview pane
Goto Forum:
  


Current Time: Thu Apr 25 13:05:40 GMT 2024

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

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

Back to the top