How to get the underlying XML from a palette tool [message #212405] |
Sat, 29 November 2008 09:07 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.05383 seconds