PalleteFactory [message #231059] |
Mon, 26 February 2007 14:46 |
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 |
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);
>
|
|
|
Powered by
FUDForum. Page generated in 0.02617 seconds