Propsheet Customization Tutorial [message #139523] |
Tue, 26 June 2007 08:36  |
Eclipse User |
|
|
|
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de
Hello people,
In the Propsheet Customization Tutorial, there is a text:
"Note : If you have no Property Section Container second root, you can now
use our new feature for Adding extension models for gmfgens, available
from the context menu of gmfgen. It should create that second root for
you, when you locate propsheet.ecore and select PropertySectionContainer
to instantiate."
Well I become an
Error:"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
uri 'http://www.eclipse.org/gmf/2007/GmfGraph/PropSheet' not found.
(platform:/resource/org.eclipse.gmf.graphdef.editor/models/g raphdef.gmfgen,
1380, 40)", and the
Error:"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
uri 'http://www.eclipse.org/gmf/2007/GmfGraph/PropSheet' not found.
(platform:/resource/org.eclipse.gmf.graphdef.editor/models/g raphdef.gmfgen,
1380, 40)", obviosly the URIs are the same from the propsheet.ecore and
from the error.
when I try to add the the propsheet.ecore to other genmodel, the Situation
is the same.
Have anybody Idia what's going on? and how can I fix it?
Thanks in advance!
Martin
|
|
|
Re: Propsheet Customization Tutorial [message #139619 is a reply to message #139523] |
Tue, 26 June 2007 15:10   |
Eclipse User |
|
|
|
Martin Prodanov wrote:
> Hello people,
>
> In the Propsheet Customization Tutorial, there is a text:
> "Note : If you have no Property Section Container second root, you can
> now use our new feature for Adding extension models for gmfgens,
> available from the context menu of gmfgen. It should create that second
> root for you, when you locate propsheet.ecore and select
> PropertySectionContainer to instantiate."
>
> Well I become an
> Error:"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
> uri 'http://www.eclipse.org/gmf/2007/GmfGraph/PropSheet' not found.
> (platform:/resource/org.eclipse.gmf.graphdef.editor/models/g raphdef.gmfgen,
> 1380, 40)", and the
> Error:"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
> uri 'http://www.eclipse.org/gmf/2007/GmfGraph/PropSheet' not found.
> (platform:/resource/org.eclipse.gmf.graphdef.editor/models/g raphdef.gmfgen,
> 1380, 40)", obviosly the URIs are the same from the propsheet.ecore and
> from the error.
> when I try to add the the propsheet.ecore to other genmodel, the
> Situation is the same.
> Have anybody Idia what's going on? and how can I fix it?
>
> Thanks in advance!
>
> Martin
>
Hi, Martin!
The exception is just saying that it could fine no EPackage registered
in your environment for such an URI. Registration of is made by
'Generate Model Code' of genmodel for your extension ecore by adding to
plugin.xml such kind of extension:
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.eclipse.org/gmf/2007/GmfGraph/PropSheet"
class = "org.eclipse.gmf.graphdef.propsheet.PropsheetPackage" />
</extension>
So, if you invoke 'Generate Model Code' for propsheet.genmodel, and
restart workbench with the generated plugin, everything should be fine.
(Refer to the first step of that tutorial, under the header 'Small
tutorial. Part 1. Introduction.', starting with the words: 'The second
important thing you have to do first, is Generating Model Code
org.eclipse.gmf.graphdef.propsheet plugin from the propsheet.genmodel,
that should exist in the models folder of graphdef.editor plugin. After
this project is generated, you can Export it as Deployable plug-ins and
fragments into your current platform (or import it to the development
workbench, if you are currently using target one for work with).')
This applies not only to the propsheet.ecore, but for any other
extension models you'd like to join, of course.
Good luck,
Ann.
|
|
|
Re: Propsheet Customization Tutorial [message #139819 is a reply to message #139619] |
Wed, 27 June 2007 04:28  |
Eclipse User |
|
|
|
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de
Hi Ann,
yes I did created "Model Code" as the tutorial says but I didn't read
anything about extension point in the propsheet.genmodel.
Thanks a lot!
Greethings
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.04651 seconds