LabelEditPart for multiple Strings (List<String>) [message #660792] |
Mon, 21 March 2011 11:53  |
Eclipse User |
|
|
|
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] |
Mon, 21 March 2011 22:56  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03755 seconds