Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » adding new layout with ve extension
adding new layout with ve extension [message #612080] Fri, 10 February 2006 16:57
Markus is currently offline MarkusFriend
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
Previous Topic:Override file is not processed
Next Topic:Error trying to set new file into editor message
Goto Forum:
  


Current Time: Fri May 10 23:58:54 GMT 2024

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

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

Back to the top