Hi Peppe
Don't understand what you want exactly.
Do you want :
to create a new "PlugIn" and add it to the ToolBar ?
Create a new "CursorTool" and add it to the ToolBar?
Move an existing CursorTool to the ToolBar ?
Something else ?
According to the documentation, WorkbenchToolBar has both methods
workbenchToolBar.addPlugIn(PlugIn)
workbenchToolBar.addCursorTool(CursorTool)
Michaël
Le 14/10/2011 18:38, Giuseppe Aruta a écrit :
Hi all,
how can I add a tool to the toolbar without warping to a plugin?
I can convert a tool to a plugin and this method works to add a
plugin to toolbar:
------------------------------------------------------------------------------------------------------------------------
public void initialize(PlugInContext context) throws Exception
{
WorkbenchToolBar toolBar =
context.getWorkbenchFrame().getToolBar();
JButton button = toolBar.addPlugIn(getIcon(), this, null,
context.getWorkbenchContext());
}
----------------------------------------------------------------------------------------------------------------------------
But in this case I have just observed that I loose the possibility to
use the original cursortool of the tool (if different from the JUmp
blue pen) which I want to save.
Or,
trying to invert the position and use the converted PlugIn
The method:
public Cursor getCursor() {
return createCursor(
works only with tools. Do we have something similar for PlugIns?
Giuseppe
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel