Changing default values [message #185273] |
Mon, 05 May 2008 03:11  |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hello everybody!!!
I have created a diagram editor by GMF. There are simple nodes (only one
kind, a rectangle) and there are simple relations (with default values)
between them. The relations have defaultly some values which are indicated
in "Properties -> Appearance". I want to change this default values. Does
anybody know? The most important is to have a Rectilinear connection instead
of Oblique. Can anybody help me? It would be greatful!!
Thank you in advance and I am sorry because of my poor English!!
Aritz
|
|
|
|
|
|
|
|
Re: Changing default values [message #185606 is a reply to message #185598] |
Tue, 06 May 2008 08:30   |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hi again!!!
I am not sure if I understand you, but I explain you extendedly what is my
idea. So, like I have said befor, DiagramConnectionsPreferencePage is a
generated class that extends from ConnectionsPreferencePage, the gmf class.
I mean, the generated code of my editor contains
DiagramConnectionsPreferencePage class. I want to override it, because if I
regenerate my diagram's source code, I will lose my changes. Because of
that, I have createn a new plugin and there, I have created a my class which
I have copied before (DiagramConnectionsPreferencePageOverride).
So, I only want to have the same editor as the generated version but with
one difference. The relations have to be rectilinear instead of oblique.
Maybe, everything was clear before and you have answer me rightly, so if you
still think that the answer before is the correct one, can you explain it
better, please?
Thank you very much for everything!!!
Aritz
"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e621e198ca7d9a669360d4@news.eclipse.org...
> Hello Aritz,
>
>> public static void initDefaults(IPreferenceStore preferenceStore) {
>> preferenceStore.setDefault(IPreferenceConstants.PREF_LINE_ST YLE,
>> Routing.RECTILINEAR);
>> }
>
> Was it called during your diagram editor execution? Did you modify this
> preference in a UI aklready? (non-default value stored in
> preferenceStore).
> Try executing the same code with clear workspace.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Re: Changing default values [message #185628 is a reply to message #185613] |
Tue, 06 May 2008 09:24  |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hi!!
Thank you for the answer but I don't like too much using this Javadoc
because I have had some problems before. Because of that, I prefer to create
my code like I explain you before. Any other idea?
Thank you for answering so quick!!!!
Aritz
"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e621e1f8ca7d9fe66541c2@news.eclipse.org...
> Hello Aritz,
>
>> code of my editor contains DiagramConnectionsPreferencePage class. I
>> want to override it, because if I regenerate my diagram's source code,
> Use "@genereated NOT" javadoc tag to protect your method from any changes
> on next ode generation. I think it's better to just modify generated code.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06213 seconds