| [Eugenia] Enumeration [message #660947] |
Tue, 22 March 2011 09:08  |
amalia.msanusi Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi everyone,
I have a question regarding setting the enumeration into nodes. Consider these EMF codes:
class EventBasedGateway extends Gateway {
attr EventBasedGatewayType[1] eventGatewayType;
attr boolean[1] instantiate = false;
}
enum EventBasedGatewayType {
Parallel = 0;
Exclusive = 1;
}
I want to specify that each object in this enum EventBasedGatewayType to be gmf nodes with different figures. How do I do that?
Regards,
AM
|
|
|
|
| Re: [Eugenia] Enumeration [message #661284 is a reply to message #660947] |
Wed, 23 March 2011 18:05   |
amalia.msanusi Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi Dimitris,
Thanks for your reply!
I'm having trouble understanding the code. But I tried to follow the instruction. I can't seem to find org.eclipse.ui.dialogs.ResourceListSelectionDialog in org.eclipse.ui.dialogs.... (the jar that is used is org.eclipse.ui.workbench_3.6.1.M20100826-1330.jar).
Am I missing something here?
Also.. how do I add multiple images into this (one for parallel, one for exclusive)?
AM
|
|
|
|
| Re: [Eugenia] Enumeration [message #664452 is a reply to message #660947] |
Fri, 08 April 2011 19:22   |
amalia.msanusi Messages: 6 Registered: March 2011 |
Junior Member |
|
|
Hi Dimitris,
I tried the other way, by adding some codes in Ecore2GMF.eol. But I still have some problems.
Here are the steps that I did:
- GmfTool: Add a new tool group and add 2 creation tools for Exclusive & Parallel to this tool group
- GmfGraph: Custom figures etc
- GmfMap:
Add Feature Seq Initializer with feature value eventGatewayType := EventBasedGatewayType::Parallel
and add constraint self.eventGatewayType = EventBasedGatewayType::Parallel
I could run the application with no errors but if I clicked on the parallel-event based, I got an error.
Is this the right way to do it? Or am I missing something?
Thanks a lot beforehand.
AM
[Updated on: Fri, 08 April 2011 19:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.06852 seconds