Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating more than one gmfmodel from one ecore model.
Creating more than one gmfmodel from one ecore model. [message #148696] Fri, 31 August 2007 09:18 Go to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi friends,
Is it possible to create more than one gmf model and digram
plugin from the same ecore model.

I tried it and is able to run it seperately. But when I run
it from a single rcp application, one digram works correctly, but in
the another digram file, I am not able to place any figurs from pallete,
and if I create Items on canvas using the pop up menu it throws an
StackOverflow Exception.

1. Is it possible to run multiple digram's(with slight difference)
made of same ecore model inside a single rcp application?
2. If yes, what might be wrong in my case?


Thanks and regards Biju
Re: Creating more than one gmfmodel from one ecore model. [message #148704 is a reply to message #148696] Fri, 31 August 2007 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi

Sorry I don't have any solution for you but I have quite a similar problem.

I made two different diagram editors that base on the same ecore model.
The two diagram editors have the same gmfgraph model but nut the same
tooling model. The idea is now the following:

The first the diagram is made with the editor1 then the just created
diagram is opened with the editor2 which shows the model created with
editor1 but it does not allow to change it. With editor2 one can add
figures that were not available in editor1. (both diagrams use the same
extension)

It is now possible to create a new model with editor1 and with editor2.
But if I open a diagram painted with editor1 with editor2 I'm not able to
paint on the canvas. I suppose that I have to pass the context used in
editor1 to editor2 somehow when opening it with editor2 but I don't know
where...

Any ideas?

Thanks
Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #148719 is a reply to message #148704] Sat, 01 September 2007 01:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Marsha,

Thanks for your reply,

What I am trying to do is the same as you said," The first the
diagram is made with the editor1 then the just created diagram is opened
with the editor2 which shows the model created with editor1". That is I
need to use the model created with editor1 as a 'template' to create
models in editor2. I am using both the editors in a single rcp application.

Can you please tell me, how to load the editor2 with the model
created with editor1. And is it necessary that 'both diagrams use the
same extension'?

Thanks and regards Biju

Marsha wrote:
> Hi
>
> Sorry I don't have any solution for you but I have quite a similar problem.
>
> I made two different diagram editors that base on the same ecore model.
> The two diagram editors have the same gmfgraph model but nut the same
> tooling model. The idea is now the following:
>
> The first the diagram is made with the editor1 then the just created
> diagram is opened with the editor2 which shows the model created with
> editor1 but it does not allow to change it. With editor2 one can add
> figures that were not available in editor1. (both diagrams use the same
> extension)
>
> It is now possible to create a new model with editor1 and with editor2.
> But if I open a diagram painted with editor1 with editor2 I'm not able
> to paint on the canvas. I suppose that I have to pass the context used
> in editor1 to editor2 somehow when opening it with editor2 but I don't
> know where...
>
> Any ideas?
>
> Thanks
> Marsha
>
Re: Creating more than one gmfmodel from one ecore model. [message #148826 is a reply to message #148719] Tue, 04 September 2007 02:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi Biju

All I found out up to now is that the two models need to have the same
file extension...maybe I'll find a way arround that.

What I did up to now is following these two tutorials...
http://wiki.eclipse.org/index.php/GMF_Tips#Sharing_single_Ed itingDomain_instance_across_several_diagrams
http://sdqweb.ipd.uni-karlsruhe.de/wiki/GMF under the title " Mehrere
Diagramme auf einer einzigen Editing Domain"

Now I'm just experimenting with the attributes in the gmfgen model. An
other idea that I have is to create like a second context where the
elements for the editor2 are on and this second context also wraps the
first one... But I don't know yet if this works.

For opening the first model with the second editor just right-click on
your model file created with the first one and choose "open with..." in
the menu that pops up. Then choose your second editor. Up to here
everything works fine for me...the only problem here is that I can't
"draw" on the existing model then...

Cheers

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #148833 is a reply to message #148826] Tue, 04 September 2007 02:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Marsha,

Thanks for your reply,

What I am trying to do is to open the model created with editor1 in
editor2 programatically. That is in the editor2 creation wizard I will
choose editor1 and on clicking finish of wizard, the editor2 will be
opened with model created in editor1.

How can I achieve this,

Thanks again for your help Biju

Marsha wrote:
> Hi Biju
>
> All I found out up to now is that the two models need to have the same
> file extension...maybe I'll find a way arround that.
>
> What I did up to now is following these two tutorials...
> http://wiki.eclipse.org/index.php/GMF_Tips#Sharing_single_Ed itingDomain_instance_across_several_diagrams
>
> http://sdqweb.ipd.uni-karlsruhe.de/wiki/GMF under the title " Mehrere
> Diagramme auf einer einzigen Editing Domain"
>
> Now I'm just experimenting with the attributes in the gmfgen model. An
> other idea that I have is to create like a second context where the
> elements for the editor2 are on and this second context also wraps the
> first one... But I don't know yet if this works.
>
> For opening the first model with the second editor just right-click on
> your model file created with the first one and choose "open with..." in
> the menu that pops up. Then choose your second editor. Up to here
> everything works fine for me...the only problem here is that I can't
> "draw" on the existing model then...
>
> Cheers
>
> Marsha
>
Re: Creating more than one gmfmodel from one ecore model. [message #148944 is a reply to message #148833] Wed, 05 September 2007 02:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi,

Sorry this I don't know. And I still didn't get how I can draw on the
canvas from etditor1 with editor2.

Someone can tell me which class or method checks if the creation tool has
the right to "work" or not?

Thanks

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #149173 is a reply to message #148944] Thu, 06 September 2007 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Marsha wrote:

> Hi,

> Sorry this I don't know. And I still didn't get how I can draw on the
> canvas from etditor1 with editor2.

> Someone can tell me which class or method checks if the creation tool has
> the right to "work" or not?

> Thanks

> Marsha
hi,

I 've the similar problem, I need multiple editors to show different
views of the same model.
I use a shared editingDomain for each editors, and make sure that the
each editor reference the GMF diagram with different type.
and use the DiagramEditorInput instead of the FileEditorInput, and the
some small changes in DiagramEditor class and XXXDocumentProvider class.
it will be ok.
Re: Creating more than one gmfmodel from one ecore model. [message #149180 is a reply to message #148944] Thu, 06 September 2007 06:23 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I 've the similar problem, I need multiple editors to show different
views of the same model.
I use a shared editingDomain for each editors, and make sure that the
each editor reference the GMF diagram with different type.
and use the DiagramEditorInput instead of the FileEditorInput, and the
some small changes in DiagramEditor class and XXXDocumentProvider class.
it will be ok.

-------------------------------------


hi,

I 've the similar problem, I need multiple editors to show different
views of the same model.
I use a shared editingDomain for each editors, and make sure that the
each editor reference the GMF diagram with different type.
and use the DiagramEditorInput instead of the FileEditorInput, and the
some small changes in DiagramEditor class and XXXDocumentProvider class.
it will be ok.

Marsha wrote:

> Hi,

> Sorry this I don't know. And I still didn't get how I can draw on the
> canvas from etditor1 with editor2.

> Someone can tell me which class or method checks if the creation tool has
> the right to "work" or not?

> Thanks

> Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #149411 is a reply to message #149180] Thu, 06 September 2007 07:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi

Thanks a lot for your answer, that sounds promising but I have some
problems with understanding.

Hui wrote:
> I 've the similar problem, I need multiple editors to show different
> views of the same model.
> I use a shared editingDomain for each editors, and make sure that the
> each editor reference the GMF diagram with different type.

So you use the same sharedEditingDomain for all editors, like described in
the tutorials I mentionned earlier?
What do you mean with different type? Which type? Do you mean the file
extension of the editor?

Would be cool if you could clarify those points for me...

Thanks

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #149448 is a reply to message #149411] Thu, 06 September 2007 22:20 Go to previous messageGo to next message
Eclipse UserFriend
hi, Marsha,
sorry for not express it clearly. my way is that use a shared
EditingDomain to manage the resources for multiple editor, and use
diagramEditorInput as input for each editor.

env: GMF1.0.3

-- XXXDiagramEditor -------------------------------------
/* (non-Javadoc)
* @see
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor#getDiagram()
*/
@Override
public Diagram getDiagram() {
// TODO Auto-generated method stub
IEditorInput input = getEditorInput();

if(input instanceof DiagramEditorInput){
DiagramEditorInput dinput = (DiagramEditorInput)input;
return dinput.getDiagram();
}

return super.getDiagram();
}
/**
* @generated
*/
protected TransactionalEditingDomain createEditingDomain() {
TransactionalEditingDomain editingDomain =
XXXEditingDomainManager.getInstance().getCurrentXXXEditingDo main(getEditingDomainID());
editingDomain.setID(getEditingDomainID());

return editingDomain;
}

--- 2. XXXDocumentProvider --------------
/* (non-Javadoc)
* @see
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDiagramDocumentProvider#createInputWithEditingDomai n(org.eclipse.ui.IEditorInput,
org.eclipse.emf.transaction.TransactionalEditingDomain)
*/
@Override
public IEditorInput createInputWithEditingDomain(IEditorInput
editorInput, TransactionalEditingDomain domain) {
return editorInput;
// // TODO Auto-generated method stub
// return super.createInputWithEditingDomain(editorInput, domain);
}

/* (non-Javadoc)
* @see
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document .AbstractDocumentProvider#getStatus(java.lang.Object)
*/
@Override
public IStatus getStatus(Object element) {
return STATUS_OK;
}

/* (non-Javadoc)
* @see
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDocumentProvider#isModifiable(java.lang.Object)
*/
@Override
public boolean isModifiable(Object element) {
if(element instanceof DiagramEditorInput){
return true;
}
return super.isModifiable(element);
}
/* (non-Javadoc)
* @see
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.StorageDocumentProvider#createDocument(java.lang.Object )
*/
@Override
protected IDocument createDocument(Object element) throws CoreException {
// TODO Auto-generated method stub
IDocument document = super.createDocument(element);
if(document == null){
if (element instanceof DiagramEditorInput) {
document= createEmptyDocument();
if (setDocumentContent(document, (IEditorInput) element)) {
setupDocument(element, document);
}
}
}
return document ;
}


--------------------------------------------------------
3. and when editor actived, the EditingDomain id should be set as the
active editor's domain id. and so, it will support multiple editor to open
a file or multiple files.



Marsha wrote:

> Hi

> Thanks a lot for your answer, that sounds promising but I have some
> problems with understanding.

> Hui wrote:
>> I 've the similar problem, I need multiple editors to show different
>> views of the same model.
>> I use a shared editingDomain for each editors, and make sure that the
>> each editor reference the GMF diagram with different type.

> So you use the same sharedEditingDomain for all editors, like described in
> the tutorials I mentionned earlier?
> What do you mean with different type? Which type? Do you mean the file
> extension of the editor?

> Would be cool if you could clarify those points for me...

> Thanks

> Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #149463 is a reply to message #149411] Fri, 07 September 2007 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Marsha and Zhanghui,

From where can I get the 'org.eclipse.gmf.bridge.trace'
plugin and how to create the diagram1.trace files.

Now I am able to create one digram from another one, but I
am not able to add new figurs to canvas in second digram. I am able to
modify exixting figurs. And how can I layout figurs in second digram as
in first digram.


Thanks for the help Biju

Marsha wrote:
> Hi
>
> Thanks a lot for your answer, that sounds promising but I have some
> problems with understanding.
>
> Hui wrote:
>> I 've the similar problem, I need multiple editors to show
>> different views of the same model. I use a shared editingDomain for
>> each editors, and make sure that the each editor reference the GMF
>> diagram with different type.
>
> So you use the same sharedEditingDomain for all editors, like described
> in the tutorials I mentionned earlier?
> What do you mean with different type? Which type? Do you mean the file
> extension of the editor?
>
> Would be cool if you could clarify those points for me...
>
> Thanks
>
> Marsha
>
>
Re: Creating more than one gmfmodel from one ecore model. [message #149465 is a reply to message #149448] Fri, 07 September 2007 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

ZhangHui wrote:
> hi, Marsha, sorry for not express it clearly. my way is that use a
> shared EditingDomain to manage the resources for multiple editor, and
> use diagramEditorInput as input for each editor.
> env: GMF1.0.3
> -- XXXDiagramEditor -------------------------------------
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor#getDiagram()
>
> */
> @Override
> public Diagram getDiagram() {
> // TODO Auto-generated method stub
> IEditorInput input = getEditorInput();
>
> if(input instanceof DiagramEditorInput){
> DiagramEditorInput dinput = (DiagramEditorInput)input;
> return dinput.getDiagram();
> }
>
> return super.getDiagram();
> }
> /**
> * @generated
> */
> protected TransactionalEditingDomain createEditingDomain() {
> TransactionalEditingDomain editingDomain =
> XXXEditingDomainManager.getInstance().getCurrentXXXEditingDo main(getEditingDomainID());
>
> editingDomain.setID(getEditingDomainID());
>
> return editingDomain;
> }
>
> --- 2. XXXDocumentProvider --------------
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDiagramDocumentProvider#createInputWithEditingDomai n(org.eclipse.ui.IEditorInput,
> org.eclipse.emf.transaction.TransactionalEditingDomain)
> */
> @Override
> public IEditorInput createInputWithEditingDomain(IEditorInput
> editorInput, TransactionalEditingDomain domain) {
> return editorInput;
> // // TODO Auto-generated method stub
> // return super.createInputWithEditingDomain(editorInput, domain);
> }
>
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.document .AbstractDocumentProvider#getStatus(java.lang.Object)
>
> */
> @Override
> public IStatus getStatus(Object element) {
> return STATUS_OK;
> }
>
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDocumentProvider#isModifiable(java.lang.Object)
>
> */
> @Override
> public boolean isModifiable(Object element) {
> if(element instanceof DiagramEditorInput){
> return true;
> }
> return super.isModifiable(element);
> }
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.StorageDocumentProvider#createDocument(java.lang.Object )
>
> */
> @Override
> protected IDocument createDocument(Object element) throws
> CoreException {
> // TODO Auto-generated method stub
> IDocument document = super.createDocument(element);
> if(document == null){
> if (element instanceof DiagramEditorInput) {
> document= createEmptyDocument();
> if (setDocumentContent(document, (IEditorInput) element)) {
> setupDocument(element, document);
> }
> }
> }
> return document ;
> }
>
>
> --------------------------------------------------------
> 3. and when editor actived, the EditingDomain id should be set as the
> active editor's domain id. and so, it will support multiple editor to
> open a file or multiple files.

Hi ,

Thanks for the reply,

Where can I find the getEditingDomainID 'XXXEditingDomainManager'
class. I am not able to find it in my generated digram code. I am using
gmf 2.0

Thanks again Biju
>
>
> Marsha wrote:
>
>> Hi
>
>> Thanks a lot for your answer, that sounds promising but I have some
>> problems with understanding.
>
>> Hui wrote:
>>> I 've the similar problem, I need multiple editors to show
>>> different views of the same model. I use a shared editingDomain
>>> for each editors, and make sure that the each editor reference the
>>> GMF diagram with different type.
>
>> So you use the same sharedEditingDomain for all editors, like
>> described in the tutorials I mentionned earlier?
>> What do you mean with different type? Which type? Do you mean the file
>> extension of the editor?
>
>> Would be cool if you could clarify those points for me...
>
>> Thanks
>
>> Marsha
>
>
Re: Creating more than one gmfmodel from one ecore model. [message #149466 is a reply to message #149463] Fri, 07 September 2007 09:13 Go to previous messageGo to next message
Eclipse UserFriend
hi biju,
this plugin is part of the gmf experimental sdk you can obtain from here:

http://download.eclipse.org/modeling/gmf/downloads/drops/R-2 .0-200706210000/index.php




biju schrieb:
> Hi Marsha and Zhanghui,
>
> From where can I get the 'org.eclipse.gmf.bridge.trace'
> plugin and how to create the diagram1.trace files.
>
> Now I am able to create one digram from another one, but I am
> not able to add new figurs to canvas in second digram. I am able to
> modify exixting figurs. And how can I layout figurs in second digram as
> in first digram.
>
>
> Thanks for the help Biju
>
> Marsha wrote:
>> Hi
>>
>> Thanks a lot for your answer, that sounds promising but I have some
>> problems with understanding.
>>
>> Hui wrote:
>>> I 've the similar problem, I need multiple editors to show
>>> different views of the same model. I use a shared editingDomain
>>> for each editors, and make sure that the each editor reference the
>>> GMF diagram with different type.
>>
>> So you use the same sharedEditingDomain for all editors, like
>> described in the tutorials I mentionned earlier?
>> What do you mean with different type? Which type? Do you mean the file
>> extension of the editor?
>>
>> Would be cool if you could clarify those points for me...
>>
>> Thanks
>>
>> Marsha
>>
>>
Re: Creating more than one gmfmodel from one ecore model. [message #149471 is a reply to message #149448] Fri, 07 September 2007 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

ZhangHui wrote:

> hi, Marsha,
> sorry for not express it clearly. my way is that use a shared
> EditingDomain to manage the resources for multiple editor, and use
> diagramEditorInput as input for each editor.

Hi Hui

No problem. I still have a question. Before you added the changes do use a
diagram as input you still did follow the tutorial on the GMF Tips page to
create a shared editing domain or not?

Thanks a lot

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #149482 is a reply to message #149448] Sat, 08 September 2007 01:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi friends,

I am not able to see the following discussed classes in my
generated digram code(XXXEditingDomainManager,
FileDiagramDocumentProvider, AbstractDocumentProvider,
FileDocumentProvider, StorageDocumentProvider). Are you using GMF 1.0 ,
I am using GMF2.0, so how can I do this.

Thanks for the help Biju


ZhangHui wrote:
> hi, Marsha, sorry for not express it clearly. my way is that use a
> shared EditingDomain to manage the resources for multiple editor, and
> use diagramEditorInput as input for each editor.
> env: GMF1.0.3
> -- XXXDiagramEditor -------------------------------------
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor#getDiagram()
>
> */
> @Override
> public Diagram getDiagram() {
> // TODO Auto-generated method stub
> IEditorInput input = getEditorInput();
>
> if(input instanceof DiagramEditorInput){
> DiagramEditorInput dinput = (DiagramEditorInput)input;
> return dinput.getDiagram();
> }
>
> return super.getDiagram();
> }
> /**
> * @generated
> */
> protected TransactionalEditingDomain createEditingDomain() {
> TransactionalEditingDomain editingDomain =
> XXXEditingDomainManager.getInstance().getCurrentXXXEditingDo main(getEditingDomainID());
>
> editingDomain.setID(getEditingDomainID());
>
> return editingDomain;
> }
>
> --- 2. XXXDocumentProvider --------------
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDiagramDocumentProvider#createInputWithEditingDomai n(org.eclipse.ui.IEditorInput,
> org.eclipse.emf.transaction.TransactionalEditingDomain)
> */
> @Override
> public IEditorInput createInputWithEditingDomain(IEditorInput
> editorInput, TransactionalEditingDomain domain) {
> return editorInput;
> // // TODO Auto-generated method stub
> // return super.createInputWithEditingDomain(editorInput, domain);
> }
>
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.document .AbstractDocumentProvider#getStatus(java.lang.Object)
>
> */
> @Override
> public IStatus getStatus(Object element) {
> return STATUS_OK;
> }
>
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDocumentProvider#isModifiable(java.lang.Object)
>
> */
> @Override
> public boolean isModifiable(Object element) {
> if(element instanceof DiagramEditorInput){
> return true;
> }
> return super.isModifiable(element);
> }
> /* (non-Javadoc)
> * @see
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.StorageDocumentProvider#createDocument(java.lang.Object )
>
> */
> @Override
> protected IDocument createDocument(Object element) throws
> CoreException {
> // TODO Auto-generated method stub
> IDocument document = super.createDocument(element);
> if(document == null){
> if (element instanceof DiagramEditorInput) {
> document= createEmptyDocument();
> if (setDocumentContent(document, (IEditorInput) element)) {
> setupDocument(element, document);
> }
> }
> }
> return document ;
> }
>
>
> --------------------------------------------------------
> 3. and when editor actived, the EditingDomain id should be set as the
> active editor's domain id. and so, it will support multiple editor to
> open a file or multiple files.
>
>
> Marsha wrote:
>
>> Hi
>
>> Thanks a lot for your answer, that sounds promising but I have some
>> problems with understanding.
>
>> Hui wrote:
>>> I 've the similar problem, I need multiple editors to show
>>> different views of the same model. I use a shared editingDomain
>>> for each editors, and make sure that the each editor reference the
>>> GMF diagram with different type.
>
>> So you use the same sharedEditingDomain for all editors, like
>> described in the tutorials I mentionned earlier?
>> What do you mean with different type? Which type? Do you mean the file
>> extension of the editor?
>
>> Would be cool if you could clarify those points for me...
>
>> Thanks
>
>> Marsha
>
>
Re: Creating more than one gmfmodel from one ecore model. [message #149843 is a reply to message #148696] Mon, 10 September 2007 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello biju,

Yes, it is possible. Please read http://wiki.eclipse.org/GMF_GenModel_Hints
and check all the properties marked as "unique" in this document was modified
in both .gmfgen models prior to the code generation and are unique among
the scope of .gmfgen models you are working with.

-----------------
Alex Shatalin
Re: Creating more than one gmfmodel from one ecore model. [message #150265 is a reply to message #149482] Wed, 12 September 2007 02:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi biju, Hui

I have the same problem as biju. I'm using GMF 2.0 and it seems that
things changed quite a bit...so unfortunately your receipe doesn't work.

Biju, have you found a solution yet?

Greets

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #150339 is a reply to message #149843] Wed, 12 September 2007 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Alex Shatalin wrote:
> Hello biju,
>
> Yes, it is possible. Please read
> http://wiki.eclipse.org/GMF_GenModel_Hints and check all the properties
> marked as "unique" in this document was modified in both .gmfgen models
> prior to the code generation and are unique among the scope of .gmfgen
> models you are working with.
>
> -----------------
> Alex Shatalin
>
>
Hi Alex,

Thanks for your reply,


Its solved, as you said I was not giving unique "Model ID" in my
..gmfgen. After giving unique id both digram works fine.


Thanks again Biju
Re: Creating more than one gmfmodel from one ecore model. [message #150392 is a reply to message #149843] Wed, 12 September 2007 07:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Alex Shatalin wrote:

> Hello biju,

> Yes, it is possible. Please read http://wiki.eclipse.org/GMF_GenModel_Hints
> and check all the properties marked as "unique" in this document was
modified
> in both .gmfgen models prior to the code generation and are unique among
> the scope of .gmfgen models you are working with.

> -----------------
> Alex Shatalin

Hi Alex,

So, if I get it right you don't use a shared editing domain here, since
the Editing Domain ID must be unique too.

Marsha
Re: Creating more than one gmfmodel from one ecore model. [message #150498 is a reply to message #150392] Thu, 13 September 2007 00:27 Go to previous message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Marsha,

You are right, there is no need in sharing the editing
domain, to create two digram plugins. Their Editing Domain ID in gmfgen
should also be unique


Thanks and Regards Biju

Marsha wrote:
> Alex Shatalin wrote:
>
>> Hello biju,
>
>> Yes, it is possible. Please read
>> http://wiki.eclipse.org/GMF_GenModel_Hints and check all the
>> properties marked as "unique" in this document was
> modified
>> in both .gmfgen models prior to the code generation and are unique
>> among the scope of .gmfgen models you are working with.
>
>> -----------------
>> Alex Shatalin
>
> Hi Alex,
>
> So, if I get it right you don't use a shared editing domain here,
> since the Editing Domain ID must be unique too.
>
> Marsha
>
>
Previous Topic:IllegalStateException when executing RecordingCommand
Next Topic:Canvas in a Canvas
Goto Forum:
  


Current Time: Mon Jul 14 00:28:23 EDT 2025

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

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

Back to the top