Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPalleteFactory
https://www.eclipse.org/forums/index.php/mv/msg/73923/231059/#msg_231059
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);]]>2007-02-26T14:46:21-00:00Re: PalleteFactory
https://www.eclipse.org/forums/index.php/mv/msg/73923/231190/#msg_231190
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);
>]]>2007-02-28T06:28:28-00:00