Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Work with diagram
Work with diagram [message #469400] Fri, 06 March 2009 07:58 Go to next message
Kirill is currently offline KirillFriend
Messages: 5
Registered: July 2009
Junior Member
Hi!

I've downloaded papyrus source from here:
http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papy rus.

I want use this source as a base for my UML Editor. But I've some question:
1. When model opened all diagrams exist as tabs in edtior. How can I show
only one diagram in editor?

2. How can I open diagram in editor? I tried use
SashDiagramModelUtil.openDiagram(diagram.eResource(), diagram);

but I got IllegalStateException.

3. How can I make RCP application? (same as Papyrus-1.11.0)

Thank you very much.
Re: Work with diagram [message #469437 is a reply to message #469400] Mon, 16 March 2009 11:49 Go to previous message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 49
Registered: July 2009
Member
Hi Kirill,

The Papyrus Sash windows support opening and closing of diagrams. So,
you are able to open only the diagrams you are interested in.

From the user point of view:
To close a diagram, you can use the cross on the tab.
To open a diagram, you should click on it in the outline or provide a
menu to open closed diagrams.
But, these functionalities are not enable yet. They will be asap.

From the Papyrus developer point of view:
The sash windows system reflect its model (found in the .di file). If
a diagram is present in the model, it will be shown, otherwise it is
closed. So, to add a diagram to the sash window, you should add it to
the tree.
To close it, you should remove it from the tree.
Some utility methods help to do that.

I am currently improving this part of the sash window. It will work
as expected asap. I also plan some documentation ... But as usual, any
help is welcome :-).

Cedric

Kirill wrote:
> Hi!
>
> I've downloaded papyrus source from here:
> http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papy rus.
>
> I want use this source as a base for my UML Editor. But I've some question:
> 1. When model opened all diagrams exist as tabs in edtior. How can I
> show only one diagram in editor?
>
> 2. How can I open diagram in editor? I tried use
> SashDiagramModelUtil.openDiagram(diagram.eResource(), diagram);
>
> but I got IllegalStateException.
>
> 3. How can I make RCP application? (same as Papyrus-1.11.0)
>
> Thank you very much.
>
Re: Work with diagram [message #582074 is a reply to message #469400] Mon, 16 March 2009 11:49 Go to previous message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 49
Registered: July 2009
Member
Hi Kirill,

The Papyrus Sash windows support opening and closing of diagrams. So,
you are able to open only the diagrams you are interested in.

From the user point of view:
To close a diagram, you can use the cross on the tab.
To open a diagram, you should click on it in the outline or provide a
menu to open closed diagrams.
But, these functionalities are not enable yet. They will be asap.

From the Papyrus developer point of view:
The sash windows system reflect its model (found in the .di file). If
a diagram is present in the model, it will be shown, otherwise it is
closed. So, to add a diagram to the sash window, you should add it to
the tree.
To close it, you should remove it from the tree.
Some utility methods help to do that.

I am currently improving this part of the sash window. It will work
as expected asap. I also plan some documentation ... But as usual, any
help is welcome :-).

Cedric

Kirill wrote:
> Hi!
>
> I've downloaded papyrus source from here:
> http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papy rus
>
> I want use this source as a base for my UML Editor. But I've some question:
> 1. When model opened all diagrams exist as tabs in edtior. How can I
> show only one diagram in editor?
>
> 2. How can I open diagram in editor? I tried use
> SashDiagramModelUtil.openDiagram(diagram.eResource(), diagram);
>
> but I got IllegalStateException.
>
> 3. How can I make RCP application? (same as Papyrus-1.11.0)
>
> Thank you very much.
>
Previous Topic:Screenshots?
Next Topic:Integrate GMF into Papyrus
Goto Forum:
  


Current Time: Sat Jan 25 19:33:43 GMT 2020

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

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

Back to the top