|Re: Customize 'save' action [message #483635 is a reply to message #483610]
||Wed, 02 September 2009 08:14
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
Actually, this solution does not work so well because "save as" as an unexpected behavior when using same file for diagram and model.
I filed http://bugs.eclipse.org/288346 to describe the issue.
Mickael Istria a écrit :
> Hello Alex,
> Thanks for your tips.
> However, I found a nicer solution. I share it with the newsgroup in case
> it may be helpful for someone else one day:
> I simply overrode the ???DiagramEditor.performSave method to perform a
> "save as", specifying the name of target file in a URIEditorInput,
> depending on the semantic model. That is working well for my use case
> and is much easier to customize.
> Alex Shatalin a écrit :
>> Hello Mickael,
>> You need to modify generated ???DocumentProvider.
>> Alex Shatalin
Powered by FUDForum
. Page generated in 0.01605 seconds