Skip to main content
Jump to: navigation, search

Difference between revisions of "STP/BPMN Component/STP BPMN Presentation Hands on tutorial"

(Adding a property tab to see your annotation)
Line 1: Line 1:
 
This tutorial is presented as part of the [http://www.eclipsecon.org/2007/index.php?page=sub/&id=3595 STP BPMN Presentation] at EclipseCon 2007.
 
This tutorial is presented as part of the [http://www.eclipsecon.org/2007/index.php?page=sub/&id=3595 STP BPMN Presentation] at EclipseCon 2007.
 +
 +
== Participants ==
 +
In this section, we are going to begin to play with the modeler and try to extend its use.
 +
 +
We want to add a participant to our shapes. A participant represents a person with a name and a role.
 +
  
 
== Adding a property tab to see your annotation ==
 
== Adding a property tab to see your annotation ==
 +
The easiest way to add a participant to your shape is to create a property tab to represent it and enable us to enter his name and his role.
 +
 +
In the plugin.xml, we define a new property tab named "Participants". We add one section to the tab.
 +
 +
<!-- the contributor for the new tab, it defines a new category -->
 +
<extension
 +
        point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
 +
      <propertyContributor
 +
            contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
 +
        <propertyCategory category="Participants"/>
 +
      </propertyContributor>
 +
  </extension>
 +
 +
<!-- the definition of the tab itself -->
 +
  <extension
 +
        point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
 +
      <propertyTabs contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
 +
        <propertyTab
 +
              category="Participants"
 +
              id="Participants"
 +
              indented="false"
 +
              label="Participants"/>
 +
      </propertyTabs>
 +
  </extension>
 +
 +
<!-- the definition of the section inside the property tab -->
 +
<extension
 +
        point="org.eclipse.ui.views.properties.tabbed.propertySections">
 +
      <propertySections contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
 +
        <propertySection
 +
              class="org.eclipse.stp.samples.eclipsecon2007.participant.properties.ParticipantPropertySection"
 +
              id="ParticipantsSection"
 +
              tab="Participants">
 +
            <input type="org.eclipse.stp.bpmn.Activity"/>
 +
            <input type="java.lang.Object"/>
 +
        </propertySection>
 +
      </propertySections>
 +
  </extension>
  
 
== Adding a drop action ==
 
== Adding a drop action ==

Revision as of 18:15, 3 March 2007

This tutorial is presented as part of the STP BPMN Presentation at EclipseCon 2007.

Participants

In this section, we are going to begin to play with the modeler and try to extend its use.

We want to add a participant to our shapes. A participant represents a person with a name and a role.


Adding a property tab to see your annotation

The easiest way to add a participant to your shape is to create a property tab to represent it and enable us to enter his name and his role.

In the plugin.xml, we define a new property tab named "Participants". We add one section to the tab.

<extension

        point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
     <propertyContributor
           contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
        <propertyCategory category="Participants"/>
     </propertyContributor>
  </extension>
  <extension
        point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
     <propertyTabs contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
        <propertyTab
              category="Participants"
              id="Participants"
              indented="false"
              label="Participants"/>
     </propertyTabs>
  </extension>

<extension

        point="org.eclipse.ui.views.properties.tabbed.propertySections">
     <propertySections contributorId="org.eclipse.gmf.runtime.diagram.ui.properties">
        <propertySection
              class="org.eclipse.stp.samples.eclipsecon2007.participant.properties.ParticipantPropertySection"
              id="ParticipantsSection"
              tab="Participants">
           <input type="org.eclipse.stp.bpmn.Activity"/>
           <input type="java.lang.Object"/>
        </propertySection>
     </propertySections>
  </extension>

Adding a drop action

Back to the top