Configuration of palette and override files by fragments [message #613549] |
Tue, 18 July 2006 01:39 |
Eclipse User |
|
|
|
Originally posted by: f-l.gmx.net
Hello,
is it possible to configure the palette (and possibly override settings...)
in a fragment, instead of a base plugin?
Our development team split in two groups is looking for an elegant way to
divide the work on a plugin containing components of two kinds: basic and
complex ones. For administrative and other reasons, we'd prefer not to share
a common plugin project. Having a separate fragment project from a base
plugin project looked like the best way to bring in the complex components
into the set of basic ones. Simplified, our fragment project contains edit
parts, overrides files, bean infos and the widget classes for the complex
components. (Life is more complex in reality: instead of having two projects
for plugin and fragment, we have to have four: two plugins and two
fragments, additionally distinguishing between a design and a runtime part
for other reasons.)
When specifying a palette file in the fragment.xml which is located in the
fragment project, on loading it VE runs into the exception attached below
(all on Eclipse 3.1.1, VE 1.1.0.1, EMF 2.1.0, GEF 3.1.1).
Everything works fine, when the the palette file specified in the
fragment.xml is located in the base plugin project (in that case the host of
the palette file specification is irrelevant, only the host of the
palette.xmi file itself counts, i.e. it might be even specified in the
plugin.xml). But that's evidently not what is needed in our case. We can
live fine without having specified a palette file in the base plugin
project, since this should be done in the fragment which is mandatory to
exist. So we don't need to override any palette settings, as the the
fragment palette file will contain the complex as well as the basic
components, i.e. the full palette information.
Similar to the palette file behaviour, I've problems with making VE load the
override files for our complex components, again contained in the fragment
project. No trouble with the overrides for the basic set contained in the
base plugin project.
Have I overlooked anything?
Or do you have any suggestions for my problem?
Thanks,
Fedor
java.io.FileNotFoundException: /palettecomplex/dsacomplexwidgets.xmi
at
org.eclipse.osgi.framework.internal.protocol.bundleentry.Han dler.findBundleEntry(Handler.java:42)
at
org.eclipse.osgi.framework.internal.core.BundleResourceHandl er.openConnection(BundleResourceHandler.java:155)
at java.net.URL.openConnection(URL.java:896)
at
org.eclipse.core.internal.boot.PlatformURLConnection.connect (PlatformURLConnection.java:88)
at
org.eclipse.core.internal.boot.PlatformURLConnection.connect (PlatformURLConnection.java:69)
at
org.eclipse.core.internal.boot.PlatformURLConnection.getInpu tStream(PlatformURLConnection.java:207)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createU RLInputStream(URIConverterImpl.java:557)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createI nputStream(URIConverterImpl.java:446)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:829)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.demandLoad(ProjectResourceSetImpl.java:83)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:349)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.getResource(ProjectResourceSetImpl.java:262)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$DefaultVEContributor.contributePalleteCats(JavaVisu alEditorPart.java:1144)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$7.run(JavaVisualEditorPart.java:1586)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup$CreateRegistry.run(JavaVisualEditorPart.java: 1577)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
|
|
|
Powered by
FUDForum. Page generated in 0.06893 seconds