Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Tools as Actions?
Tools as Actions? [message #228060] Thu, 14 December 2006 14:38 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:how to pull in GEF source for debugging?
Next Topic:"int" value out of range for Point
Goto Forum:
  


Current Time: Mon Nov 24 12:36:51 GMT 2014

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

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