Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Graphiti
 Topic: child shape inside parent shape
Re: child shape inside parent shape [message #1696648 is a reply to message #1061022] Wed, 27 May 2015 15:52
Li li is currently offline Li liFriend
Messages: 2
Registered: May 2015
Junior Member
Hi:
I still have no idea about the codes,could you show me a simple example how to deal with this situation?

Vladimir D wrote on Wed, 29 May 2013 14:31
Hi Abdallah,

you can specify that your childShape can be created only inside a parentShape. You can do this by overriding canCreate() method of your childShape create feature, and it should be something like this:

public boolean canCreate(ICreateContext context) {
	return getBusinessObjectForPictogramElement(context.getTargetContainer()) instanceof ParentShape;
}


After that, by overriding create method, you can add your childShape to your parentShape in the business model.

Re: child shape inside parent shape [message #1696649 is a reply to message #1062039] Wed, 27 May 2015 15:54
Li li is currently offline Li liFriend
Messages: 2
Registered: May 2015
Junior Member
Hi:
Can I have a look of your code?I dont know how to deal with this situation.
Thanks in advance
abdallah Q wrote on Wed, 05 June 2013 14:21
thank you Vladimir ,its working now Smile

Forum: RCP Testing Tool
 Topic: Issue with Maven
Re: Issue with Maven [message #1696556 is a reply to message #1696454] Wed, 27 May 2015 09:09
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 34
Registered: October 2014
Member
Please Find in attached my "pom.xml" file.
I tried to yse an explicit rcptt runner But it didn't works as I got this error message (despite using -U option):

[WARNING] Failure to transfer org.eclipse.rcptt:rcptt-maven-plugin:2.0.0-SNAPSHOT/maven-metadata.xml from https://repo.eclipse.org/content/repositories/rcptt-snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of rcptt-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata org.eclipse.rcptt:rcptt-maven-plugin:2.0.0-SNAPSHOT/maven-metadata.xml from/to rcptt-snapshots (https://repo.eclipse.org/content/repositories/rcptt-snapshots/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Downloading: https://repo.eclipse.org/content/repositories/rcptt-snapshots/org/eclipse/rcptt/rcptt-maven-plugin/2.0.0-SNAPSHOT/rcptt-maven-plugin-2.0.0-SNAPSHOT.pom
Downloading: http://maven.xored.com/nexus/content/repositories/rcptt-releases/org/eclipse/rcptt/rcptt-maven-plugin/2.0.0-SNAPSHOT/rcptt-maven-plugin-2.0.0-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.eclipse.rcptt:rcptt-maven-plugin:2.0.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.rcptt:rcptt-maven-plugin:jar:2.0.0-SNAPSHOT @
[ERROR] Unknown packaging: rcpttTest @ line 10, column 14


I used the command line interface and I succeed in generate HTML report. This report doesn't give details as :
* Test Description
* Assertion report ...
The Font/Size is not well presented (I think)

Thanks for your support.
  • Attachment: pom.xml
    (Size: 1.72KB, Downloaded 2 times)
 Topic: Force waiting a Job completion
Re: Force waiting a Job completion [message #1696582 is a reply to message #1696393] Wed, 27 May 2015 11:25
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 180
Registered: September 2014
Senior Member

Hello,

Related topic was discussed here.

Also, the following construction might be helpful:
try -times 100 -delay 100 -command {get-view "Execution View" | get-tree | verify-error{get-item scenario1 | get-property "image.path" 
    | equals "org.eclipse.rcptt.ui/icons/launching/testrun.gif" | verify-true}} -catch {show-alert "Execution hasn't finished"}

This snippet would be executing while there is testrun.gif in UI. When testrun.gif dissapears, it would go further. Take a look at try command description.
Please let me know if it is helpful or you have any questions.


Yours sincerely,
Olga.
 Topic: Not able to start the record test case feature for AUT
Not able to start the record test case feature for AUT [message #1696600] Wed, 27 May 2015 13:11
Dnyanesh Munde is currently offline Dnyanesh MundeFriend
Messages: 1
Registered: May 2015
Junior Member
I have created an AUT successfully.

However when I try to record the test case for the same AUT it throws
org.eclipse.core.runtime.coreexception: java.lang.noclassdeffounderror: could not initialize class org.eclipse.rcptt.tesla.internal.ui.player.swtuiplayer

Please help!
Re: Not able to start the record test case feature for AUT [message #1696607 is a reply to message #1696600] Wed, 27 May 2015 13:25
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 180
Registered: September 2014
Senior Member

Hello,

Have you launched your AUT?
Could you please attach AUT Error Log (how to get it) and RCPTT error log (.log from <RCPTT workspace>/.metadata).


Yours sincerely,
Olga.
 Topic: How to get "project.basedir" path in a Test Case
How to get "project.basedir" path in a Test Case [message #1696595] Wed, 27 May 2015 12:34
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 34
Registered: October 2014
Member
Hello,

Is there any predefined variables to use in order to refer to the RCPTT Project basedir path ?
It is very usefull when we need to set relative path.

Thanks in advance,
Re: How to get "project.basedir" path in a Test Case [message #1696610 is a reply to message #1696595] Wed, 27 May 2015 13:31
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 180
Registered: September 2014
Senior Member

Hello,

Could you please explain in more details, how do you want to use this relative path?
The command substitute-variables might be useful for that.
For example: substitute-variables "${workspace_loc}"



Yours sincerely,
Olga.
Re: How to get "project.basedir" path in a Test Case [message #1696640 is a reply to message #1696610] Wed, 27 May 2015 15:16
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 34
Registered: October 2014
Member
I need a variable to refer to the "RCTT Test Project" path.
I need a variable to refer to the AUT path.

Thanks for your support !
Re: How to get "project.basedir" path in a Test Case [message #1696641 is a reply to message #1696640] Wed, 27 May 2015 15:20
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 34
Registered: October 2014
Member
May also the current Test Case Path if possible ?
 Topic: Injection mechanism with maven plugin issue
Re: Injection mechanism with maven plugin issue [message #1696650 is a reply to message #1693390] Wed, 27 May 2015 15:58
Tony Hedoux is currently offline Tony HedouxFriend
Messages: 10
Registered: March 2014
Junior Member
Thanks.

By modifying a bit the feature provided, the dependencies issues disappeared. Your diagnostic was the good one.

Tony


ALL4TEC
Forum: Oomph
 Topic: Customize the git config in a GitCloneTask
Re: Customize the git config in a GitCloneTask [message #1696552 is a reply to message #1696359] Wed, 27 May 2015 08:35
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 5
Registered: May 2015
Junior Member
Hi,

that's good news. I will try to set the property.

Thanks.

Dieter
 Topic: Startup trigger not executed
Startup trigger not executed [message #1696553] Wed, 27 May 2015 08:48
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 5
Registered: May 2015
Junior Member
Hi,

I created a setup profile at home and it worked as expected.

Now I tried to use the same profile on my company PC and - whatever I try - after the successful setup and the automatic launch of the IDE the startup task of the Oomph install is not executed. If I trigger it manually (perform setup task), the dialog lists no tasks. And in the list of profiles only the predefined ones are listed (User, Workspace, Installation). My setup profile is missing.

Can you give me a hint on how to solve this problem?

Thanks in advance.

Dieter
Re: Startup trigger not executed [message #1696559 is a reply to message #1696553] Wed, 27 May 2015 09:18
Ed Merks is currently offline Ed MerksFriend
Messages: 26603
Registered: July 2009
Senior Member
Dieter,

Comments below.

On 27/05/2015 10:48 AM, Dieter Scholz wrote:
> Hi,
>
> I created a setup profile at home and it worked as expected.
By profile you mean you have a project setup?
>
> Now I tried to use the same profile on my company PC and - whatever I try
Where is the setup stored? In your git repository? You're adding it to
one of the project catalogs?
> - after the successful setup and the automatic launch of the IDE the
> startup task of the Oomph install is not executed.
In this use case, you've chosen your project on the projects page? And
in the confirmation page you see evidence that the p2 task is installing
additional things (if there are any).
> If I trigger it manually (perform setup task), the dialog lists no tasks.
If you ask it to show all tasks, including the ones that don't need to
perform, is there still no evidence of your project there?
> And in the list of profiles only the predefined ones are listed (User,
> Workspace, Installation). My setup profile is missing.
If you open the workspace setup, doe it show your project as one of the
stream for the workspace's properties?
>
> Can you give me a hint on how to solve this problem?
Not yet. It's not clear what you've done... I'll need to understand
what your Workspace setup looks like. Your project should be referenced
there...
>
> Thanks in advance.
>
> Dieter
Re: Startup trigger not executed [message #1696564 is a reply to message #1696559] Wed, 27 May 2015 09:45
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 5
Registered: May 2015
Junior Member
Ed,

I'm sorry, but I do not understand your answer (all my fault because probably I do not completely overlook how the Oomph installer works).

Ok. I created a setup file (p2 and some changed preferences - see attached file). Then I use this file with the installer. At home - after the installer finished and the IDE is started - the icon for the startup task appears. That's not the case when I execute the same file in my company environment.

I don't understand what that has to do with my workspace and a project I should reference. Can you please explain that to me? Thanks.

I attached the setup log, too.

Dieter
Re: Startup trigger not executed [message #1696577 is a reply to message #1696564] Wed, 27 May 2015 10:44
Ed Merks is currently offline Ed MerksFriend
Messages: 26603
Registered: July 2009
Senior Member
Dieter,

Comments below.

On 27/05/2015 11:45 AM, Dieter Scholz wrote:
> Ed,
>
> I'm sorry, but I do not understand your answer (all my fault because probably I do not completely overlook how the Oomph installer works).
>
> Ok. I created a setup file (p2 and some changed preferences - see attached file). Then I use this file with the installer.
So you added it to the project catalog on the project page so that you
could use it with the install?
> At home - after the installer finished and the IDE is started - the icon for the startup task appears. That's not the case when I execute the same file in my company environment.
When you perform manually on the Confirmation page, and you choose "Show
all triggered tasks", are the tasks you're expecting really not listed
there?
>
> I don't understand what that has to do with my workspace and a project I should reference. Can you please explain that to me? Thanks.
>
> I attached the setup log, too.
It looks like it installed all the extra things you've specified.
Perhaps the state of your workspace already matches all these
preferences and there really is nothing to do. In that case you won't
see any startup tasks performed.
>
> Dieter
Re: Startup trigger not executed [message #1696593 is a reply to message #1696577] Wed, 27 May 2015 12:18
Dieter Scholz is currently offline Dieter ScholzFriend
Messages: 5
Registered: May 2015
Junior Member
Ed,

Comments below.

>> I'm sorry, but I do not understand your answer (all my fault because probably I do not completely overlook how the Oomph installer works).
>>
>> Ok. I created a setup file (p2 and some changed preferences - see attached file). Then I use this file with the installer.
>So you added it to the project catalog on the project page so that you
>could use it with the install?

Correct. I dropped it into the product selection page.

>> At home - after the installer finished and the IDE is started - the icon for the startup task appears. That's not the case when I execute the same file in my company environment.
>When you perform manually on the Confirmation page, and you choose "Show
>all triggered tasks", are the tasks you're expecting really not listed
>there?

I've added three screenshots (summary of installer, toolbar of installed IDE & 'Perform setup task dialog' of installed IDE).

>> I don't understand what that has to do with my workspace and a project I should reference. Can you please explain that to me? Thanks.
>>
>> I attached the setup log, too.
>It looks like it installed all the extra things you've specified.
>Perhaps the state of your workspace already matches all these
>preferences and there really is nothing to do. In that case you won't
>see any startup tasks performed.

The plugins are available but all my preference settings are not applied.

Dieter
  • Attachment: oomph1.png
    (Size: 51.59KB, Downloaded 0 times)
  • Attachment: oomph2.png
    (Size: 3.92KB, Downloaded 0 times)
  • Attachment: oomph3.png
    (Size: 38.50KB, Downloaded 0 times)
Re: Startup trigger not executed [message #1696617 is a reply to message #1696593] Wed, 27 May 2015 13:47
Ed Merks is currently offline Ed MerksFriend
Messages: 26603
Registered: July 2009
Senior Member
Dieter,

Comments below.

On 27/05/2015 2:18 PM, Dieter Scholz wrote:
> Ed,
>
> Comments below.
>
>>> I'm sorry, but I do not understand your answer (all my fault because probably I do not completely overlook how the Oomph installer works).
>>>
>>> Ok. I created a setup file (p2 and some changed preferences - see attached file). Then I use this file with the installer.
>> So you added it to the project catalog on the project page so that you
>> could use it with the install?
> Correct. I dropped it into the product selection page.
You mean Project page? The product page isn't extensible via drag and
drop. Which Project catalog did you add it to? Then you double
clicked on it and it appeared in the bottom stream table at the bottom
of the Project page?
>
>>> At home - after the installer finished and the IDE is started - the icon for the startup task appears. That's not the case when I execute the same file in my company environment.
>> When you perform manually on the Confirmation page, and you choose "Show
>> all triggered tasks", are the tasks you're expecting really not listed
>> there?
> I've added three screenshots (summary of installer, toolbar of installed IDE & 'Perform setup task dialog' of installed IDE).
It certainly looks like this installation's workspace is not aware of
you having added any setup projects to it. Can use the menu you
showed to Open Workspace to open the workspace setup. You can use the
context menu to "Open in Text Editor" and paste what you see textually.
There should be at least one element at the end like this:

<stream
href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']/@projects[name='oomph']/@streams[name='master']"/>

I.e., the workspace setup should reference the stream of your setup project.
>
>
>>> I don't understand what that has to do with my workspace and a project I should reference. Can you please explain that to me? Thanks.
>>>
>>> I attached the setup log, too.
>> It looks like it installed all the extra things you've specified.
>> Perhaps the state of your workspace already matches all these
>> preferences and there really is nothing to do. In that case you won't
>> see any startup tasks performed.
> The plugins are available but all my preference settings are not applied.
No, and from what you show, the workspace's setup doesn't appear to be
aware of your project...
>
> Dieter
>
 Topic: Repositories
Repositories [message #1696571] Wed, 27 May 2015 10:22
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 2
Registered: May 2015
Junior Member
Hi

I'm new in Oomph and Eclipse-Setups and I'm stuck in managing the repository configuration of the eclipse that I install over Oomph. We have mirrored repositories because of our netword security specification and further to have control whats installed in version.

So I want to achieve 2 things:
- Remove (or at least disable) the standard entries like http://download.eclipse.org/releases/luna
- Adding our own repositories

I tried adding following 'Preferences' entries in our product.setup file: (key=value)
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/enabled=true
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/isSystem=false
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/nickname=ourcompany Luna
repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/uri=http\://eclipse.devres.internal.ourcompany.com/eclipse-luna/


but that does not work.

Do I have to set an ID? Did I miss some documentation? Any help appreciated.


Thank you very much in advance.

Greetings
Re: Repositories [message #1696615 is a reply to message #1696571] Wed, 27 May 2015 13:39
Eike Stepper is currently offline Eike StepperFriend
Messages: 5757
Registered: July 2009
Senior Member
Hi Niklaus,

You can add a RedirectionTask like this one to your user.setup:

<?xml version="1.0" encoding="UTF-8"?>
<setup:RedirectionTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
sourceURL="http://download.eclipse.org/releases/luna/"
targetURL="http://repos.foo.com/mirrors/luna/"/>

Don't forget the trailing slashes. You can paste this XML snippet directly into your SetupEditor.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 27.05.2015 um 15:19 schrieb Niklaus Bucher:
> Hi
>
> I'm new in Oomph and Eclipse-Setups and I'm stuck in managing the repository configuration of the eclipse that I
> install over Oomph. We have mirrored repositories because of our netword security specification and further to have
> control whats installed in version.
>
> So I want to achieve 2 things:
> - Remove (or at least disable) the standard entries like http://download.eclipse.org/releases/luna
> - Adding our own repositories
>
> I tried adding following 'Preferences' entries in our product.setup file: (key=value)
>
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/enabled=true
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/isSystem=false
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/nickname=ourcompany Luna
> repositories/http\:__eclipse.devres.internal.ourcompany.com_eclipse-luna/uri=http\://eclipse.devres.internal.ourcompany.com/eclipse-luna/
>
>
>
> but that does not work.
>
> Do I have to set an ID? Did I miss some documentation? Any help appreciated.
>
>
> Thank you very much in advance.
>
> Greetings
Re: Repositories [message #1696646 is a reply to message #1696615] Wed, 27 May 2015 15:42
Niklaus Bucher is currently offline Niklaus BucherFriend
Messages: 2
Registered: May 2015
Junior Member
Hi Eike

Thank you very much for your response.

I added the redirection task to my 'company.product.setup', but it seems that it does not work: If I open the 'Available Software Sites' Preferences in the Eclipse I installed using Oomph, my repo doesn't appear but the original Luna repo still appears. Same with the org.eclipse.equinox.p2.metadata.repository.prefs file located in the '.p2/org.eclipse.equinox.p2.engine/profileRegistry/.../.data/.settings'. I tried with and without trailing slash.

If I open the 'Profile Details' in the Oomph-'Bundle Pool Management'-window, the Repositories section in the 'Definition' Tab showing my repositories. I think because of the configured Repository element in the P2 Director Task (<setupTask xsi:type="setup.p2:P2Task" ...>).

I'm using Oomph version 1.1.0. Build 1216

Thank you very much in advance.

Greetings
Re: Repositories [message #1696652 is a reply to message #1696646] Wed, 27 May 2015 16:06
Ed Merks is currently offline Ed MerksFriend
Messages: 26603
Registered: July 2009
Senior Member
Niklaus,

I tried adding this to my user.setup

<?xml version="1.0" encoding="UTF-8"?>
<setup:RedirectionTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
sourceURL="http://download.eclipse.org/"
targetURL="http:/bogus.example.org/"/>

When I start the installer, and advance to the confirmation page, and
look at the P2 task's list of repositories, I can see they've all become
"bogus". Do your redirections appear to have taken effect, when you
review your P2 task on the confirmation page? If so, as long as you
use Oomph for all your updates, those other sites (added by p2's
discovery data encoded in the p2 update sites themselves) should not
actually be used (in theory).


On 27/05/2015 5:42 PM, Niklaus Bucher wrote:
> Hi Eike
>
> Thank you very much for your response.
>
> I added the redirection task to my 'company.product.setup', but it
> seems that it does not work: If I open the 'Available Software Sites'
> Preferences in the Eclipse I installed using Oomph, my repo doesn't
> appear but the original Luna repo still appears. Same with the
> org.eclipse.equinox.p2.metadata.repository.prefs file located in the
> '.p2/org.eclipse.equinox.p2.engine/profileRegistry/.../.data/.settings'.
> I tried with and without trailing slash.
>
> If I open the 'Profile Details' in the Oomph-'Bundle Pool
> Management'-window, the Repositories section in the 'Definition' Tab
> showing my repositories. I think because of the configured Repository
> element in the P2 Director Task (<setupTask xsi:type="setup.p2:P2Task"
> ...>).
>
> I'm using Oomph version 1.1.0. Build 1216
>
> Thank you very much in advance.
>
> Greetings
Forum: Sirius
 Topic: Set incoming and outgoing edges
Set incoming and outgoing edges [message #1696539] Wed, 27 May 2015 07:34
Alexander Schledewitz is currently offline Alexander SchledewitzFriend
Messages: 5
Registered: March 2015
Junior Member
Hi everbody,

I'm working on an Petri Net Editor based on the attached Ecore Model.

My problem is that I can create more than one arc from one Place to a Transition (example attached). It's because the Eattributes "Incomings" and "Outgoings" aren't set if I create an arc.
Can anybody give me some hints how i can handle this problem?


Thank's for any help!
  • Attachment: Petri.JPG
    (Size: 26.14KB, Downloaded 3 times)
  • Attachment: Beispiel1.JPG
    (Size: 31.25KB, Downloaded 3 times)
Re: Set incoming and outgoing edges [message #1696619 is a reply to message #1696539] Wed, 27 May 2015 13:54
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Alexander,

Can you give more details about how do you want your semantic elements
be displayed and what mappings have you done in your odesign?

Best Regards

Le 27/05/2015 09:34, Alexander Schledewitz a écrit :
> Hi everbody,
>
> I'm working on an Petri Net Editor based on the attached Ecore Model.
>
> My problem is that I can create more than one arc from one Place to a Transition (example attached). It's because the Eattributes "Incomings" and "Outgoings" aren't set if I create an arc.
> Can anybody give me some hints how i can handle this problem?
>
>
> Thank's for any help!
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: Looking for a simple example containing Drop attributes action
Re: Looking for a simple example containing Drop attributes action [message #1696621 is a reply to message #1695875] Wed, 27 May 2015 13:58
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Tuan Hoang,

You can find examples at Sirius Gallery [1]. EcoreTools [2] and UML
Designer [3] use container list, perhaps they manage list element drag'n
drop.

[1] https://eclipse.org/sirius/gallery.html
[2] https://www.eclipse.org/ecoretools/
[3] http://www.umldesigner.org/

Best Regards.

Le 20/05/2015 13:06, Tuan Hoang Anh a écrit :
> Hi guys,
>
> I want to create a container list and allow user to add attributes into
> the container, but I still failed when creating Drop attributes action
> to move attributes into the container. So I think a simple example may
> help. Do you have any suggestion for me?
>
> Many thanks,
> Tuan



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: Validation problems: "Invalid Type: viewpoint::DragAndDropTarget"
Re: Validation problems: &amp;quot;Invalid Type: viewpoint::DragAndDropTarget&amp;quot; [message #1696562 is a reply to message #1696500] Wed, 27 May 2015 09:35
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Ryan,

Have you tried "diagram::DragAndDropTarget" expression instead of
"viewpoint::DragAndDropTarget" ?

Best Regards.

Le 26/05/2015 20:48, Ryan Schimpel a écrit :
> Hi Esteban,
> thank you for taking the time to respond.
>
> For clarity's sake, I'm using the latest release version of Sirius
> (2.0.0) with Eclipse Luna on Ubuntu; I just attempted to update the
> Sirius plugins but I was already up-to-date (Plugin version
> 2.0.0.201410241344.) As a result, I don't think the problem has
> anything to do with an old version of Sirius.
>
> While I was pretty sure that I had tried including all those Sirius
> metamodels before, I just tried adding them again and to no avail; I
> still get the Invalid Type problem. In fact, I also tried removing ALL
> the metamodels from the diagram element (thus removing all the type
> restrictions) and the validator still comes up not being able to resolve
> viewpoint::DragAndDropTarget. Very strange...
>
> Do you have any other idea as to what could be causing the problem?



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Validation problems: &amp;quot;Invalid Type: viewpoint::DragAndDropTarget&amp;quot; [message #1696629 is a reply to message #1696562] Wed, 27 May 2015 14:39
Ryan Schimpel is currently offline Ryan SchimpelFriend
Messages: 3
Registered: May 2015
Junior Member
Hi Esteban,
while that isn't a bad idea, the issue is that I never actually refer to the type DragAndDropTarget in any of my expressions; I simply haven't needed to use such a type in order to accomplish what are fairly standard operations. If I had explicitly used it somewhere, then I could potentially understand the errors that I'm getting but I never do; that is what makes it so mysterious...

Upon careful inspection, it appears that the validator is complaining at the precondition expressions in the node / edge diagram elements; once I remove the expressions, the error goes away. I have no idea why something like "[self.oclIsKindOf(GroupNode) = false/]" is causing the Validator to throw errors about DragAndDropTarget; the expressions are valid and behave as expected. "self" in this context refers to the element of the given type being tested and is required to prevent multiple nodes in the diagram from being created for one particular semantic element; essentially, I'm dealing with a large type hierarchy where I only want the most specific node possible being created for each semantic element.

Any idea why the validator dislikes these expressions? Am I doing something wrong?
Re: Validation problems: &amp;amp;quot;Invalid Type: viewpoint::DragAndDropTarget&amp;amp;qu [message #1696636 is a reply to message #1696629] Wed, 27 May 2015 15:04
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Ryan,

There are known issues about validation with Acceleo 3 expressions, some
improvements will be done with Sirius 3.0. Could you provide a minimal
example to be able to reproduce or even test with an integration build
of Sirius 3.0? You can find milestones release of Sirius 3.0 at
https://wiki.eclipse.org/Sirius/Update_Sites .

Best Regards.

Le 27/05/2015 16:39, Ryan Schimpel a écrit :
> Hi Esteban,
> while that isn't a bad idea, the issue is that I
> never actually refer to the type DragAndDropTarget in any of my
> expressions; I simply haven't needed to use such a type in order to
> accomplish what are fairly standard operations. If I had explicitly
> used it somewhere, then I could potentially understand the errors that
> I'm getting but I never do; that is what makes it so mysterious...
>
> Upon careful inspection, it appears that the validator is complaining at
> the precondition expressions in the node / edge diagram elements; once I
> remove the expressions, the error goes away. I have no idea why
> something like "[self.oclIsKindOf(GroupNode) = false/]" is causing the
> Validator to throw errors about DragAndDropTarget; the expressions are
> valid and behave as expected. "self" in this context refers to the
> element of the given type being tested and is required to prevent
> multiple nodes in the diagram from being created for one particular
> semantic element; essentially, I'm dealing with a large type hierarchy
> where I only want the most specific node possible being created for each
> semantic element.
>
> Any idea why the validator dislikes these expressions? Am I doing
> something wrong?



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: Make an ecore model to represent different types of relationship?
Re: Make an ecore model to represent different types of relationship? [message #1696618 is a reply to message #1696513] Wed, 27 May 2015 13:51
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi eunjung,

To create your own metamodel with relationships you can use EcoreTools [1].

[1] https://eclipse.org/ecoretools/

Best Regards.

Le 27/05/2015 01:03, eunjung park a écrit :
> Hi,
> I would like to represent different kinds of relationships such as AND
> or OR Relationship. How should I make an ecore meta model and how can I
> show the relationship using Sirius? I have in trouble to make a meta model.
> Please give some hints.
>
> Thanks and regards,
> Eunjung Park
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Make an ecore model to represent different types of relationship? [message #1696643 is a reply to message #1696618] Wed, 27 May 2015 15:33
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Hi Esteban,

Thank you for your response.
I didn't know currently what I am using is Ecore Tools. ( I already installed the ecore Tools).
Anyway, what I want to know is the metamodel itself, that is, elements and relationships between elements.

Regards,
Eunjung Park
 Topic: a problem when selecting a viewpoint
a problem when selecting a viewpoint [message #1696583] Wed, 27 May 2015 11:29
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Hi,

I have a problem when selecting a viewpoint.
I could succeed in the basicfamily sample, but in my model, it doesn't work.
When I click "viewpoint selection" menu in my model, it just shows empty box.
I also tried to add the representation model in the "Project Dependencies" of instance model.
Is there any naming rule?
Please help me.

Thanks and regards,
Eunjung Park
Re: a problem when selecting a viewpoint [message #1696638 is a reply to message #1696583] Wed, 27 May 2015 15:07
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Le 27/05/2015 13:29, eunjung park a écrit :
> Hi,
>
> I have a problem when selecting a viewpoint.
> I could succeed in the basicfamily sample, but in my model, it doesn't
> work.
> When I click "viewpoint selection" menu in my model, it just shows empty
> box.
> I also tried to add the representation model in the "Project
> Dependencies" of instance model. Is there any naming rule?
> Please help me.
"Project Dependencies" is only to use to add semantic model, not
representations model i.e. *.aird.
>
> Thanks and regards,
> Eunjung Park
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: a problem when selecting a viewpoint [message #1696647 is a reply to message #1696638] Wed, 27 May 2015 15:52
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Hi Esteban,

Thank you for your response.
By the way, why does my model does not show the viewpoint that I defined.
I wonder what are the problems.

Thanks and regards,
Eunjung Park
 Topic: a problem to select a Viewpoint
a problem to select a Viewpoint [message #1696581] Wed, 27 May 2015 11:22
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Hi,

I have a problem when select a viewpoint.
I could select basicfamily's viewpoint following tutorial, but my own model doesn't work. It shows empty viewpoint selection.
I added my design model in the project dependency property of my instance model.
I don't know why this happens.
Please help me.

Thanks.

Regards,
Eunjung Park
Re: a problem to select a Viewpoint [message #1696637 is a reply to message #1696581] Wed, 27 May 2015 15:06
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 404
Registered: July 2009
Senior Member
Hi eunjung,

Do you have your odesign registered through
"org.eclipse.sirius.componentization" extension point in your plugin.xml
and through "ViewpointRegistry.getInstance().registerFromPlugin()" API
through your bundle activator?

Best Regards.

Le 27/05/2015 13:22, eunjung park a écrit :
> Hi,
>
> I have a problem when select a viewpoint.
> I could select basicfamily's viewpoint following tutorial, but my own
> model doesn't work. It shows empty viewpoint selection.
> I added my design model in the project dependency property of my
> instance model.
> I don't know why this happens.
> Please help me.
>
> Thanks.
>
> Regards,
> Eunjung Park



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: a problem to select a Viewpoint [message #1696651 is a reply to message #1696637] Wed, 27 May 2015 16:04
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Hi Esteban,

Currently, I use Sirius 2.0.4, and I don't know what you are saying.
Could you let me know how to do it, or any post regarding to it?

Thank
Re: a problem to select a Viewpoint [message #1696653 is a reply to message #1696651] Wed, 27 May 2015 16:12
eunjung park is currently offline eunjung parkFriend
Messages: 26
Registered: April 2015
Junior Member
Additionally, I didn't deploy. I just do it similiar to the 4minute tutorial defining my own model.
In the workbench, I cannot select a viewpoint because of empty popup.
Forum: Eclipse SmartHome
 Topic: config-description parameter-group
Re: config-description parameter-group [message #1696524 is a reply to message #1696477] Wed, 27 May 2015 05:29
Dirk Stueben is currently offline Dirk StuebenFriend
Messages: 2
Registered: May 2015
Location: Ostfriesland, Germany
Junior Member
Thanks for the answer and for updating the documentation
 Topic: Dynamic configuration information
Re: Dynamic configuration information [message #1696654 is a reply to message #1696195] Wed, 27 May 2015 16:20
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 166
Registered: December 2011
Senior Member
Hi Chris,

I think I can come up with a #5 (at least I will have a try):

In your thing-type.xmls you can use a config-description-ref instead of a config-description section (see here). This is simply a named reference and the config-descriptions can be defined elsewhere - e.g. in your own ConfigDescriptionProvider. If you still want to use static XML to define the main structure, you can put such XMLs in ESH-INF/config. You could e.g. use an ID like "zwave-template1" for them, request it from the ConfigDescriptionRegistry within your provider and modify it (or rather create a modified clone). The result you provide under the id that you reference within your thing types.

Would this fullfil your requirements?

Regards,
Kai

Forum: Papyrus
 Topic: class type in palette
Re: class type in palette [message #1696590 is a reply to message #1696480] Wed, 27 May 2015 11:54
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 942
Registered: July 2009
Senior Member
Hi, Markus,

What do you mean by adding your models and classes to the palette? The
palette provides tools that create new elements of various kinds. It
doesn't hold actual model content.

Are you looking for a "template" capability to simplify repeated
creation of more complex structures, as tools like OmniGraffle and
Visio have? That can be accomplished with the palette customization
framework described in the on-line help. It would boil down defining
GMF element-types that represent your "template" patterns with
edit-helpers that build instances of them. (I use "template" in scare
quotes to distinguish the generic concept from specific UML Template
construct)

HTH,

Christian


On 2015-05-26 15:37:13 +0000, Markus Schuss said:

> Hi,
>
> basically instead of drawing my models/classes from the model explorer
> I want to create a plugin that adds them to the palette.
> I am using eclipse mars and have model synchronization enabled via css
> therefore when I pull in a class from the model explorer I get either a
> class or a property with all the ports displayed.
> Is it even possible to achieve this using the palette and if so is
> there some documentation for this?
>
> Thanks in advance,
> Markus
Pages (4): [ «    1  2  3  4    »]


Current Time: Wed May 27 18:15:59 GMT 2015

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

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