[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] How to get the underlying XML from a palette tool
|
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