Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create nodes programmatically?(Problem : nodes are stored in the Domain Model but they aren't shown in the Diagram view)
How to create nodes programmatically? [message #668831] Sun, 08 May 2011 12:36 Go to next message
iDeveloper is currently offline iDeveloperFriend
Messages: 1
Registered: May 2011
Location: Algeria
Junior Member
Hey, i'm trying to add automatically nodes to my diagram. So, this is what i did exactly :

private static Bigraphe createInitialModel() {
	Bigraphe bigraphe = BigrapheFactory.eINSTANCE.createBigraphe();
	Region reg = BigrapheFactory.eINSTANCE.createRegion();
        bigraphe.setNom("Bigraphe");
	reg.setNom("Reg1");
	bigraphe.getContenirRegions().add(reg);
	return bigraphe;
}

But when i run the Diagram my nodes are stored in the Domain Model but they aren't shown in the diagram view. somebody help please!
(no subject) [message #669365 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669368 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669369 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669372 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669377 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669383 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669384 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669387 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669391 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669394 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669395 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669398 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669402 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669405 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669410 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669416 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669417 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669421 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669425 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669427 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669434 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669435 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669437 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669438 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669439 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669445 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669446 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669452 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669453 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669457 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669458 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669461 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669462 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669464 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669472 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669474 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669479 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669482 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669485 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669488 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669490 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669496 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669499 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669503 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
(no subject) [message #669504 is a reply to message #668831] Tue, 10 May 2011 05:51 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Have you checked that Region elements can be displayed in the diagram
editor, i.e. there is the .gmfgraph Node and corresponding .gmfmap
mapping between the Region and RegionFigure?

Jevon

iDeveloper wrote:
> Hey, i'm trying to add automatically nodes to my diagram.
> So, this is what i did exactly :
>
> private static Bigraphe createInitialModel() {
> Bigraphe bigraphe =
> BigrapheFactory.eINSTANCE.createBigraphe();
> Region reg = BigrapheFactory.eINSTANCE.createRegion();
> bigraphe.setNom("Bigraphe");
> reg.setNom("Reg1");
> bigraphe.getContenirRegions().add(reg);
> return bigraphe;
> }
> But when i run the Diagram my nodes are stored in the Domain
> Model but they aren't shown in the diagram view. somebody
> help please!
>
Re: How to create nodes programmatically? [message #674289 is a reply to message #668831] Thu, 26 May 2011 12:43 Go to previous message
fenrir  is currently offline fenrir Friend
Messages: 15
Registered: April 2011
Location: France
Junior Member
Hi,

Where did you put this code please? (I also want to add nodes automaticly in my diagram =) )

Thanks,

Fenrir



hmm, why are there 45 replies which are the same xD ?

[Updated on: Thu, 26 May 2011 12:46]

Report message to a moderator

Previous Topic:propagating selections/selected state
Next Topic:Strange problem when creating a top node
Goto Forum:
  


Current Time: Wed Aug 05 02:26:49 GMT 2015

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

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