|
Re: Work with diagram [message #469437 is a reply to message #469400] |
Mon, 16 March 2009 11:49 |
Cedric Dumoulin Messages: 51 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 |
Cedric Dumoulin Messages: 51 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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03604 seconds