|
|
|
|
|
Re: Passing the diagram filename to a model element property ?? [message #123303 is a reply to message #122248] |
Wed, 02 May 2007 08:06  |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Ben ,
I finally got around to spending too much time on this and came up with the
following solution:-
Look at class (replace YourDiagramDomain with yours)
<YourDiagramDomain>DiagramEditorUtil
It contains a method called:-
createDiagram(
Which itself contains a method called:-
protected CommandResult doExecuteWithResult(
In here you get access to the top level model created.
So you can do somthing like:-
model.setName(modelURI.path());
Anyway that is how I did it,
Stuart
"Ben Renwart" <renwart@lippmann.lu> wrote in message
news:f0sq2o$9go$1@build.eclipse.org...
> Hi everybody,
>
> I'd like to get the filename (and if possible the full path) of a diagram
> and assign it to a property ("name") of my model element...
>
> Thanks in advance for any help.
>
> benren.
|
|
|
Powered by
FUDForum. Page generated in 0.08642 seconds