adding new layout with ve extension [message #612080] |
Fri, 10 February 2006 16:57 |
Markus Messages: 52 Registered: July 2009 |
Member |
|
|
Hi!
I'm trying to add a new layout to VE by extending org.eclipse.ve.jfc.
All classes of the layout, including the PolicyHelper, EditPolicy, ...
that I need for VE came into a jar-file (mylayout.jar) which I added to
the plugin. The BeanInfo classes, together with its property files, came
into an other jar-file (mylayoutbeaninfo.jar) whitch I put into a
subdirectory ( \vm ) of the plugin. I also wrote override files for the
layout which I gave into a \overrides subdirectory, together with the
java.awt.LayoutManager.override, which is almost a copy of the
org.eclipse.ve.jfc LayoutManager.override. Just
<addedEObjects xsi:type="ecore:EAnnotation"
source="org.eclipse.ve.LayoutInfo">
<details key="org.eclipse.ve.internal.jfc.core.layoutManagerClass"
value="new.layout.MyLayout"/>
<details key="org.eclipse.ve.internal.jfc.core.layoutManagerDisplayName "
value="MyLayout"/>
</addedEObjects>
was added.
That's my plugin.xml:
<plugin>
<extension point="org.eclipse.jdt.ui.classpathContainerPage">
<classpathContainerPage name="NewContainer"
class=" org.eclipse.ve.internal.java.wizard.RegisteredClasspathConta inerWizardPage "
id="new.plugins.NewContainer">
</classpathContainerPage>
</extension>
<extension point="org.eclipse.jdt.core.classpathContainerInitializer">
<classpathContainerInitializer
class=" org.eclipse.ve.internal.java.core.RegisteredClasspathContain erInitializer "
id="new.plugins.NewContainer">
</classpathContainerInitializer>
</extension>
<extension point="org.eclipse.ve.java.core.registrations">
<registration
container="new.plugins.NewContainer"
description="NewContainer">
<library runtime="mylayout.jar"/>
</registration>
</extension>
<extension point="org.eclipse.jem.beaninfo.registrations">
<registration container="new.plugins.NewContainer">
<beaninfo path="vm/mylayoutbeaninfo.jar">
<searchpath
package="org.eclipse.ve.internal.jfc.beaninfo">
</searchpath>
</beaninfo>
<override
package="new.layout"
path="overrides/new/layout">
</override>
<override
package="java.awt"
path="overrides/java/awt">
</override>
</registration>
</extension>
</plugin>
If I create a ve testproject with this plugin by adding the container to
the build path in the libary tab (add library) the mylayout.jar is
obviously found. But the override files aren't taken.
Is there something wrong with my plugin.xml?
Is it possible to just write a new LayoutManager.override and replacing
the old one the way I'm trying it?
Regards,
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.02876 seconds