Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367552

Summary: Error in Graphiti Documentation
Product: [Modeling] Graphiti Reporter: Tarun Telang <tarun.telang>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: juergen.pasch, michael.wenz
Version: 0.8.0Flags: juergen.pasch: documentation+
juergen.pasch: juno+
Target Milestone: 0.9.0   
Hardware: All   
OS: All   
Whiteboard: Juno M5 Theme_round_offs

Description Tarun Telang CLA 2011-12-26 09:58:05 EST
Build Identifier: Version: 4.2.0 Build id: I20111209-2100

At the documentation link below:
http://localhost:55983/help/topic/org.eclipse.graphiti.doc/resources/docu/gfw/diagram.htm?cp=6_1_2
Under the section "Register the Diagram Type Provider and Diagram Type" the following plugin.xml is incorrect.

------------ 
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
  <extension
      point="org.eclipse.graphiti.ui.diagramTypes">
    <diagramType
      description="This is the diagram type for my Graphiti tutorial"
      id="org.eclipse.graphiti.examples.tutorial.diagram.MyTutorialDiagramType"
      name="My Graphiti Tutorial Diagram Type"
      type="mytutorial">
    </diagramType>
  </extension>

  <extension
      point="org.eclipse.graphiti.ui.diagramTypeProviders">
    <diagramTypeProvider
       class="org.eclipse.graphiti.examples.tutorial.diagram.
           MyTutorialDiagramTypeProvider"
      description="This is my editor for the Graphiti tutorial"
      id="org.eclipse.graphiti.examples.tutorial.diagram.
          MyTutorialDiagramTypeProvider"
      name="My tutorial editor">
      <diagramType
    </diagramTypeProvider>
  </extension>
</plugin>
-------------------------

Best Regards,

Reproducible: Always

Steps to Reproduce:
1.Launch Eclipse IDE & Click Helo > Help Contents to open the Eclipse Documentation
2. Click Graphiti Developer Guide > Tutorial > Diagram and go to the section Register the Diagram Type Provider and Diagram Type. 
3. You will find the code for plugin.xml which is erroneous and not a valid xml.
Comment 1 Juergen Pasch CLA 2011-12-28 04:18:05 EST
The plugin.xml is corrected now on head.
Comment 2 Michael Wenz CLA 2012-04-11 10:49:59 EDT
Bookkeeping: Set target release
Comment 3 Michael Wenz CLA 2012-06-29 04:17:10 EDT
Part of Graphiti 0.9.0 (Eclipse Juno)