Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » PalleteFactory
PalleteFactory [message #231059] Mon, 26 February 2007 14:46 Go to next message
Eclipse User
Originally posted by: erick.gmail.com

HI, i have not put figures en the pallete that i have. this is my code.
the figure arrowConnection.gif is a icon of 16x16 and is in the folder
icons/.

tool = new ConnectionCreationToolEntry(
"Solid connection",
"Create a solid-line connection",
new CreationFactory() {
public Object getNewObject() { return null; }
// see ShapeEditPart#createEditPolicies()
// this is abused to transmit the desired line style
public Object getObjectType() { return Connection.SOLID_CONNECTION; }
},
ShapesPlugin.getDefault().getImageDescriptor("icons/arrowConnection.gif "),
ShapesPlugin.getDefault().getImageDescriptor("icons/arrowConnection.gif "));
toolGroup.add(tool);
Re: PalleteFactory [message #231190 is a reply to message #231059] Wed, 28 February 2007 06:28 Go to previous message
Eclipse User
Originally posted by: none.unknown.com

Not sure what your question is.

"Erick" <erick@gmail.com> wrote in message
news:8db0fbf941e06ca7bae40004bc60b033$1@www.eclipse.org...
>
> HI, i have not put figures en the pallete that i have. this is my code.
> the figure arrowConnection.gif is a icon of 16x16 and is in the folder
> icons/.
>
> tool = new ConnectionCreationToolEntry(
> "Solid connection",
> "Create a solid-line connection",
> new CreationFactory() {
> public Object getNewObject() { return null; }
> // see ShapeEditPart#createEditPolicies() // this is abused to transmit
> the desired line style public Object getObjectType() { return
> Connection.SOLID_CONNECTION; }
> },
> ShapesPlugin.getDefault().getImageDescriptor("icons/arrowConnection.gif "),
> ShapesPlugin.getDefault().getImageDescriptor("icons/arrowConnection.gif "));
> toolGroup.add(tool);
>
Previous Topic:How to put multiple editors in an editor
Next Topic:Figure always on top
Goto Forum:
  


Current Time: Sat Sep 20 02:09:06 GMT 2014

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

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