How to change node's image? [message #152805] |
Mon, 01 October 2007 19:05 |
Eclipse User |
|
|
|
Originally posted by: napo.NOPRIVATEMESSAGE.com
Hi all,
I'm working on a graphical editor using GMF dashboard.
I know how to change the small icon inside the palette, concerning my nodes.
But when I insert a node in my diagrams, in the upper left corner there's
always the default icon.
I tried to change the "Large bundle image" but it doesn't work. And what
exactly "Large bundle image" stands for???
I also tried to study the Taipan example from Eclispe, but I didn't
understand... :-(
So, is it possible to change the node's image? How?
Hi
Marco
|
|
|
Re: How to change node's image? [message #152843 is a reply to message #152805] |
Tue, 02 October 2007 08:39 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
napo wrote:
> So, is it possible to change the node's image? How?
I don't know if there is an easyer method, i changed the getImage()
methods in the generated .edit plugin. You will find this method in the
XXXItemProvider.java. If you change code there, don't forget to add a
"NOT" behind the @generated tag.
hth
Jens
|
|
|
Re: How to change node's image? [message #152885 is a reply to message #152843] |
Tue, 02 October 2007 10:08 |
Eclipse User |
|
|
|
Originally posted by: napo.NOPRIVATEMESSAGE.com
> I don't know if there is an easyer method, i changed the getImage()
> methods in the generated .edit plugin. You will find this method in the
> XXXItemProvider.java. If you change code there, don't forget to add a
> "NOT" behind the @generated tag.
Tnx, but I'd like not to modify the Java code if it's possible. :-\
The only solution I found at the moment is to overwrite the GIF file created
by Eclipse. But it's not a great solution...
Hi
Marco
|
|
|
Re: How to change node's image? [message #152909 is a reply to message #152885] |
Tue, 02 October 2007 12:08 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------000604080106030103050102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Marco,
The EMF generated code is intended to be specialized by hand so there's
no need to avoid that. It's of course fine (and better) to replace the
generated GIFs since these are just placeholders for your own graphical
talents. The generator will never overwrite an existing .gif file.
napo wrote:
>> I don't know if there is an easyer method, i changed the getImage()
>> methods in the generated .edit plugin. You will find this method in the
>> XXXItemProvider.java. If you change code there, don't forget to add a
>> "NOT" behind the @generated tag.
>>
>
> Tnx, but I'd like not to modify the Java code if it's possible. :-\
> The only solution I found at the moment is to overwrite the GIF file created
> by Eclipse. But it's not a great solution...
>
> Hi
> Marco
>
>
>
--------------000604080106030103050102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marco,<br>
<br>
The EMF generated code is intended to be specialized by hand so there's
no need to avoid that. It's of course fine (and better) to replace
the generated GIFs since these are just placeholders for your own
graphical talents. The generator will never overwrite an existing .gif
file.<br>
<br>
<br>
napo wrote:
<blockquote cite="mid:fdt5b5$4f3$1@build.eclipse.org" type="cite">
<blockquote type="cite">
<pre wrap="">I don't know if there is an easyer method, i changed the getImage()
methods in the generated .edit plugin. You will find this method in the
XXXItemProvider.java. If you change code there, don't forget to add a
"NOT" behind the @generated tag.
</pre>
</blockquote>
<pre wrap=""><!---->
Tnx, but I'd like not to modify the Java code if it's possible. :-\
The only solution I found at the moment is to overwrite the GIF file created
by Eclipse. But it's not a great solution...
Hi
Marco
</pre>
</blockquote>
<br>
</body>
</html>
--------------000604080106030103050102--
|
|
|
Re: How to change node's image? [message #152917 is a reply to message #152909] |
Tue, 02 October 2007 12:10 |
Eclipse User |
|
|
|
Originally posted by: napo.NOPRIVATEMESSAGE.com
>The EMF generated code is intended to be specialized by hand so there's no
>need to avoid that. It's of course fine (and better) to replace the
>generated GIFs since these are just placeholders for your own graphical
>talents. The generator will never overwrite an existing .gif file.
Well, fine.
But now, I've a question: what exactly "Large bundle image" stands for???
Hi
Marco
|
|
|
Re: How to change node's image? [message #152925 is a reply to message #152917] |
Tue, 02 October 2007 12:46 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------000406020300090409070505
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Marco,
Sorry, I have no idea. I can only answer the EMF parts of questions here...
napo wrote:
>> The EMF generated code is intended to be specialized by hand so there's no
>> need to avoid that. It's of course fine (and better) to replace the
>> generated GIFs since these are just placeholders for your own graphical
>> talents. The generator will never overwrite an existing .gif file.
>>
>
> Well, fine.
> But now, I've a question: what exactly "Large bundle image" stands for???
>
> Hi
> Marco
>
>
>
--------------000406020300090409070505
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marco,<br>
<br>
Sorry, I have no idea. I can only answer the EMF parts of questions
here...<br>
<br>
napo wrote:
<blockquote cite="mid:fdtcft$9jq$1@build.eclipse.org" type="cite">
<blockquote type="cite">
<pre wrap="">The EMF generated code is intended to be specialized by hand so there's no
need to avoid that. It's of course fine (and better) to replace the
generated GIFs since these are just placeholders for your own graphical
talents. The generator will never overwrite an existing .gif file.
</pre>
</blockquote>
<pre wrap=""><!---->
Well, fine.
But now, I've a question: what exactly "Large bundle image" stands for???
Hi
Marco
</pre>
</blockquote>
<br>
</body>
</html>
--------------000406020300090409070505--
|
|
|
Re: How to change node's image? [message #152933 is a reply to message #152917] |
Tue, 02 October 2007 12:57 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
napo wrote:
> But now, I've a question: what exactly "Large bundle image" stands for???
You can set a property in the palette options to show "large icons". So
you can define 2 different icons for every tool, a small one and a
detailed larger one.
jens
|
|
|
Re: How to change node's image? [message #152941 is a reply to message #152933] |
Tue, 02 October 2007 12:58 |
Eclipse User |
|
|
|
Originally posted by: napo.NOPRIVATEMESSAGE.com
> You can set a property in the palette options to show "large icons". So
> you can define 2 different icons for every tool, a small one and a
> detailed larger one.
Great! Thanks!
Hi
Marco
|
|
|
Re: How to change node's image? [message #152963 is a reply to message #152941] |
Tue, 02 October 2007 13:16 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
napo wrote:
>> You can set a property in the palette options to show "large icons". So
>> you can define 2 different icons for every tool, a small one and a
>> detailed larger one.
>
> Great! Thanks!
The options you get at runtime i forgot to say. By rightklicking in the
palette :).
|
|
|
Re: How to change node's image? [message #152977 is a reply to message #152963] |
Tue, 02 October 2007 13:22 |
Eclipse User |
|
|
|
Originally posted by: napo.NOPRIVATEMESSAGE.com
> The options you get at runtime i forgot to say. By rightklicking in the
> palette :).
The GMF project and the automation precedure are great... but a little
complex. :-\
Hi
Marco
|
|
|
Powered by
FUDForum. Page generated in 0.04476 seconds