<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>mdt-papyrus.dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/maillist.html</link>
		<description>mdt-papyrus.dev</description>
		<language>en-us</language>
		<pubDate>Thu, 23 May 2013 12:20:11 GMT</pubDate>
		<lastBuildDate>Thu, 23 May 2013 12:20:11 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>mdt-papyrus.dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/maillist.html</link>
		</image>
 

	<item>
		<title>Re: [mdt-papyrus.dev] EMF transaction for inserting a new Element in a diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01735.html</link>
		<description> Hi, Thanks for your previous answer. I finally managed to create an EMF object (an initial node) in an activity diagram with this following code : "... /** * */ private IElementType getElementTypeToCreate() { return UMLElementTypes.INITIAL_NODE; } /** * *...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    <div class="moz-cite-prefix"><span class="MsgBodyText">Hi,<br>
        <br>
        Thanks for your previous answer. I finally managed to create an
        EMF object (an initial node) in an activity diagram with this
        following code :<br>
        <br>
        "...<br>
        /**<br>
        *<br>
        */<br>
        private IElementType getElementTypeToCreate() {<br>
        return UMLElementTypes.INITIAL_NODE;<br>
        }<br>
        <br>
        /**<br>
        *<br>
        */<br>
        private Command buildCommand()<br>
        {<br>
        IElementEditService provider =
        ElementEditServiceUtils.getCommandProvider(container);<br>
        if(provider == null) {<br>
        return UnexecutableCommand.INSTANCE;<br>
        }<br>
        <br>
        // Retrieve create command from the Element Edit service<br>
        CreateElementRequest createRequest = null;<br>
        if(reference == null) {<br>
        createRequest = new CreateElementRequest(container,
        getElementTypeToCreate());<br>
        } else {<br>
        createRequest = new CreateElementRequest(container,
        getElementTypeToCreate(), reference);<br>
        }<br>
        <br>
        ICommand createGMFCommand =
        provider.getEditCommand(createRequest);<br>
        <br>
        Command emfCommand = new
        GMFtoEMFCommandWrapper(createGMFCommand);<br>
        return emfCommand;<br>
        }<br>
        <br>
        /**<br>
        *<br>
        */<br>
        public Object executeCommand()<br>
        {<br>
        Command creationcommand = null;<br>
        <br>
        try<br>
        {<br>
        ServiceUtilsForActionHandlers util = new
        ServiceUtilsForActionHandlers();<br>
        creationcommand = buildCommand();<br>
        <br>
util.getTransactionalEditingDomain().getCommandStack().execute(creationcommand);<br>
        <br>
        return creationcommand.getResult();<br>
        <br>
        } catch (ServiceException e)<br>
        {<br>
        e.printStackTrace();<br>
        }<br>
        <br>
        return null;<br>
        }<br>
        ..."<br>
        <br>
        However it does not appear on the diagram. I have heard that I
        need to create the GMF part of the object and link the GMF part
        with the EMF part.<br>
        <br>
        May you indicate me how I could get some examples or some help
        to create the graphical part of this item ?<br>
        <br>
        Thanks for your help.</span><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      Le 17/04/2013 22:06, <a class="moz-txt-link-abbreviated" href="mailto:give.a.damus@xxxxxxxxx">give.a.damus@xxxxxxxxx</a> a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
      cite=""
      type="cite">
      
      <div>Hi, Alexandre,</div>
      <div><br>
      </div>
      <div>Questions like this will find a wider audience (both to
        answer and to benefit from the discussion) of the
        newsgroup/forum.</div>
      <div><br>
      </div>
      <div>Many (most?) such editing actions in Papyrus don't execute
        RecordingCommands on the CommandStack but AbstractEMFOperations
        on the IOperationHistory. They can be added to context menus
        using the org.eclipse.ui.menus extension point, together with
        command handlers. &nbsp;For an example, you might look at how the Add
        Child menu is implemented in the Model Explorer.</div>
      <div><br>
      </div>
      <div>HTH,</div>
      <div><br>
      </div>
      <div>Christian</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
        On 2013-04-17, at 9:33, Alexandre HERISSE &lt;<a
          moz-do-not-send="true"
          href="mailto:alexandre.herisse@xxxxxxxxxxxxxxxxxxxxxx">alexandre.herisse@xxxxxxxxxxxxxxxxxxxxxx</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          
          <font face="monospace">Hi all,<br>
            <br>
            First, thanks a lot for your previous answers concerning how
            to get a "Comment" instance from the active editor. This
            works as expected.<br>
            <br>
            My new question concerns the adding of a Comment or a
            NamedElement such as a CallBehaviour for example in an
            active activity diagram through an emf transaction.<br>
            <br>
            I would use the following skeleton for example:<span
              class="pln"><br>
              <br>
              // we suppose we have access to the serviceRegistry
              instance<br>
              TransactionalEditingDomain domain =
ServiceUtils.getInstance().getTransactionalEditingDomain(serviceRegistry);<br>
              domain</span><span class="pun">.</span><span class="pln">getCommandStack</span><span
              class="pun">().</span><span class="pln">execute</span><span
              class="pun">(</span><span class="kwd">new</span><span
              class="pln"> </span><span class="typ">RecordingCommand</span><span
              class="pun">(</span><span class="pln">domain</span><span
              class="pun">)</span><span class="pln"> </span><span
              class="pun">{</span><span class="pln"><br>
              &nbsp;&nbsp;&nbsp; </span><span class="kwd">public</span><span
              class="pln"> </span><span class="kwd">void</span><span
              class="pln"> doExecute</span><span class="pun">()</span><span
              class="pln"> </span><span class="pun">{</span><span
              class="pln"><br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="com">// do the changes here</span><span
              class="pln"> <br>
              &nbsp;&nbsp;&nbsp; </span><span class="pun">}<br>
              }<br>
            </span><span class="pln"></span><br>
            I have downloaded your Papyrus source code. However I have
            no idea where to search an example for adding an Element in
            the active editor or some code that might help me?<br>
            I have grep "RecordingCommand" but I found a lot of
            occurences with some "@generated code" comments. Thus I
            decided to ask for some help.<br>
            <br>
            How to deal with my need ?<br>
            <br>
            <br>
            Thanks<br>
            <br>
          </font><br>
          <pre class="moz-signature" cols="72">-- 
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>mdt-papyrus.dev mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a></span><br>
          <span><a moz-do-not-send="true"
              href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a></span><br>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mdt-papyrus.dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Thu, 23 May 2013 12:18:02 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01735.html</guid>
		<author>alexandre.herisse@xxxxxxx (Alexandre HERISSE)</author>
	</item>


	<item>
		<title>[mdt-papyrus.dev] Qualifiers</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01734.html</link>
		<description>Hi, Are there any plans to support qualifier notation in class diagrams? Thanks Pieter </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<pre style="margin: 0em;">Are there any plans to support qualifier notation in class diagrams?</pre><br>
<pre style="margin: 0em;">Thanks
Pieter</pre><br>
<br>
]]></content:encoded>
		<pubDate>Sun, 28 Apr 2013 18:44:15 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01734.html</guid>
		<author>pietermartin@xxxxxxx (Pieter Martin)</author>
	</item>


	<item>
		<title>Re: [mdt-papyrus.dev] A few SVN changes &amp; documentation info</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01733.html</link>
		<description>Thanks, Camille,I have followed up by moving the CDO integration documentation plug-in to the new plugins/doc folder.For anyone that has it checked out, you will have to "SVN switch" it fromsvn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="">Thanks, Camille,<div><br></div><div>I have followed up by moving the CDO integration documentation plug-in to the new plugins/doc folder.</div><div><br></div><div>For anyone that has it checked out, you will have to "SVN switch" it from</div><div><br></div><div><a href="svn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/trunk/extraplugins/cdo/org.eclipse.papyrus.cdo.ui.doc">svn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/trunk/extraplugins/cdo/org.eclipse.papyrus.cdo.ui.doc</a></div><div><br></div><div>to</div><div><br></div><div><a href="svn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/trunk/plugins/doc/org.eclipse.papyrus.cdo.ui.doc">svn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/trunk/plugins/doc/org.eclipse.papyrus.cdo.ui.doc</a></div><div><br></div><div>Related bugzilla:</div><div><br></div><div>405652:&nbsp;[CDO] Add CDO integration feature to discovery</div><div><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=405652">https://bugs.eclipse.org/bugs/show_bug.cgi?id=405652</a></div><div><br></div><div>Cheers,</div><div><br></div><div>Christian</div><div><br></div><div><br><div><div>On 2013-04-23, at 4:46 AM, LETAVERNIER Camille &lt;<a href="mailto:Camille.LETAVERNIER@xxxxxx">Camille.LETAVERNIER@xxxxxx</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="FR" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Hi,<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I&#x2019;ve moved a few plug-ins on the SVN (From the Incoming folder to their final location):<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">org.eclipse.papyrus.infra.doc to plugins/infra &lt;- Entry point for embedded documentation in Papyrus<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">org.eclipse.papyrus.infra.gmfdiag.css.doc to &nbsp;plugins/doc &lt;- Documentation for the CSS extra-component (Diagram Stylesheets)<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">org.eclipse.papyrus.infra.services.navigation to plugins/infra/services &lt;- Generic service to &#xAB;&nbsp;Navigate&nbsp;&#xBB; with Alt + Clic on some elements (In the ModelExplorer and Diagrams)<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">org.eclipse.papyrus.infra.services.openelement to plugins/infra/services &lt;- Service to retrieve and open the pages (Diagrams, Tables) representing an element<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">org.eclipse.papyrus.uml.navigation to plugins/uml &lt;- Implementation of the Navigation service for UML. Currently, it implements the navigation to the Type of TypedElements (And return type of Operations)<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I&#x2019;ve also added a &#x201C;plugins/doc&#x201D; folder, which is included to the build, and can be used to add documentation plug-ins to the main Papyrus build. It should be used for documentation plug-ins, including extra-components documentation (e.g. CSS, CDO, and others). These documentations will be included to the main distribution (for all doc plugins), and should provide some installation steps (for extra-components doc plugins).<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Related bugzillas:<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.1pt; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; ">399858: [Documentation] Papyrus shall have an embedded documentation<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; "><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=399858" style="color: purple; text-decoration: underline; "><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=399858</span></a></span><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; ">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.1pt; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; ">399882: [ModelExplorer] Papyrus shall enable navigation between typed model elements shown in views and the model explorer<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; "><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=399882" style="color: purple; text-decoration: underline; "><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=399882</span></a></span><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; ">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.1pt; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; ">402662: [Editor - Services] Papyrus shall provide a Service to open page(s) associated to an Element<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: rgb(0, 102, 204); "><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=402662" style="color: purple; text-decoration: underline; "><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=402662</span></a></span><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; color: rgb(0, 102, 204); "><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: Consolas; color: rgb(0, 102, 204); ">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.1pt; "><span style="font-size: 10pt; font-family: Consolas; ">402655: [Documentation] Diagram Stylesheets (CSS) documentation<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; "><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=402655" style="color: purple; text-decoration: underline; ">https://bugs.eclipse.org/bugs/show_bug.cgi?id=402655</a><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Regards,<br>Camille<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">__________________________<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Camille Letavernier<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">+33 (0)1 69 08 00 59 -<span class="Apple-converted-space">&nbsp;</span><a href="mailto:camille.letavernier@xxxxxx" style="color: purple; text-decoration: underline; "><span style="color: blue; ">camille.letavernier@xxxxxx</span></a><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">CEA LIST - Laboratoire d'Ing&#xE9;nierie dirig&#xE9;e par les mod&#xE8;les pour les Syst&#xE8;mes Embarqu&#xE9;s (LISE)<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Papyrus&nbsp;:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.eclipse.org/papyrus" style="color: purple; text-decoration: underline; "><span style="color: blue; ">http://www.eclipse.org/papyrus</span></a><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div></div>_______________________________________________<br>mdt-papyrus.dev mailing list<br><a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx" style="color: purple; text-decoration: underline; ">mdt-papyrus.dev@xxxxxxxxxxx</a><br><a href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev" style="color: purple; text-decoration: underline; ">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a><br></div></blockquote></div><br></div></td></tr></table>]]></content:encoded>
		<pubDate>Tue, 23 Apr 2013 16:22:58 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01733.html</guid>
		<author>give.a.damus@xxxxxxx (Christian W. Damus)</author>
	</item>
	<item>
		<title>[mdt-papyrus.dev] Diagram generation and automatic layout	documentation</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01732.html</link>
		<description> Dear Sir or Madam, I would like to know where I can find documentation or specification about the Papyrus Generation diagram and about the Papyrus Automatic Layout. Best Regards, Vincent Ce message et les pi&amp;#xE8;ces jointes sont confidentiels et r&amp;#xE9;serv&amp;#xE9;s 0; l...</description>
		<content:encoded><![CDATA[


<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Dear Sir or Madam,<br>
<br>
I would like to know where I can find documentation or specification about the Papyrus Generation diagram and about the Papyrus Automatic Layout.<br>
<br>
Best Regards, <br>
<br>
Vincent<br>
</div>
<hr>
<p style="font-size:8pt; line-height:10pt; font-family:arial">Ce message et les pi&#xE8;ces jointes sont confidentiels et r&#xE9;serv&#xE9;s &#xE0; l'usage exclusif de ses destinataires. Il peut &#xE9;galement &#xEA;tre prot&#xE9;g&#xE9; par le secret professionnel. Si vous recevez ce message par
 erreur, merci d'en avertir imm&#xE9;diatement l'exp&#xE9;diteur et de le d&#xE9;truire. L'int&#xE9;grit&#xE9; du message ne pouvant &#xEA;tre assur&#xE9;e sur Internet, la responsabilit&#xE9; du groupe Atos ne pourra &#xEA;tre engag&#xE9;e quant au contenu de ce message. Bien que les meilleurs efforts soient
 faits pour maintenir cette transmission exempte de tout virus, l'exp&#xE9;diteur ne donne aucune garantie &#xE0; cet &#xE9;gard et sa responsabilit&#xE9; ne saurait &#xEA;tre engag&#xE9;e pour tout dommage r&#xE9;sultant d'un virus transmis.<br>
<br>
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
 the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
 from any virus transmitted.</p>


]]></content:encoded>
		<pubDate>Tue, 23 Apr 2013 12:51:32 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01732.html</guid>
		<author>vincent.lartigaut@xxxxxxx (LARTIGAUT Vincent)</author>
	</item>
	<item>
		<title>[mdt-papyrus.dev] A few SVN changes &amp; documentation info</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01731.html</link>
		<description> Hi,   I&amp;#8217;ve moved a few plug-ins on the SVN (From the Incoming folder to their final location):   org.eclipse.papyrus.infra.doc to plugins/infra &amp;lt;- Entry point for embedded documentation in Papyrus org.eclipse.papyrus.infra.gmfdiag.css.doc to  plugins/doc ...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I&#8217;ve moved a few plug-ins on the SVN (From the Incoming folder to their final location):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">org.eclipse.papyrus.infra.doc to plugins/infra &lt;- Entry point for embedded documentation in Papyrus<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">org.eclipse.papyrus.infra.gmfdiag.css.doc to &nbsp;plugins/doc &lt;- Documentation for the CSS extra-component (Diagram Stylesheets)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">org.eclipse.papyrus.infra.services.navigation to plugins/infra/services &lt;- Generic service to &#xAB;&nbsp;Navigate&nbsp;&#xBB; with Alt &#43; Clic on some elements (In the ModelExplorer and Diagrams)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">org.eclipse.papyrus.infra.services.openelement to plugins/infra/services &lt;- Service to retrieve and open the pages (Diagrams, Tables) representing an element<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">org.eclipse.papyrus.uml.navigation to plugins/uml &lt;- Implementation of the Navigation service for UML. Currently, it implements the navigation to the Type of TypedElements (And return type of Operations)
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I&#8217;ve also added a &#8220;plugins/doc&#8221; folder, which is included to the build, and can be used to add documentation plug-ins to the main Papyrus build. It should be used for documentation plug-ins, including extra-components
 documentation (e.g. CSS, CDO, and others). These documentations will be included to the main distribution (for all doc plugins), and should provide some installation steps (for extra-components doc plugins).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Related bugzillas:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:.1pt;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">399858: [Documentation] Papyrus shall have an embedded documentation<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=399858"><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=399858</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:.1pt;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">399882: [ModelExplorer] Papyrus shall enable navigation between typed model elements shown in views and the model explorer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=399882"><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=399882</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:.1pt;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">402662: [Editor - Services] Papyrus shall provide a Service to open page(s) associated to an Element<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#0066CC"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=402662"><span lang="EN-US">https://bugs.eclipse.org/bugs/show_bug.cgi?id=402662</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#0066CC"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#0066CC"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:.1pt;text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">402655: [Documentation] Diagram Stylesheets (CSS) documentation<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=402655">https://bugs.eclipse.org/bugs/show_bug.cgi?id=402655</a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Regards,<br>
Camille<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">__________________________<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">Camille Letavernier<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">&#43;33 (0)1 69 08 00 59 -
<a href="mailto:camille.letavernier@xxxxxx"><span style="color:blue">camille.letavernier@xxxxxx</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">CEA LIST - Laboratoire d'Ing&#xE9;nierie dirig&#xE9;e par les mod&#xE8;les pour les Syst&#xE8;mes Embarqu&#xE9;s (LISE)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">Papyrus&nbsp;:
<a href="http://www.eclipse.org/papyrus"><span style="color:blue">http://www.eclipse.org/papyrus</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Tue, 23 Apr 2013 08:46:08 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01731.html</guid>
		<author>Camille.LETAVERNIER@xxxxxxx (LETAVERNIER Camille)</author>
	</item>


	<item>
		<title>Re: [mdt-papyrus.dev] EMF transaction for inserting a new Element	in a diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01730.html</link>
		<description>Hi, Alexandre,Questions like this will find a wider audience (both to answer and to benefit from the discussion) of the newsgroup/forum.Many (most?) such editing actions in Papyrus don't execute RecordingCommands on the CommandStack but AbstractEMFOperatio...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style=""><div>Hi, Alexandre,</div><div><br></div><div>Questions like this will find a wider audience (both to answer and to benefit from the discussion) of the newsgroup/forum.</div><div><br></div><div>Many (most?) such editing actions in Papyrus don't execute RecordingCommands on the CommandStack but AbstractEMFOperations on the IOperationHistory. They can be added to context menus using the org.eclipse.ui.menus extension point, together with command handlers. &nbsp;For an example, you might look at how the Add Child menu is implemented in the Model Explorer.</div><div><br></div><div>HTH,</div><div><br></div><div>Christian</div><div><br></div><div><br></div><div><br>On 2013-04-17, at 9:33, Alexandre HERISSE &lt;<a href="mailto:alexandre.herisse@xxxxxxxxxxxxxxxxxxxxxx">alexandre.herisse@xxxxxxxxxxxxxxxxxxxxxx</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>
  
    
  
  
    <font face="monospace">Hi all,<br>
      <br>
      First, thanks a lot for your previous answers concerning how to
      get a "Comment" instance from the active editor. This works as
      expected.<br>
      <br>
      My new question concerns the adding of a Comment or a NamedElement
      such as a CallBehaviour for example in an active activity diagram
      through an emf transaction.<br>
      <br>
      I would use the following skeleton for example:<span class="pln"><br>
        <br>
        // we suppose we have access to the serviceRegistry instance<br>
        TransactionalEditingDomain domain =
ServiceUtils.getInstance().getTransactionalEditingDomain(serviceRegistry);<br>
        domain</span><span class="pun">.</span><span class="pln">getCommandStack</span><span class="pun">().</span><span class="pln">execute</span><span class="pun">(</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">RecordingCommand</span><span class="pun">(</span><span class="pln">domain</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>
        &nbsp;&nbsp;&nbsp; </span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> doExecute</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="com">// do the changes here</span><span class="pln"> <br>
        &nbsp;&nbsp;&nbsp; </span><span class="pun">}<br>
        }<br>
      </span><span class="pln"></span><br>
      I have downloaded your Papyrus source code. However I have no idea
      where to search an example for adding an Element in the active
      editor or some code that might help me?<br>
      I have grep "RecordingCommand" but I found a lot of occurences
      with some "@generated code" comments. Thus I decided to ask for
      some help.<br>
      <br>
      How to deal with my need ?<br>
      <br>
      <br>
      Thanks<br>
      <br>
    </font><br>
    <pre class="moz-signature" cols="72">-- 
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>mdt-papyrus.dev mailing list</span><br><span><a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a></span><br><span><a href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a></span><br></div></blockquote></td></tr></table>]]></content:encoded>
		<pubDate>Wed, 17 Apr 2013 20:06:18 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01730.html</guid>
		<author>give.a.damus@xxxxxxx (give . a . damus)</author>
	</item>
	<item>
		<title>[mdt-papyrus.dev] EMF transaction for inserting a new Element in a	diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01729.html</link>
		<description> Hi all, First, thanks a lot for your previous answers concerning how to get a "Comment" instance from the active editor. This works as expected. My new question concerns the adding of a Comment or a NamedElement such as a CallBehaviour for example in an a...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    <font face="monospace">Hi all,<br>
      <br>
      First, thanks a lot for your previous answers concerning how to
      get a "Comment" instance from the active editor. This works as
      expected.<br>
      <br>
      My new question concerns the adding of a Comment or a NamedElement
      such as a CallBehaviour for example in an active activity diagram
      through an emf transaction.<br>
      <br>
      I would use the following skeleton for example:<span class="pln"><br>
        <br>
        // we suppose we have access to the serviceRegistry instance<br>
        TransactionalEditingDomain domain =
ServiceUtils.getInstance().getTransactionalEditingDomain(serviceRegistry);<br>
        domain</span><span class="pun">.</span><span class="pln">getCommandStack</span><span
        class="pun">().</span><span class="pln">execute</span><span
        class="pun">(</span><span class="kwd">new</span><span
        class="pln"> </span><span class="typ">RecordingCommand</span><span
        class="pun">(</span><span class="pln">domain</span><span
        class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span
        class="pln"><br>
        &nbsp;&nbsp;&nbsp; </span><span class="kwd">public</span><span class="pln"> </span><span
        class="kwd">void</span><span class="pln"> doExecute</span><span
        class="pun">()</span><span class="pln"> </span><span
        class="pun">{</span><span class="pln"><br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="com">// do the changes here</span><span
        class="pln"> <br>
        &nbsp;&nbsp;&nbsp; </span><span class="pun">}<br>
        }<br>
      </span><span class="pln"></span><br>
      I have downloaded your Papyrus source code. However I have no idea
      where to search an example for adding an Element in the active
      editor or some code that might help me?<br>
      I have grep "RecordingCommand" but I found a lot of occurences
      with some "@generated code" comments. Thus I decided to ask for
      some help.<br>
      <br>
      How to deal with my need ?<br>
      <br>
      <br>
      Thanks<br>
      <br>
    </font><br>
    <pre class="moz-signature" cols="72">-- 
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Wed, 17 Apr 2013 13:33:06 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01729.html</guid>
		<author>alexandre.herisse@xxxxxxx (Alexandre HERISSE)</author>
	</item>


	<item>
		<title>Re: [mdt-papyrus.dev] extract information from an activity diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01728.html</link>
		<description> Hi,   A Comment is not a NamedElement. It is an Element (which is a supertype of NamedElement).   To retrieve the UML Element from a selection, you should use org.eclipse.papyrus.uml.tools.utils.UMLUtil.resolveUMLElement(). This method takes a single elem...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">A Comment is not a NamedElement. It is an Element (which is a supertype of NamedElement).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">To retrieve the UML Element from a selection, you should use org.eclipse.papyrus.uml.tools.utils.UMLUtil.resolveUMLElement(). This method takes
 a single element (i.e. not a selection, but it works for example for a graphical element), and returns a UML Element. If you selected a Comment in your diagram, it will return an org.eclipse.uml2.uml.Element which can be cast to org.eclipse.uml2.uml.Comment.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">__________________________<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Camille Letavernier<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&#43;33 (0)1 69 08 00 59 -
<a href="mailto:camille.letavernier@xxxxxx">camille.letavernier@xxxxxx</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">CEA LIST - Laboratoire d'Ing&#xE9;nierie dirig&#xE9;e par les mod&#xE8;les pour les Syst&#xE8;mes Embarqu&#xE9;s (LISE)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Papyrus&nbsp;:
<a href="http://www.eclipse.org/papyrus">http://www.eclipse.org/papyrus</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
<b>De la part de</b> Alexandre HERISSE<br>
<b>Envoy&#xE9;&nbsp;:</b> vendredi 5 avril 2013 12:25<br>
<b>&#xC0;&nbsp;:</b> mdt-papyrus.dev@xxxxxxxxxxx<br>
<b>Objet&nbsp;:</b> Re: [mdt-papyrus.dev] extract information from an activity diagram<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">Hi,<br>
<br>
Thanks a lot for your previous help. It works great.<br>
<br>
I have an other question concerning comment block in an activity diagram.<br>
Using the code from the papyrus faq to get a NamedElement from a selection gave me a null NamedElement object when an Activity comment is selected.<br>
<br>
Here is the code from your website :</span><br>
&quot;...<o:p></o:p></p>
<pre>Object obj = ... // The Graphical Object<o:p></o:p></pre>
<pre> if( obj instanceof IAdaptable ) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp; NamedElement ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; // Adapt object to NamedElement<o:p></o:p></pre>
<pre>&nbsp;&nbsp; NamedElement ele = null;<o:p></o:p></pre>
<pre>&nbsp;&nbsp; if( obj instanceof IAdaptable ) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; }<o:p></o:p></pre>
<pre>&nbsp;&nbsp; if( ele == null) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; ele = (NamedElement)Platform.getAdapterManager().getAdapter(obj, NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; }<o:p></o:p></pre>
<pre> }<o:p></o:p></pre>
<pre>...&quot;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>How could I do in order to have a non null NamedElement from a Activity Comment selection ?<o:p></o:p></pre>
<pre>If this is not possible, how to get an object reflecting the comment ?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Thanks.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Herisse Alexandre.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<p class="MsoNormal"><br>
Le 21/02/2013 11:19, LETAVERNIER Camille a &#xE9;crit&nbsp;:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hello Alexandre,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-family:Wingdings"><span style="mso-list:Ignore">&#xD8;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;
</span></span></span><![endif]><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">I can get the NamedElement</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The &#xAB;&nbsp;NamedElement&nbsp;&#xBB; is your CallBehaviorAction, right&nbsp;? If so, you can call:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">NamedElement selectedNamedElement = &#8230;;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> (selectedNamedElement
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">instanceof</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> CallBehaviorAction){</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Behavior calledBehavior = ((CallBehaviorAction)selectedNamedElement).getBehavior();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> (calledBehavior
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">instanceof</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> Activity){</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Activity
<u>calledActivity</u> = (Activity)calledBehavior;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F">//...</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">}</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If you also need to manipulate SysML stereotypes, have a look at Element#getAppliedStereotype() and Element#getStereotypeApplication(Stereotype)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><br>
</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<br>
Camille</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">__________________________</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Camille Letavernier</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&#43;33 (0)1 69 08 00 59 -
<a href="mailto:camille.letavernier@xxxxxx">camille.letavernier@xxxxxx</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">CEA LIST - Laboratoire d'Ing&#xE9;nierie dirig&#xE9;e par les mod&#xE8;les pour les Syst&#xE8;mes Embarqu&#xE9;s (LISE)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Papyrus&nbsp;:
<a href="http://www.eclipse.org/papyrus">http://www.eclipse.org/papyrus</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
<a href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mdt-papyrus.dev-bounces@xxxxxxxxxxx</a> [<a href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx</a>]
<b>De la part de</b> Alexandre HERISSE<br>
<b>Envoy&#xE9;&nbsp;:</b> jeudi 21 f&#xE9;vrier 2013 11:01<br>
<b>&#xC0;&nbsp;:</b> <a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a><br>
<b>Objet&nbsp;:</b> [mdt-papyrus.dev] extract information from an activity diagram</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">Hi,<br>
<br>
I need to extract information from an activity diagram with the help of an eclipse plugin.<br>
This activity diagram is mainly composed of call-behaviour actions. Each call-behaviour action points to an activity which have some inputs and some outputs.
<br>
By clicking on that item, I can get the NamedElement under the eclipse plugin. What I need is to get the activity which is pointed by the call behaviour action and on that activity, get the arguments name and the result name to process something.<br>
<br>
I can see them under debug (in &quot;behaviour&quot; attribute) but I do not know how to get them by calling public functions. Is it related to EMF? If yes, how can we question the emf to get the sysml model of the selected element ?<br>
<br>
Thanks for your help.<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Alexandre HERISSE<o:p></o:p></pre>
<pre>Xcos developer<o:p></o:p></pre>
<pre>-----------------------------------------------------------<o:p></o:p></pre>
<pre>Scilab Enterprises<o:p></o:p></pre>
<pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre>
<pre>Phone: &#43;33.1.80.77.04.70<o:p></o:p></pre>
<pre><a href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> <o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>mdt-papyrus.dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a><o:p></o:p></pre>
<pre><a href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Alexandre HERISSE<o:p></o:p></pre>
<pre>Xcos developer<o:p></o:p></pre>
<pre>-----------------------------------------------------------<o:p></o:p></pre>
<pre>Scilab Enterprises<o:p></o:p></pre>
<pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre>
<pre>Phone: &#43;33.1.80.77.04.70<o:p></o:p></pre>
<pre><a href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> <o:p></o:p></pre>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 05 Apr 2013 11:05:57 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01728.html</guid>
		<author>Camille.LETAVERNIER@xxxxxxx (LETAVERNIER Camille)</author>
	</item>
	<item>
		<title>Re: [mdt-papyrus.dev] extract information from an activity diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01727.html</link>
		<description> Hi,   A Comment is not a NamedElement. You can probably modify your code by getting an adapter for Element.class (which is common ancestor for NamedElement and Comment), and test if the Element you get is a NamedElement or a Comment.   Arnaud. nbsp; Desp;...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">A Comment is not a NamedElement.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">You can probably modify your code by getting an adapter for Element.class (which is common ancestor for NamedElement and Comment), and test if
 the Element you get is a NamedElement or a Comment.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Arnaud.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
<b>De la part de</b> Alexandre HERISSE<br>
<b>Envoy&#xE9;&nbsp;:</b> vendredi 5 avril 2013 12:25<br>
<b>&#xC0;&nbsp;:</b> mdt-papyrus.dev@xxxxxxxxxxx<br>
<b>Objet&nbsp;:</b> Re: [mdt-papyrus.dev] extract information from an activity diagram<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">Hi,<br>
<br>
Thanks a lot for your previous help. It works great.<br>
<br>
I have an other question concerning comment block in an activity diagram.<br>
Using the code from the papyrus faq to get a NamedElement from a selection gave me a null NamedElement object when an Activity comment is selected.<br>
<br>
Here is the code from your website :</span><br>
&quot;...<o:p></o:p></p>
<pre>Object obj = ... // The Graphical Object<o:p></o:p></pre>
<pre> if( obj instanceof IAdaptable ) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp; NamedElement ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; // Adapt object to NamedElement<o:p></o:p></pre>
<pre>&nbsp;&nbsp; NamedElement ele = null;<o:p></o:p></pre>
<pre>&nbsp;&nbsp; if( obj instanceof IAdaptable ) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; }<o:p></o:p></pre>
<pre>&nbsp;&nbsp; if( ele == null) {<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; ele = (NamedElement)Platform.getAdapterManager().getAdapter(obj, NamedElement.class);<o:p></o:p></pre>
<pre>&nbsp;&nbsp; }<o:p></o:p></pre>
<pre> }<o:p></o:p></pre>
<pre>...&quot;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>How could I do in order to have a non null NamedElement from a Activity Comment selection ?<o:p></o:p></pre>
<pre>If this is not possible, how to get an object reflecting the comment ?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Thanks.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Herisse Alexandre.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<p class="MsoNormal"><br>
Le 21/02/2013 11:19, LETAVERNIER Camille a &#xE9;crit&nbsp;:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hello Alexandre,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-family:Wingdings"><span style="mso-list:Ignore">&#xD8;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;
</span></span></span><![endif]><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">I can get the NamedElement</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The &#xAB;&nbsp;NamedElement&nbsp;&#xBB; is your CallBehaviorAction, right&nbsp;? If so, you can call:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">NamedElement selectedNamedElement = &#8230;;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> (selectedNamedElement
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">instanceof</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> CallBehaviorAction){</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Behavior calledBehavior = ((CallBehaviorAction)selectedNamedElement).getBehavior();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> (calledBehavior
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#7F0055">instanceof</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"> Activity){</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Activity
<u>calledActivity</u> = (Activity)calledBehavior;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F">//...</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">}</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If you also need to manipulate SysML stereotypes, have a look at Element#getAppliedStereotype() and Element#getStereotypeApplication(Stereotype)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><br>
</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<br>
Camille</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">__________________________</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Camille Letavernier</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&#43;33 (0)1 69 08 00 59 -
<a href="mailto:camille.letavernier@xxxxxx">camille.letavernier@xxxxxx</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">CEA LIST - Laboratoire d'Ing&#xE9;nierie dirig&#xE9;e par les mod&#xE8;les pour les Syst&#xE8;mes Embarqu&#xE9;s (LISE)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Papyrus&nbsp;:
<a href="http://www.eclipse.org/papyrus">http://www.eclipse.org/papyrus</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
<a href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mdt-papyrus.dev-bounces@xxxxxxxxxxx</a> [<a href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx</a>]
<b>De la part de</b> Alexandre HERISSE<br>
<b>Envoy&#xE9;&nbsp;:</b> jeudi 21 f&#xE9;vrier 2013 11:01<br>
<b>&#xC0;&nbsp;:</b> <a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a><br>
<b>Objet&nbsp;:</b> [mdt-papyrus.dev] extract information from an activity diagram</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;,&quot;serif&quot;">Hi,<br>
<br>
I need to extract information from an activity diagram with the help of an eclipse plugin.<br>
This activity diagram is mainly composed of call-behaviour actions. Each call-behaviour action points to an activity which have some inputs and some outputs.
<br>
By clicking on that item, I can get the NamedElement under the eclipse plugin. What I need is to get the activity which is pointed by the call behaviour action and on that activity, get the arguments name and the result name to process something.<br>
<br>
I can see them under debug (in &quot;behaviour&quot; attribute) but I do not know how to get them by calling public functions. Is it related to EMF? If yes, how can we question the emf to get the sysml model of the selected element ?<br>
<br>
Thanks for your help.<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Alexandre HERISSE<o:p></o:p></pre>
<pre>Xcos developer<o:p></o:p></pre>
<pre>-----------------------------------------------------------<o:p></o:p></pre>
<pre>Scilab Enterprises<o:p></o:p></pre>
<pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre>
<pre>Phone: &#43;33.1.80.77.04.70<o:p></o:p></pre>
<pre><a href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> <o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>mdt-papyrus.dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a><o:p></o:p></pre>
<pre><a href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Alexandre HERISSE<o:p></o:p></pre>
<pre>Xcos developer<o:p></o:p></pre>
<pre>-----------------------------------------------------------<o:p></o:p></pre>
<pre>Scilab Enterprises<o:p></o:p></pre>
<pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre>
<pre>Phone: &#43;33.1.80.77.04.70<o:p></o:p></pre>
<pre><a href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> <o:p></o:p></pre>
</div>


</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 05 Apr 2013 11:05:43 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01727.html</guid>
		<author>arnaud.cuccuru@xxxxxxx (CUCCURU Arnaud)</author>
	</item>
	<item>
		<title>Re: [mdt-papyrus.dev] extract information from an activity diagram</title>
		<link>http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01726.html</link>
		<description> Hi, Thanks a lot for your previous help. It works great. I have an other question concerning comment block in an activity diagram. Using the code from the papyrus faq to get a NamedElement from a selection gave me a null NamedElement object when an Activi...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    <div class="moz-cite-prefix"><font face="monospace">Hi,<br>
        <br>
        Thanks a lot for your previous help. It works great.<br>
        <br>
        I have an other question concerning comment block in an activity
        diagram.<br>
        Using the code from the papyrus faq to get a NamedElement from a
        selection gave me a null NamedElement object when an Activity
        comment is selected.<br>
        <br>
        Here is the code from your website :</font><br>
      "...<br>
      <pre>Object obj = ... // The Graphical Object
 if( obj instanceof IAdaptable ) {
   NamedElement ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);
   // Adapt object to NamedElement
   NamedElement ele = null;
   if( obj instanceof IAdaptable ) {
     ele = (NamedElement)((IAdaptable)obj).getAdapter(NamedElement.class);
   }
   if( ele == null) {
     ele = (NamedElement)Platform.getAdapterManager().getAdapter(obj, NamedElement.class);
   }
 }
..."

How could I do in order to have a non null NamedElement from a Activity Comment selection ?
If this is not possible, how to get an object reflecting the comment ?

Thanks.


Herisse Alexandre.

</pre>
      <br>
      Le 21/02/2013 11:19, LETAVERNIER Camille a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite=""
      type="cite">
      
      
      <!----><!---->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hello
            Alexandre,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!----><span
            style="font-size:11.0pt;font-family:Wingdings;color:#1F497D"><span
              style="mso-list:Ignore">&Oslash;<span style="font:7.0pt
                &quot;Times New Roman&quot;">&nbsp;
              </span></span></span><!----><span
            style="font-family:&quot;Courier New&quot;">I can get the
            NamedElement</span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"
            lang="EN-US">The &laquo;&nbsp;NamedElement&nbsp;&raquo; is your
            CallBehaviorAction, right&nbsp;? If so, you can call:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">NamedElement
            selectedNamedElement = &#8230;;</span><span
            style="font-size:10.0pt;font-family:Consolas;color:windowtext"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><b><span
              style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
              lang="EN-US">if</span></b><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">
            (selectedNamedElement
          </span><b><span
              style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
              lang="EN-US">instanceof</span></b><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">
            CallBehaviorAction){</span><span
            style="font-size:10.0pt;font-family:Consolas;color:windowtext"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            Behavior calledBehavior =
            ((CallBehaviorAction)selectedNamedElement).getBehavior();</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          </span><b><span
              style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
              lang="EN-US">if</span></b><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">
            (calledBehavior
          </span><b><span
              style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
              lang="EN-US">instanceof</span></b><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">
            Activity){</span><span
            style="font-size:10.0pt;font-family:Consolas;color:windowtext"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            Activity
            <u>calledActivity</u> = (Activity)calledBehavior;</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          </span><span
            style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F">//...</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">}</span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"
            lang="EN-US"><o:p></o:p></span></p>
        <div>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"
              lang="EN-US">If you also need to manipulate SysML
              stereotypes, have a look at Element#getAppliedStereotype()
              and Element#getStereotypeApplication(Stereotype)<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"
              lang="EN-US"><br>
            </span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<br>
              Camille<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">__________________________<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Camille
              Letavernier<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">+33
              (0)1 69 08 00 59 -
              <a moz-do-not-send="true"
                href="mailto:camille.letavernier@xxxxxx">camille.letavernier@xxxxxx</a><o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">CEA
              LIST - Laboratoire d'Ing&eacute;nierie dirig&eacute;e par les mod&egrave;les
              pour les Syst&egrave;mes Embarqu&eacute;s (LISE)<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Papyrus&nbsp;:
              <a moz-do-not-send="true"
                href="http://www.eclipse.org/papyrus">http://www.eclipse.org/papyrus</a><o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De&nbsp;:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mdt-papyrus.dev-bounces@xxxxxxxxxxx</a>
                [<a class="moz-txt-link-freetext" href="mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx">mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx</a>]
                <b>De la part de</b> Alexandre HERISSE<br>
                <b>Envoy&eacute;&nbsp;:</b> jeudi 21 f&eacute;vrier 2013 11:01<br>
                <b>&Agrave;&nbsp;:</b> <a class="moz-txt-link-abbreviated" href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a><br>
                <b>Objet&nbsp;:</b> [mdt-papyrus.dev] extract information
                from an activity diagram<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span style="font-family:&quot;Courier
            New&quot;">Hi,<br>
            <br>
            I need to extract information from an activity diagram with
            the help of an eclipse plugin.<br>
            This activity diagram is mainly composed of call-behaviour
            actions. Each call-behaviour action points to an activity
            which have some inputs and some outputs.
            <br>
            By clicking on that item, I can get the NamedElement under
            the eclipse plugin. What I need is to get the activity which
            is pointed by the call behaviour action and on that
            activity, get the arguments name and the result name to
            process something.<br>
            <br>
            I can see them under debug (in "behaviour" attribute) but I
            do not know how to get them by calling public functions. Is
            it related to EMF? If yes, how can we question the emf to
            get the sysml model of the selected element ?<br>
            <br>
            Thanks for your help.<br>
            <br>
            <br>
          </span><o:p></o:p></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Alexandre HERISSE<o:p></o:p></pre>
        <pre>Xcos developer<o:p></o:p></pre>
        <pre>-----------------------------------------------------------<o:p></o:p></pre>
        <pre>Scilab Enterprises<o:p></o:p></pre>
        <pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre>
        <pre>Phone: +33.1.80.77.04.70<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> <o:p></o:p></pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mdt-papyrus.dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mdt-papyrus.dev@xxxxxxxxxxx">mdt-papyrus.dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev">https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Fri, 05 Apr 2013 10:24:48 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/mdt-papyrus.dev/msg01726.html</guid>
		<author>alexandre.herisse@xxxxxxx (Alexandre HERISSE)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
