adding new layout with ve extension [message #117357] |
Fri, 10 February 2006 11:57  |
Eclipse User |
|
|
|
Originally posted by: markus.wawra.shark-soft.com
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
|
|
|
Re: adding new layout with ve extension [message #117370 is a reply to message #117357] |
Fri, 10 February 2006 17:19   |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Please append the entire Layout.override file and the entire
MyLayout.override file.
Does MyLayout show up in the layout property sheet entry as an available
layout on the dropdown, along with the standards?
Markus wrote:
> 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
>
--
Thanks,
Rich Kulp
|
|
|
Re: adding new layout with ve extension [message #117473 is a reply to message #117370] |
Mon, 13 February 2006 09:55  |
Eclipse User |
|
|
|
Originally posted by: markus.wawra.shark-soft.com
The layout did not show up, since the new LayoutManager.override was not
found (I guess).
But meanwhile I found the problem. The jar file with the plugin class has
not been created. Now the plugin works.
The plugin.xml and the overrides were correct.
Nevertheless, thank you for trying to help me!
Regards,
Markus
|
|
|
Re: adding new layout with ve extension [message #612081 is a reply to message #117357] |
Fri, 10 February 2006 17:19  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Please append the entire Layout.override file and the entire
MyLayout.override file.
Does MyLayout show up in the layout property sheet entry as an available
layout on the dropdown, along with the standards?
Markus wrote:
> 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
>
--
Thanks,
Rich Kulp
|
|
|
Re: adding new layout with ve extension [message #612089 is a reply to message #117370] |
Mon, 13 February 2006 09:55  |
Eclipse User |
|
|
|
The layout did not show up, since the new LayoutManager.override was not
found (I guess).
But meanwhile I found the problem. The jar file with the plugin class has
not been created. Now the plugin works.
The plugin.xml and the overrides were correct.
Nevertheless, thank you for trying to help me!
Regards,
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.03291 seconds