Tools as Actions? [message #228060] |
Thu, 14 December 2006 14:38 |
Eclipse User |
|
|
|
Originally posted by: js-ttn.jomisch.de
Hello Experts,
i'm only need the SelectionToolEntry and the ConnectionCreationToolEntry. I don't want create a palette for this Tools. Is it possible to use this toolentrys on an actionbar of a ViewPart? Or how can i do it with Actions?
thx
josch
P.S.: Please explain step by step - i'm a beginner.
|
|
|
Re: Tools as Actions? [message #228069 is a reply to message #228060] |
Thu, 14 December 2006 20:29 |
Eclipse User |
|
|
|
Originally posted by: js-ttn.jomisch.de
Hello,
sorry if i waste your time. the solution is so simple;
private class SelToolAction extends WorkbenchPartAction {
private Tool selectionTool = new SelectionTool();
public void run() {
viewer.getEditDomain().setActiveTool(selectionTool);
}
}
thx
josch
|
|
|
Powered by
FUDForum. Page generated in 0.04192 seconds