Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get the underlying XML from a palette tool
How to get the underlying XML from a palette tool [message #212405] Sat, 29 November 2008 09:07 Go to next message
Eclipse UserFriend
Originally posted by: steve.hostettler.unige.ch

Hello,


I would like to get the underlying XMI file of a diagram from a palette
tool. In the PropertyCheckerDialog I would like to get the XMI file and
send it to a converter. Could somebody point me to a tutorial which
explains how to get it?

AlgebraicPetriNetsPaletteFactory :
ToolEntry entry = new ToolEntry(AlgebraicPetriNets.diag...
AlgebraicPetriNets.diagr...., null, null, CheckerTool.class) {};


CheckerTool;
public class CheckerTool extends AbstractTool {
.....
public void activate(){
super.activate();

PropertyCheckerDialog dialog = new
PropertyCheckerDialog(PlatformUI.getWorkbench().getDisplay() .getActiveShell());
dialog.open();

setState(STATE_TERMINAL);
handleFinished();
}
....
}


Many Thanks
Regards
Steve
Re: How to get the underlying XML from a palette tool [message #212531 is a reply to message #212405] Mon, 01 December 2008 09:56 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Steve,

You can get currently active editor from the workbench, get appropriate editorInput
from it and use that to locate file or use Eclipse selection.

-----------------
Alex Shatalin
Previous Topic:mark possible targetEditParts during Connection
Next Topic:How to keep the relation of the sides of a figure?
Goto Forum:
  


Current Time: Thu Sep 26 20:22:31 GMT 2024

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

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

Back to the top