Hi Markus,

I would find that pretty odd. Why can't I tell the NotationProvider which Notation I'd like to have?

Because a NotationProvider provides the notation in the language selected in the project. If you change notation language for the current project, then everything on the diagram changes (as far as implemented :-( ), so why should the property panels not follow the changed language?

If I want to display something in the property panels than I guess these information should not be displayed in C# notation.

IMHO it should.

Markus, I know we had a similar discussion before, in which you proposed to have only UML notation. I do respect this opinion. However, since the new notation architecture is based on having multiple languages, and making multiple languages easy, I would appreciate it if this feature remains available.

Regards,
Michiel


----- Original Message ----- From: "Markus Klink" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 17, 2006 6:14 PM
Subject: Re: [argouml-dev] Notationprovider help required


If I want to display something in the property panels than I guess these information should not be displayed in C# notation.

I would find that pretty odd. Why can't I tell the NotationProvider which Notation I'd like to have?

Michiel van der Wulp wrote:
Hi Markus,

Well, it was never designed that way.
I see no reason why you would not allow other notations then UML, since they have become a project-wide setting - but maybe you have good reasons.

I guess, if you really want this, it would be best to use the OperationNotationUml.parseOperation() directly. This function is public since it is used in a unit-test directly (not a good practise, I know, but it simplifies the test).
However, this may create some new dependencies.

Another way to go, a bit more work, would be to create a specific ListRendererOperationNotationUml, similar to OperationNotationUml, for which you simply do not create a Java, cpp,... equivalent.
Then you would call:
   NotationProvider4 np = NotationProviderFactory2
                           .getInstance().getNotationProvider(

NotationProviderFactory2.TYPE_LIST_RENDERER_OPERATION,
                                   value);


Regards,
Michiel


----- Original Message ----- From: "Markus Klink" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 17, 2006 11:38 AM
Subject: [argouml-dev] Notationprovider help required


In a list renderer I would like to display operations in UML format with visibility and Parameters.

NotationProvider4 np = NotationProviderFactory2
                           .getInstance().getNotationProvider(

NotationProviderFactory2.TYPE_OPERATION,
                                   value);
                   name = np.toString();

I choose to implement the following code which works, but I am unable to limit the display to UML notation only. Unfortunately my property panel also listens to Notation changes. How can I stop that?

Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.0/420 - Release Date: 16/08/2006






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16/08/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16/08/2006

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to