Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » LabelEditPart for multiple Strings (List<String>)
LabelEditPart for multiple Strings (List<String>) [message #660792] Mon, 21 March 2011 15:53 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi all,

I've tried to create a Label that displays a List of Strings or at least the first Element in that List and is able to edit the List of Strings.

The setter function in my model expects a List<String> as input, which probably is the problem.

To display the Strings, I can simply edit the getLabelText() method but i have no idea how to change the value that will be sent to the model method.

any ideas?

Thanks
Dennis
Re: LabelEditPart for multiple Strings (List<String>) [message #660852 is a reply to message #660792] Tue, 22 March 2011 02:56 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 21-03-11 08:53, Sui wrote:
> Hi all,
>
> I've tried to create a Label that displays a List of Strings or at least
> the first Element in that List and is able to edit the List of Strings.
>
> The setter function in my model expects a List<String> as input, which
> probably is the problem.
>
> To display the Strings, I can simply edit the getLabelText() method but
> i have no idea how to change the value that will be sent to the model
> method.
>
Hi, It sounds to be me, you need a custom ParserProvider. ( a class
which implements) IParserProvider. In the generated diag. there is
already such a provider installed:

<extension
point="org.eclipse.gmf.runtime.common.ui.services.parserProviders "
id="parser-provider">
<?gmfgen generated="true"?>
<ParserProvider class="Your class which implements IParserProvider">
<Priority name="Lowest"/> <=== Add it in an another plugin and
raise the priority.
</ParserProvider>
</extension>

> any ideas?
>
> Thanks
> Dennis
Previous Topic:Manipulate Notational Model on Element Creation
Next Topic:creating activity diagram
Goto Forum:
  


Current Time: Thu Dec 12 13:37:08 GMT 2024

Powered by FUDForum. Page generated in 0.02438 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top