Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2012-09-04 23:41:28 +0000
committermgolubev2012-09-11 17:10:05 +0000
commit76decb1f4ddcec5620c65b18641ae927382f9337 (patch)
tree9b24c943976562971d3cdc4b543d305688d44218
parent195407a27dd22dde8c82561e9f9edcc68d0b0c00 (diff)
downloadorg.eclipse.gmf-tooling-76decb1f4ddcec5620c65b18641ae927382f9337.tar.gz
org.eclipse.gmf-tooling-76decb1f4ddcec5620c65b18641ae927382f9337.tar.xz
org.eclipse.gmf-tooling-76decb1f4ddcec5620c65b18641ae927382f9337.zip
[388803] - Sample cleanup / restructuring, the meaning of separate
Tutorial here is unclear, removing (archived just in case)
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial.zipbin0 -> 44313 bytes
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.classpath7
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.cvsignore1
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.project28
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/EclipseCon.genmodel17
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/META-INF/MANIFEST.MF17
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/bin/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.classbin1243 -> 0 bytes
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/build.properties4
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/icons/full/obj16/PresenterStyle.gifbin129 -> 0 bytes
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/failed.gifbin353 -> 0 bytes
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/passed.gifbin343 -> 0 bytes
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/presenter.svg61
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.properties36
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.xml67
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.java56
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/actions/PresenterDisplayDefaultAction.java21
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresenterEditPart.java115
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/OpenResourceURLEditPolicy.java34
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/PresenterDragDropEditPolicy.java53
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/factories/PresenterWithStyleFactory.java37
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/parsers/PresenterParser.java37
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ContributionItemProvider.java24
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPartProvider.java26
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPolicyProvider.java44
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ParserProvider.java45
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecorator.java206
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecoratorProvider.java58
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ViewProvider.java33
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/PresenterStyle.java62
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesFactory.java46
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesPackage.java251
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/PresenterStyleImpl.java268
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesFactoryImpl.java97
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesPackageImpl.java232
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesAdapterFactory.java139
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesSwitch.java148
-rw-r--r--examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/styles.ecore17
37 files changed, 0 insertions, 2287 deletions
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial.zip b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial.zip
new file mode 100644
index 000000000..e737d13cd
--- /dev/null
+++ b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial.zip
Binary files differ
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.classpath b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.classpath
deleted file mode 100644
index 751c8f2e5..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.cvsignore b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.cvsignore
deleted file mode 100644
index ba077a403..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.project b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.project
deleted file mode 100644
index 7aa5c982e..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.gmf.examples.eclipsecon.diagram.custom</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/EclipseCon.genmodel b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/EclipseCon.genmodel
deleted file mode 100644
index 8cf0af8ec..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/EclipseCon.genmodel
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src"
- modelPluginID="org.eclipse.gmf.examples.eclipsecon.diagram.custom" modelName="EclipseCon"
- importerID="org.eclipse.emf.importer.java">
- <foreignModel>@model</foreignModel>
- <genPackages prefix="Styles" basePackage="org.eclipse.gmf.examples.eclipsecon.diagram.custom"
- disposableProviderFactory="true" ecorePackage="styles.ecore#/">
- <genClasses ecoreClass="styles.ecore#//PresenterStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute styles.ecore#//PresenterStyle/imageURL"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute styles.ecore#//PresenterStyle/review"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute styles.ecore#//PresenterStyle/displayAsDefault"/>
- </genClasses>
- <genClasses image="false" ecoreClass="styles.ecore#//Style"/>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/META-INF/MANIFEST.MF b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/META-INF/MANIFEST.MF
deleted file mode 100644
index cef35cb96..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Custom Plug-in
-Bundle-SymbolicName: org.eclipse.gmf.examples.eclipsecon.diagram.custom;singleton:=true
-Bundle-Version: 1.0.0
-Bundle-Activator: org.eclipse.gmf.examples.eclipsecon.diagram.custom.Activator
-Bundle-Localization: plugin
-Export-Package: org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.util,
- org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.gmf.examples.eclipsecon.diagram,
- org.eclipse.gmf.runtime.diagram.core,
- org.eclipse.gmf.runtime.diagram.ui,
- org.eclipse.gmf.runtime.draw2d.ui.render,
- org.eclipse.gmf.runtime.diagram.ui.actions
-Eclipse-LazyStart: true
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/bin/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.class b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/bin/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.class
deleted file mode 100644
index a43621d60..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/bin/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.class
+++ /dev/null
Binary files differ
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/build.properties b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/build.properties
deleted file mode 100644
index 34d2e4d2d..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/build.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/icons/full/obj16/PresenterStyle.gif b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/icons/full/obj16/PresenterStyle.gif
deleted file mode 100644
index 53500daf9..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/icons/full/obj16/PresenterStyle.gif
+++ /dev/null
Binary files differ
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/failed.gif b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/failed.gif
deleted file mode 100644
index 9b048d605..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/failed.gif
+++ /dev/null
Binary files differ
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/passed.gif b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/passed.gif
deleted file mode 100644
index 9cacb96dc..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/passed.gif
+++ /dev/null
Binary files differ
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/presenter.svg b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/presenter.svg
deleted file mode 100644
index 2ca9a1d0f..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/images/presenter.svg
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 77) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
- <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
- <!ENTITY ns_svg "http://www.w3.org/2000/svg">
- <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
-]>
-<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
- width="35.81445" height="91.60449" viewBox="0 0 35.81445 91.60449"
- overflow="visible" enable-background="new 0 0 35.81445 91.60449" xml:space="preserve">
- <g id="Layer_1">
- <path fill="#FFFFFF" d="M25.03809,7.40137c0,3.92578-3.18164,7.10156-7.10742,7.10156c-3.91992,0-7.10156-3.17578-7.10156-7.10156
- s3.18164-7.10742,7.10156-7.10742C21.85645,0.29395,25.03809,3.47559,25.03809,7.40137z"/>
- <path fill="#FFFFFF" d="M8.91895,18.72168c-4.76367,0-8.61914,3.86133-8.61914,8.61914V50.6084
- c0,1.48828,1.20703,2.69531,2.70117,2.69531c1.48242,0,2.68945-1.20703,2.68945-2.69531V32.88965
- c0-0.87891,0.70898-1.59375,1.59375-1.59375s1.59961,0.71484,1.59961,1.59375h0.00586v18.62109v35.51953
- c0,2.37891,1.76367,4.30078,3.93164,4.30078c2.17383,0,3.94336-1.92188,3.94336-4.30078V55.58887h-0.01172
- c0-0.65039,0.52734-1.17188,1.17773-1.17188c0.64453,0,1.16602,0.52148,1.16602,1.17188h0.01172h-0.04688H19.0498v31.44141
- c0,2.37891,1.76953,4.30078,3.94336,4.30078c2.16797,0,3.93164-1.92188,3.93164-4.30078V51.51074V32.88965h0.00586
- c0-0.87891,0.71484-1.59375,1.59961-1.59375s1.59375,0.71484,1.59375,1.59375V50.6084c0,1.48828,1.20703,2.69531,2.68945,2.69531
- c1.49414,0,2.70117-1.20703,2.70117-2.69531V27.34082c0-4.75781-3.85547-8.61914-8.61914-8.61914H8.91895z"/>
-
- <linearGradient id="XMLID_1_" gradientUnits="userSpaceOnUse" x1="-589.09766" y1="14.52637" x2="-589.09766" y2="0.38696" gradientTransform="matrix(1 0 0 1 607.03125 0)">
- <stop offset="0" style="stop-color:#FFFFFF"/>
- <stop offset="1" style="stop-color:#000000"/>
- <a:midPointStop offset="0" style="stop-color:#FFFFFF"/>
- <a:midPointStop offset="0.5" style="stop-color:#FFFFFF"/>
- <a:midPointStop offset="1" style="stop-color:#000000"/>
- </linearGradient>
- <path fill="url(#XMLID_1_)" enable-background="new " d="M25.03809,7.40137
- c0,3.92578-3.18164,7.10156-7.10742,7.10156c-3.91992,0-7.10156-3.17578-7.10156-7.10156s3.18164-7.10742,7.10156-7.10742
- C21.85645,0.29395,25.03809,3.47559,25.03809,7.40137z"/>
-
- <linearGradient id="XMLID_2_" gradientUnits="userSpaceOnUse" x1="-589.12402" y1="91.47168" x2="-589.12402" y2="19.21858" gradientTransform="matrix(1 0 0 1 607.03125 0)">
- <stop offset="0" style="stop-color:#FFFFFF"/>
- <stop offset="1" style="stop-color:#000000"/>
- <a:midPointStop offset="0" style="stop-color:#FFFFFF"/>
- <a:midPointStop offset="0.5" style="stop-color:#FFFFFF"/>
- <a:midPointStop offset="1" style="stop-color:#000000"/>
- </linearGradient>
- <path fill="url(#XMLID_2_)" enable-background="new " d="M8.91895,18.72168
- c-4.76367,0-8.61914,3.86133-8.61914,8.61914V50.6084c0,1.48828,1.20703,2.69531,2.70117,2.69531
- c1.48242,0,2.68945-1.20703,2.68945-2.69531V32.88965c0-0.87891,0.70898-1.59375,1.59375-1.59375s1.59961,0.71484,1.59961,1.59375
- h0.00586v18.62109v35.51953c0,2.37891,1.76367,4.30078,3.93164,4.30078c2.17383,0,3.94336-1.92188,3.94336-4.30078V55.58887
- h-0.01172c0-0.65039,0.52734-1.17188,1.17773-1.17188c0.64453,0,1.16602,0.52148,1.16602,1.17188h0.01172h-0.04688H19.0498
- v31.44141c0,2.37891,1.76953,4.30078,3.94336,4.30078c2.16797,0,3.93164-1.92188,3.93164-4.30078V51.51074V32.88965h0.00586
- c0-0.87891,0.71484-1.59375,1.59961-1.59375s1.59375,0.71484,1.59375,1.59375V50.6084c0,1.48828,1.20703,2.69531,2.68945,2.69531
- c1.49414,0,2.70117-1.20703,2.70117-2.69531V27.34082c0-4.75781-3.85547-8.61914-8.61914-8.61914H8.91895z"/>
- <path fill="none" stroke="#000000" stroke-width="1" d="M25.03809,7.40137c0,3.92578-3.18164,7.10156-7.10742,7.10156
- c-3.91992,0-7.10156-3.17578-7.10156-7.10156s3.18164-7.10742,7.10156-7.10742
- C21.85645,0.29395,25.03809,3.47559,25.03809,7.40137z"/>
- <path fill="none" stroke="#000000" stroke-width="1" d="M8.91895,18.72168c-4.76367,0-8.61914,3.86133-8.61914,8.61914V50.6084
- c0,1.48828,1.20703,2.69531,2.70117,2.69531c1.48242,0,2.68945-1.20703,2.68945-2.69531V32.88965
- c0-0.87891,0.70898-1.59375,1.59375-1.59375s1.59961,0.71484,1.59961,1.59375h0.00586v18.62109v35.51953
- c0,2.37891,1.76367,4.30078,3.93164,4.30078c2.17383,0,3.94336-1.92188,3.94336-4.30078V55.58887h-0.01172
- c0-0.65039,0.52734-1.17188,1.17773-1.17188c0.64453,0,1.16602,0.52148,1.16602,1.17188h0.01172h-0.04688H19.0498v31.44141
- c0,2.37891,1.76953,4.30078,3.94336,4.30078c2.16797,0,3.93164-1.92188,3.93164-4.30078V51.51074V32.88965h0.00586
- c0-0.87891,0.71484-1.59375,1.59961-1.59375s1.59375,0.71484,1.59375,1.59375V50.6084c0,1.48828,1.20703,2.69531,2.68945,2.69531
- c1.49414,0,2.70117-1.20703,2.70117-2.69531V27.34082c0-4.75781-3.85547-8.61914-8.61914-8.61914H8.91895z"/>
- </g>
-</svg>
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.properties b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.properties
deleted file mode 100644
index ee6c5ae5c..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.properties
+++ /dev/null
@@ -1,36 +0,0 @@
-# <copyright>
-# </copyright>
-#
-# $Id: plugin.properties,v 1.1 2006/03/15 03:41:25 sshaw Exp $
-
-# ====================================================================
-# To code developer:
-# Do NOT change the properties between this line and the
-# "%%% END OF TRANSLATED PROPERTIES %%%" line.
-# Make a new property name, append to the end of the file and change
-# the code to use the new property.
-# ====================================================================
-
-# ====================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# ====================================================================
-
-pluginName = EclipseCon Model
-providerName = www.example.org
-
-_UI_CreateChild_text = {0}
-_UI_CreateChild_text2 = {1} {0}
-_UI_CreateChild_text3 = {1}
-_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
-_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
-_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
- _UI_PropertyDescriptor_description = The {0} of the {1}
- _UI_PresenterStyle_type = Presenter Style
-_UI_Style_type = Style
-_UI_Unknown_type = Object
- _UI_Unknown_datatype= Value
- _UI_PresenterStyle_displayAsDefault_feature = Display As Default
-_UI_PresenterStyle_imageURL_feature = Image URL
-_UI_PresenterStyle_review_feature = Review
-_UI_Unknown_feature = Unspecified
-
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.xml b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.xml
deleted file mode 100644
index 62d0eaef3..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/plugin.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
- <extension
- point="org.eclipse.gmf.runtime.common.ui.services.parserProviders">
- <ParserProvider class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ParserProvider">
- <Priority name="Medium">
- </Priority>
- </ParserProvider>
- </extension>
-
- <extension
- point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
- <viewProvider class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ViewProvider">
- <Priority name="High"/>
- <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints=""/>
- </viewProvider>
-
- </extension>
-
- <extension
- point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
- <editpartProvider class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.EditPartProvider">
- <Priority name="High"/>
- </editpartProvider>
- </extension>
-
- <extension id="EclipseConCustomContributionItemProvider" name="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ContributionItemProvider" point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">
- <contributionItemProvider class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ContributionItemProvider">
- <Priority name="Medium">
- </Priority>
- <popupContribution class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">
- <popupStructuredContributionCriteria objectClass="org.eclipse.gmf.examples.eclipsecon.diagram.custom.editparts.BetterLookingPresenterEditPart">
- </popupStructuredContributionCriteria>
- <popupAction path="/formatMenu/miscellaneousGroup" id="presenterDisplayDefaultAction">
- </popupAction>
- </popupContribution>
- </contributionItemProvider>
- </extension>
-
- <extension
- point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
- <editpolicyProvider class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.EditPolicyProvider">
- <Priority name="High"/>
- </editpolicyProvider>
- </extension>
-
- <extension
- id="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ReviewDecoratorProvider"
- point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
- <decoratorProvider
- class="org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers.ReviewDecoratorProvider">
- <Priority
- name="Lowest">
- </Priority>
- <object
- class="org.eclipse.gmf.runtime.notation.Node(org.eclipse.gmf.runtime.notation)"
- id="PRESENTER">
- </object>
- <context
- decoratorTargets="PRESENTER">
- </context>
- </decoratorProvider>
- </extension>
-
-</plugin>
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.java
deleted file mode 100644
index 1dc21750e..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/Activator.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom;
-
-import org.eclipse.ui.plugin.*;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class Activator extends AbstractUIPlugin {
-
- //The shared instance.
- private static Activator plugin;
-
- /**
- * The constructor.
- */
- public Activator() {
- plugin = this;
- }
-
- /**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- }
-
- /**
- * Returns the shared instance.
- *
- * @return the shared instance.
- */
- public static Activator getDefault() {
- return plugin;
- }
-
- /**
- * Returns an image descriptor for the image file at the given
- * plug-in relative path.
- *
- * @param path the path
- * @return the image descriptor
- */
- public static ImageDescriptor getImageDescriptor(String path) {
- return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.gmf.examples.eclipsecon.diagram.custom", path);
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/actions/PresenterDisplayDefaultAction.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/actions/PresenterDisplayDefaultAction.java
deleted file mode 100644
index ae0881d53..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/actions/PresenterDisplayDefaultAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.actions;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-import org.eclipse.gmf.runtime.diagram.ui.actions.BooleanPropertyAction;
-import org.eclipse.gmf.runtime.emf.core.util.PackageUtil;
-import org.eclipse.ui.IWorkbenchPage;
-
-
-public class PresenterDisplayDefaultAction extends BooleanPropertyAction {
-
- static public final String ID = "presenterDisplayDefaultAction"; //$NON-NLS-1$
-
- public PresenterDisplayDefaultAction(IWorkbenchPage workbenchPage) {
- super(workbenchPage, PackageUtil.getID(StylesPackage.eINSTANCE.getPresenterStyle_DisplayAsDefault()),
- "Display default image"); //$NON-NLS-1$ should be translated
-
- setId(ID);
- setText("Display default image");//$NON-NLS-1$ should be translated
- setToolTipText("Use the default image display for the presenter"); //$NON-NLS-1$ should be translated
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresenterEditPart.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresenterEditPart.java
deleted file mode 100644
index 66fc49d83..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresenterEditPart.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.editparts;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.draw2d.BorderLayout;
-import org.eclipse.draw2d.ConnectionAnchor;
-import org.eclipse.draw2d.Figure;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.geometry.PrecisionPoint;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.Activator;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-import org.eclipse.gmf.examples.eclipsecon.diagram.edit.parts.PresenterEditPart;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage;
-import org.eclipse.gmf.runtime.draw2d.ui.render.factory.RenderedImageFactory;
-import org.eclipse.gmf.runtime.draw2d.ui.render.figures.ScalableImageFigure;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.gef.ui.figures.SlidableImageAnchor;
-import org.eclipse.gmf.runtime.gef.ui.figures.WrapperNodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-
-
-public class BetterLookingPresenterEditPart extends PresenterEditPart {
-
-
- public BetterLookingPresenterEditPart(View view) {
- super(view);
- // TODO Auto-generated constructor stub
- }
-
- private static final String TRANSLATE_PATH_ARGUMENT = "$nl$"; //$NON-NLS-1$
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.edit.parts.PresenterEditPart#createNodeFigure()
- */
- protected NodeFigure createNodeFigure() {
-
- // determine which figure to create - first check for default display
- PresenterStyle presenterStyle = (PresenterStyle)getNotationView().getStyle(StylesPackage.eINSTANCE.getPresenterStyle());
- if (presenterStyle == null || presenterStyle.getDisplayAsDefault().booleanValue())
- return super.createNodeFigure();
-
- // check for URL string
- URL presenterURL = null;
- try {
- URL imageURL = new URL(presenterStyle.getImageURL());
- presenterURL = imageURL;
- } catch (MalformedURLException e) {
- // assume default;
- IPath path =
- new Path(TRANSLATE_PATH_ARGUMENT).append(
- "images" + IPath.SEPARATOR + "presenter.svg"); //$NON-NLS-1$ //$NON-NLS-2$
- presenterURL = FileLocator.find(Activator.getDefault().getBundle(), path, null);
- }
-
- RenderedImage rndImg = RenderedImageFactory.getInstance(presenterURL);
- final ScalableImageFigure sif = new ScalableImageFigure(rndImg, false, true, true);
- NodeFigure nf = new WrapperNodeFigure(sif) {
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure#createDefaultAnchor()
- */
- protected ConnectionAnchor createDefaultAnchor() {
- return new SlidableImageAnchor(this, sif);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure#createAnchor(org.eclipse.draw2d.geometry.PrecisionPoint)
- */
- protected ConnectionAnchor createAnchor(PrecisionPoint p) {
- if (p==null)
- // If the old terminal for the connection anchor cannot be resolved (by SlidableAnchor) a null
- // PrecisionPoint will passed in - this is handled here
- return createDefaultAnchor();
- return new SlidableImageAnchor(this, sif, p);
- }
- };
-
- ConstrainedToolbarLayout myGenLayoutManager = new ConstrainedToolbarLayout();
- myGenLayoutManager.setStretchMinorAxis(false);
- myGenLayoutManager
- .setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_TOPLEFT);
- myGenLayoutManager.setSpacing(5);
- myGenLayoutManager.setVertical(true);
- nf.setLayoutManager(myGenLayoutManager);
-
- IFigure pane = new Figure();
- pane.setOpaque(false);
- pane.setLayoutManager(new BorderLayout());
- nf.add(pane);
- addContentPane(pane);
-
- return nf;
- }
-
- /**
- * @see org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart#handlePropertyChangeEvent(java.beans.PropertyChangeEvent)
- */
- protected void handleNotificationEvent(Notification notification) {
- Object feature = notification.getFeature();
- if (StylesPackage.eINSTANCE.getPresenterStyle_DisplayAsDefault().equals(feature) ||
- StylesPackage.eINSTANCE.getPresenterStyle_ImageURL().equals(feature))
- handleMajorSemanticChange();
- else
- super.handleNotificationEvent(notification);
- }
-
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/OpenResourceURLEditPolicy.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/OpenResourceURLEditPolicy.java
deleted file mode 100644
index a82acb3c9..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/OpenResourceURLEditPolicy.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.editpolicies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.examples.eclipsecon.Resource;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.OpenEditPolicy;
-import org.eclipse.swt.program.Program;
-
-
-public class OpenResourceURLEditPolicy
- extends OpenEditPolicy {
-
- protected Command getOpenCommand(Request request) {
- return new Command("") { //$NON-NLS-1$
-
- /* (non-Javadoc)
- * @see org.eclipse.gef.commands.Command#execute()
- */
- public void execute() {
- IGraphicalEditPart gep = (IGraphicalEditPart)getHost();
- EObject eobj = gep.resolveSemanticElement();
- if (eobj instanceof Resource) {
- Resource resource = (Resource)eobj;
- String location = resource.getLocation();
- Program.launch(location);
- }
- }
-
- };
- }
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/PresenterDragDropEditPolicy.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/PresenterDragDropEditPolicy.java
deleted file mode 100644
index 2957d0821..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editpolicies/PresenterDragDropEditPolicy.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.editpolicies;
-
-import java.util.Iterator;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.CompoundCommand;
-import org.eclipse.gef.requests.ChangeBoundsRequest;
-import org.eclipse.gmf.examples.eclipsecon.diagram.edit.parts.PresenterEditPart;
-import org.eclipse.gmf.examples.eclipsecon.diagram.providers.EclipseconElementTypes;
-import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.EtoolsProxyCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewAndElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-
-public class PresenterDragDropEditPolicy
- extends DragDropEditPolicy {
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy#getDropCommand(org.eclipse.gef.requests.ChangeBoundsRequest)
- */
- protected Command getDropCommand(ChangeBoundsRequest request) {
- Command cmd = super.getDropCommand(request);
-
- if (cmd == null) {
- IElementType elementType = EclipseconElementTypes.TutorialPresenters_3003;
- CompoundCommand cm = new CompoundCommand();
-
- Iterator elements = request.getEditParts().iterator();
- while (elements.hasNext()) {
- Object obj = elements.next();
- if (obj instanceof PresenterEditPart) {
- cmd = CreateConnectionViewAndElementRequest
- .getCreateCommand(elementType, getHost(), (PresenterEditPart) obj,
- ((IGraphicalEditPart) getHost())
- .getDiagramPreferencesHint());
- if (cmd != null)
- cm.add(cmd);
- }
- }
-
- if (cm.isEmpty())
- return null;
-
- return new EtoolsProxyCommand(new CommandProxy(cm.unwrap()));
- }
-
- return cmd;
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/factories/PresenterWithStyleFactory.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/factories/PresenterWithStyleFactory.java
deleted file mode 100644
index 3505ea804..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/factories/PresenterWithStyleFactory.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.factories;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesFactory;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-import org.eclipse.gmf.examples.eclipsecon.diagram.view.factories.PresenterViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-
-public class PresenterWithStyleFactory
- extends PresenterViewFactory {
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory#createStyles(org.eclipse.gmf.runtime.notation.View)
- */
- protected List createStyles(View view) {
- List styles = super.createStyles(view);
- styles.add(StylesFactory.eINSTANCE.createPresenterStyle());
- return styles;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.view.factories.PresenterViewFactory#decorateView(org.eclipse.gmf.runtime.notation.View, org.eclipse.gmf.runtime.notation.View, org.eclipse.core.runtime.IAdaptable, java.lang.String, int, boolean)
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index,
- persisted);
-
- PresenterStyle pStyle = (PresenterStyle)view.getStyle(StylesPackage.eINSTANCE.getPresenterStyle());
- pStyle.setDisplayAsDefault(Boolean.TRUE);
- }
-
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/parsers/PresenterParser.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/parsers/PresenterParser.java
deleted file mode 100644
index 08b207038..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/parsers/PresenterParser.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.parsers;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.gmf.examples.eclipsecon.EclipseconPackage;
-import org.eclipse.gmf.examples.eclipsecon.diagram.providers.EclipseconStructuralFeaturesParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-
-public class PresenterParser
- extends EclipseconStructuralFeaturesParser {
-
- static protected IParser instance = null;
- static EAttribute[] attributes = { EclipseconPackage.eINSTANCE.getParticipant_Name(),
- EclipseconPackage.eINSTANCE.getPresenter_Phone()};
-
- /**
- * Constructor for PresenterParser.
- */
- protected PresenterParser() {
- super(new ArrayList(Arrays.asList(attributes)));
- setViewPattern("Name: {0}, Phone: {1}"); //$NON-NLS-1$
- setEditPattern("{0} {1}"); //$NON-NLS-1$
- }
-
- /**
- * Gets the instance of the parser
- * @return IParser the single instance of the parser
- */
- static public IParser getInstance() {
- if (instance == null) {
- instance = new PresenterParser();
- }
- return instance;
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ContributionItemProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ContributionItemProvider.java
deleted file mode 100644
index b74df5d2a..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ContributionItemProvider.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.actions.PresenterDisplayDefaultAction;
-import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider;
-import org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor;
-import org.eclipse.jface.action.IAction;
-
-
-public class ContributionItemProvider
- extends AbstractContributionItemProvider {
-
- /**
- * @see org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider#createAction(java.lang.String, org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor)
- */
- protected IAction createAction(
- String actionId,
- IWorkbenchPartDescriptor partDescriptor) {
-
- if (actionId.equals(PresenterDisplayDefaultAction.ID))
- return new PresenterDisplayDefaultAction(partDescriptor.getPartPage());
-
- return super.createAction(actionId, partDescriptor);
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPartProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPartProvider.java
deleted file mode 100644
index ad4fc27ff..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPartProvider.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-
-import org.eclipse.gmf.examples.eclipsecon.Presenter;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.editparts.BetterLookingPresenterEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider;
-import org.eclipse.gmf.runtime.notation.View;
-
-
-public class EditPartProvider extends AbstractEditPartProvider {
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider#getNodeEditPartClass(org.eclipse.gmf.runtime.notation.View)
- */
- protected Class getNodeEditPartClass(View view) {
-
- if (view.getElement() instanceof Presenter &&
- view.getType() == "" ) { //$NON-NLS-1$
- return BetterLookingPresenterEditPart.class;
- }
-
- return super.getNodeEditPartClass(view);
- }
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPolicyProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPolicyProvider.java
deleted file mode 100644
index dbefdce61..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/EditPolicyProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.editpolicies.OpenResourceURLEditPolicy;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.editpolicies.PresenterDragDropEditPolicy;
-import org.eclipse.gmf.examples.eclipsecon.diagram.edit.parts.ResourceEditPart;
-import org.eclipse.gmf.examples.eclipsecon.diagram.edit.parts.TutorialEditPart;
-import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.CreateEditPoliciesOperation;
-import org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider;
-
-
-public class EditPolicyProvider extends AbstractProvider implements IEditPolicyProvider {
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider#createEditPolicies(org.eclipse.gef.EditPart)
- */
- public void createEditPolicies(EditPart editPart) {
- if (editPart instanceof ResourceEditPart)
- editPart.installEditPolicy(EditPolicyRoles.OPEN_ROLE,
- new OpenResourceURLEditPolicy());
- else if (editPart instanceof TutorialEditPart)
- editPart.installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
- new PresenterDragDropEditPolicy());
- }
-
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.common.core.service.IProvider#provides(org.eclipse.gmf.runtime.common.core.service.IOperation)
- */
- public boolean provides(IOperation operation) {
- if (operation instanceof CreateEditPoliciesOperation) {
- CreateEditPoliciesOperation cepOper = (CreateEditPoliciesOperation)operation;
- if (cepOper.getEditPart() instanceof ResourceEditPart)
- return true;
- else if (cepOper.getEditPart() instanceof TutorialEditPart)
- return true;
- }
- return false;
- }
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ParserProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ParserProvider.java
deleted file mode 100644
index bbffd3dd1..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ParserProvider.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.examples.eclipsecon.EclipseconPackage;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.parsers.PresenterParser;
-import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.common.core.service.IProviderChangeListener;
-import org.eclipse.gmf.runtime.common.ui.services.parser.GetParserOperation;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserProvider;
-
-
-public class ParserProvider
- extends AbstractProvider
- implements IParserProvider {
-
- public IParser getParser(IAdaptable hint) {
- return PresenterParser.getInstance();
- }
-
- public void addProviderChangeListener(IProviderChangeListener listener) {
- // TODO Auto-generated method stub
-
- }
-
- public boolean provides(IOperation operation) {
- if (operation instanceof GetParserOperation) {
- IAdaptable hint = ((GetParserOperation) operation).getHint();
-
- EObject semanticEl = (EObject) hint.getAdapter(EObject.class);
- if (semanticEl.eClass() == EclipseconPackage.Literals.PRESENTER)
- return true;
- }
-
- return false;
- }
-
- public void removeProviderChangeListener(IProviderChangeListener listener) {
- // TODO Auto-generated method stub
-
- }
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecorator.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecorator.java
deleted file mode 100644
index b53789c9a..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecorator.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- ****************************************************************************/
-
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.Activator;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-import org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker;
-import org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author sshaw
- *
- * Example provider for the Decorator service that will selectively decorate
- * depending on what the content of the presenter style review field is.
- *
- * The example will annotate a node view with an icon on the top middle of the shape
- * depending on the following conditions:
- *
- * 1. If the description style contains the word "Passed" a checkbox will appear on top of the shape
- * 2. If the description style contains the word "Failed" an error box will appear on top of the shape
- * 3. If the description style doesn't meet the conditions in (1.) or (2.) then no decoration will appear.
- */
-public class ReviewDecorator implements IDecorator {
-
- /** the object to be decorated */
- private IDecoratorTarget decoratorTarget;
-
- /** the decoration being displayed */
- private IDecoration decoration;
-
- private static final Image ICON_FAILED;
-
- private static final Image ICON_PASSED;
-
- static {
- /*
- * prefix path with "$nl$" and use Plugin.find() to search for the
- * locale specific file
- */
- IPath path = new Path("$nl$").append( //$NON-NLS-1$
- "images//failed.gif"); //$NON-NLS-1$
- URL url = FileLocator.find(Activator.getDefault().getBundle(), path, null);
- ImageDescriptor imgDesc = ImageDescriptor.createFromURL(url);
- ICON_FAILED = imgDesc.createImage();
-
- path = new Path("$nl$").append( //$NON-NLS-1$
- "images//passed.gif"); //$NON-NLS-1$
-
- url = FileLocator.find(Activator.getDefault().getBundle(), path, null);
- imgDesc = ImageDescriptor.createFromURL(url);
- ICON_PASSED = imgDesc.createImage();
- }
-
- /**
- * Creates a new <code>AbstractDecorator</code> for the decorator target
- * passed in.
- *
- * @param decoratorTarget
- * the object to be decorated
- */
- public ReviewDecorator(IDecoratorTarget decoratorTarget) {
- this.decoratorTarget = decoratorTarget;
- }
-
- /**
- * Gets the object to be decorated.
- *
- * @return Returns the object to be decorated
- */
- protected IDecoratorTarget getDecoratorTarget() {
- return decoratorTarget;
- }
-
- /**
- * @return Returns the decoration.
- */
- public IDecoration getDecoration() {
- return decoration;
- }
-
- /**
- * @param decoration
- * The decoration to set.
- */
- public void setDecoration(IDecoration decoration) {
- this.decoration = decoration;
- }
-
- /**
- * Removes the decoration if it exists and sets it to null.
- */
- protected void removeDecoration() {
- if (decoration != null) {
- decoratorTarget.removeDecoration(decoration);
- decoration = null;
- }
- }
-
- /**
- * getDecoratorTargetClassifier Utility method to determine if the
- * decoratorTarget is a supported type for this decorator and return the
- * associated Classifier element.
- *
- * @param decoratorTarget
- * IDecoratorTarget to check and return valid Classifier target.
- * @return node Node if IDecoratorTarget can be supported, null
- * otherwise.
- */
- static public Node getDecoratorTargetNode(
- IDecoratorTarget decoratorTarget) {
- PresenterStyle pStyle = null;
- View node = (View) decoratorTarget.getAdapter(View.class);
- if (node != null && node.eContainer() instanceof Diagram) {
- pStyle = (PresenterStyle)node.getStyle(StylesPackage.eINSTANCE.getPresenterStyle());
-
- if (pStyle != null) {
- return (Node)node;
- }
- }
- return null;
-
- }
-
-
- /**
- * Creates the appropriate review decoration if all the criteria is
- * satisfied by the view passed in.
- */
- public void refresh() {
- removeDecoration();
-
- Node node = getDecoratorTargetNode(getDecoratorTarget());
-
- if (node != null) {
- PresenterStyle pStyle = (PresenterStyle)node.getStyle(StylesPackage.eINSTANCE.getPresenterStyle());
- if (pStyle != null) {
- boolean passed = pStyle.getReview().matches("Passed*"); //$NON-NLS-1$
- boolean failed = pStyle.getReview().matches("Failed*"); //$NON-NLS-1$
- if (passed || failed)
- setDecoration(getDecoratorTarget().addShapeDecoration(
- passed ? ICON_PASSED : ICON_FAILED,
- IDecoratorTarget.Direction.NORTH, 75, false));
- }
- }
- }
-
- private NotificationListener notificationListener = new NotificationListener() {
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener#notifyChanged(org.eclipse.emf.common.notify.Notification)
- */
- public void notifyChanged(Notification notification) {
- refresh();
- }
- };
-
- /**
- * Adds decoration if applicable.
- */
- public void activate() {
-
- IGraphicalEditPart gep = (IGraphicalEditPart)getDecoratorTarget().getAdapter(IGraphicalEditPart.class);
- assert gep != null;
-
- DiagramEventBroker.getInstance(gep.getEditingDomain()).addNotificationListener(gep.getNotationView(),
- StylesPackage.eINSTANCE.getPresenterStyle_Review(), notificationListener);
- }
-
- /**
- * Removes the decoration.
- */
- public void deactivate() {
- removeDecoration();
-
- IGraphicalEditPart gep = (IGraphicalEditPart)getDecoratorTarget().getAdapter(IGraphicalEditPart.class);
- assert gep != null;
-
- DiagramEventBroker.getInstance(gep.getEditingDomain()).removeNotificationListener(gep.getNotationView(), notificationListener);
- }
-
-} \ No newline at end of file
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecoratorProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecoratorProvider.java
deleted file mode 100644
index dc777fe0a..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ReviewDecoratorProvider.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- ****************************************************************************/
-
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import org.eclipse.jface.util.Assert;
-
-import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.CreateDecoratorsOperation;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget;
-import org.eclipse.gmf.runtime.notation.Node;
-
-
-/**
- * @author sshaw
- *
- * Decorator provider for the review decorator class
- */
-public class ReviewDecoratorProvider
- extends AbstractProvider
- implements IDecoratorProvider {
-
- /** The key used for the mood decoration */
- public static final String REVIEW = "Review_Decorator"; //$NON-NLS-1$
-
- public void createDecorators(IDecoratorTarget decoratorTarget) {
- Node node = ReviewDecorator.getDecoratorTargetNode(decoratorTarget);
- if (node != null) {
- decoratorTarget.installDecorator(REVIEW, new ReviewDecorator(decoratorTarget));
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.gmf.runtime.common.core.internal.service.IProvider#provides(org.eclipse.gmf.runtime.common.core.service.IOperation)
- */
- public boolean provides(IOperation operation) {
- Assert.isNotNull(operation);
-
- if (!(operation instanceof CreateDecoratorsOperation)) {
- return false;
- }
-
- IDecoratorTarget decoratorTarget = ((CreateDecoratorsOperation) operation)
- .getDecoratorTarget();
- return ReviewDecorator.getDecoratorTargetNode(decoratorTarget) != null;
- }
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ViewProvider.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ViewProvider.java
deleted file mode 100644
index a827fd838..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/providers/ViewProvider.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.providers;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.factories.PresenterWithStyleFactory;
-import org.eclipse.gmf.examples.eclipsecon.diagram.part.EclipseconVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.providers.AbstractViewProvider;
-import org.eclipse.gmf.runtime.notation.View;
-
-
-
-public class ViewProvider
- extends AbstractViewProvider {
-
- /**
- * @generated
- */
- protected Class getNodeViewClass(IAdaptable semanticAdapter, View containerView, String semanticHint) {
- if (containerView == null) {
- return null;
- }
-
- EClass semanticType = getSemanticEClass(semanticAdapter);
- EObject semanticElement = getSemanticElement(semanticAdapter);
- int nodeVID = EclipseconVisualIDRegistry.INSTANCE.getNodeVisualID(
- containerView, semanticElement, semanticType, semanticHint);
- if (nodeVID == 1001)
- return PresenterWithStyleFactory.class;
-
- return null;
- }
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/PresenterStyle.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/PresenterStyle.java
deleted file mode 100644
index 1aed6bbeb..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/PresenterStyle.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.gmf.runtime.notation.Style;
-
-
-/**
- * @author sshaw
- * @model
- */
-public interface PresenterStyle
- extends EObject, Style{
-
- /**
- * @model default="Boolean.TRUE"
- */
- Boolean getDisplayAsDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getDisplayAsDefault <em>Display As Default</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Display As Default</em>' attribute.
- * @see #getDisplayAsDefault()
- * @generated
- */
- void setDisplayAsDefault(Boolean value);
-
- /**
- * Returns the value of the '<em><b>Description</b></em>' attribute.
- * The default value is <code>""</code>.
- * @model default=""
- */
- String getImageURL();
-
- /**
- * Sets the value of the '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getImageURL <em>Image URL</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Image URL</em>' attribute.
- * @see #getImageURL()
- * @generated
- */
- void setImageURL(String value);
-
- /**
- * @return
- * @model default=""
- */
- String getReview();
- /**
- * Sets the value of the '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getReview <em>Review</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Review</em>' attribute.
- * @see #getReview()
- * @generated
- */
- void setReview(String value);
-
-}
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesFactory.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesFactory.java
deleted file mode 100644
index 620537b8e..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesFactory.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage
- * @generated
- */
-public interface StylesFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- StylesFactory eINSTANCE = org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Presenter Style</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Presenter Style</em>'.
- * @generated
- */
- PresenterStyle createPresenterStyle();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- StylesPackage getStylesPackage();
-
-} //StylesFactory
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesPackage.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesPackage.java
deleted file mode 100644
index d4cca7b67..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/StylesPackage.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesPackage.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesFactory
- * @model kind="package"
- * @generated
- */
-public interface StylesPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "styles";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http:///org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles.ecore";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- StylesPackage eINSTANCE = org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.runtime.notation.Style
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesPackageImpl#getStyle()
- * @generated
- */
- int STYLE = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl <em>Presenter Style</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesPackageImpl#getPresenterStyle()
- * @generated
- */
- int PRESENTER_STYLE = 0;
-
- /**
- * The number of structural features of the '<em>Style</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int STYLE_FEATURE_COUNT = 0;
-
- /**
- * The feature id for the '<em><b>Image URL</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRESENTER_STYLE__IMAGE_URL = STYLE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Review</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRESENTER_STYLE__REVIEW = STYLE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Display As Default</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRESENTER_STYLE__DISPLAY_AS_DEFAULT = STYLE_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Presenter Style</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PRESENTER_STYLE_FEATURE_COUNT = STYLE_FEATURE_COUNT + 3;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle <em>Presenter Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Presenter Style</em>'.
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle
- * @generated
- */
- EClass getPresenterStyle();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getImageURL <em>Image URL</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Image URL</em>'.
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getImageURL()
- * @see #getPresenterStyle()
- * @generated
- */
- EAttribute getPresenterStyle_ImageURL();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getReview <em>Review</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Review</em>'.
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getReview()
- * @see #getPresenterStyle()
- * @generated
- */
- EAttribute getPresenterStyle_Review();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getDisplayAsDefault <em>Display As Default</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Display As Default</em>'.
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle#getDisplayAsDefault()
- * @see #getPresenterStyle()
- * @generated
- */
- EAttribute getPresenterStyle_DisplayAsDefault();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Style</em>'.
- * @see org.eclipse.gmf.runtime.notation.Style
- * @model instanceClass="org.eclipse.gmf.runtime.notation.Style"
- * @generated
- */
- EClass getStyle();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- StylesFactory getStylesFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl <em>Presenter Style</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesPackageImpl#getPresenterStyle()
- * @generated
- */
- EClass PRESENTER_STYLE = eINSTANCE.getPresenterStyle();
-
- /**
- * The meta object literal for the '<em><b>Image URL</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute PRESENTER_STYLE__IMAGE_URL = eINSTANCE.getPresenterStyle_ImageURL();
-
- /**
- * The meta object literal for the '<em><b>Review</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute PRESENTER_STYLE__REVIEW = eINSTANCE.getPresenterStyle_Review();
-
- /**
- * The meta object literal for the '<em><b>Display As Default</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute PRESENTER_STYLE__DISPLAY_AS_DEFAULT = eINSTANCE.getPresenterStyle_DisplayAsDefault();
-
- /**
- * The meta object literal for the '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.runtime.notation.Style
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.StylesPackageImpl#getStyle()
- * @generated
- */
- EClass STYLE = eINSTANCE.getStyle();
-
- }
-
-} //StylesPackage
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/PresenterStyleImpl.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/PresenterStyleImpl.java
deleted file mode 100644
index 0bc7f65e3..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/PresenterStyleImpl.java
+++ /dev/null
@@ -1,268 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PresenterStyleImpl.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Presenter Style</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl#getImageURL <em>Image URL</em>}</li>
- * <li>{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl.PresenterStyleImpl#getReview <em>Review</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PresenterStyleImpl extends EObjectImpl implements PresenterStyle {
-/**
- * The default value of the '{@link #getImageURL() <em>Image URL</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImageURL()
- * @generated
- * @ordered
- */
- protected static final String IMAGE_URL_EDEFAULT = "";
-
-/**
- * The cached value of the '{@link #getImageURL() <em>Image URL</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImageURL()
- * @generated
- * @ordered
- */
- protected String imageURL = IMAGE_URL_EDEFAULT;
-
-/**
- * The default value of the '{@link #getReview() <em>Review</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getReview()
- * @generated
- * @ordered
- */
- protected static final String REVIEW_EDEFAULT = "";
-
-/**
- * The cached value of the '{@link #getReview() <em>Review</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getReview()
- * @generated
- * @ordered
- */
- protected String review = REVIEW_EDEFAULT;
-
-/**
- * The default value of the '{@link #getDisplayAsDefault() <em>Display As Default</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayAsDefault()
- * @generated
- * @ordered
- */
- protected static final Boolean DISPLAY_AS_DEFAULT_EDEFAULT = Boolean.TRUE;
-
- /**
- * The cached value of the '{@link #getDisplayAsDefault() <em>Display As Default</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayAsDefault()
- * @generated
- * @ordered
- */
- protected Boolean displayAsDefault = DISPLAY_AS_DEFAULT_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PresenterStyleImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return StylesPackage.Literals.PRESENTER_STYLE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getImageURL() {
- return imageURL;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setImageURL(String newImageURL) {
- String oldImageURL = imageURL;
- imageURL = newImageURL;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, StylesPackage.PRESENTER_STYLE__IMAGE_URL, oldImageURL, imageURL));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getReview() {
- return review;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setReview(String newReview) {
- String oldReview = review;
- review = newReview;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, StylesPackage.PRESENTER_STYLE__REVIEW, oldReview, review));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Boolean getDisplayAsDefault() {
- return displayAsDefault;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDisplayAsDefault(Boolean newDisplayAsDefault) {
- Boolean oldDisplayAsDefault = displayAsDefault;
- displayAsDefault = newDisplayAsDefault;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, StylesPackage.PRESENTER_STYLE__DISPLAY_AS_DEFAULT, oldDisplayAsDefault, displayAsDefault));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case StylesPackage.PRESENTER_STYLE__IMAGE_URL:
- return getImageURL();
- case StylesPackage.PRESENTER_STYLE__REVIEW:
- return getReview();
- case StylesPackage.PRESENTER_STYLE__DISPLAY_AS_DEFAULT:
- return getDisplayAsDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case StylesPackage.PRESENTER_STYLE__IMAGE_URL:
- setImageURL((String)newValue);
- return;
- case StylesPackage.PRESENTER_STYLE__REVIEW:
- setReview((String)newValue);
- return;
- case StylesPackage.PRESENTER_STYLE__DISPLAY_AS_DEFAULT:
- setDisplayAsDefault((Boolean)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case StylesPackage.PRESENTER_STYLE__IMAGE_URL:
- setImageURL(IMAGE_URL_EDEFAULT);
- return;
- case StylesPackage.PRESENTER_STYLE__REVIEW:
- setReview(REVIEW_EDEFAULT);
- return;
- case StylesPackage.PRESENTER_STYLE__DISPLAY_AS_DEFAULT:
- setDisplayAsDefault(DISPLAY_AS_DEFAULT_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case StylesPackage.PRESENTER_STYLE__IMAGE_URL:
- return IMAGE_URL_EDEFAULT == null ? imageURL != null : !IMAGE_URL_EDEFAULT.equals(imageURL);
- case StylesPackage.PRESENTER_STYLE__REVIEW:
- return REVIEW_EDEFAULT == null ? review != null : !REVIEW_EDEFAULT.equals(review);
- case StylesPackage.PRESENTER_STYLE__DISPLAY_AS_DEFAULT:
- return DISPLAY_AS_DEFAULT_EDEFAULT == null ? displayAsDefault != null : !DISPLAY_AS_DEFAULT_EDEFAULT.equals(displayAsDefault);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (imageURL: ");
- result.append(imageURL);
- result.append(", review: ");
- result.append(review);
- result.append(", displayAsDefault: ");
- result.append(displayAsDefault);
- result.append(')');
- return result.toString();
- }
-
-} //PresenterStyleImpl \ No newline at end of file
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesFactoryImpl.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesFactoryImpl.java
deleted file mode 100644
index 59a3211eb..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesFactoryImpl.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesFactoryImpl.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class StylesFactoryImpl extends EFactoryImpl implements StylesFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static StylesFactory init() {
- try {
- StylesFactory theStylesFactory = (StylesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles.ecore");
- if (theStylesFactory != null) {
- return theStylesFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new StylesFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StylesFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case StylesPackage.PRESENTER_STYLE: return createPresenterStyle();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PresenterStyle createPresenterStyle() {
- PresenterStyleImpl presenterStyle = new PresenterStyleImpl();
- return presenterStyle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StylesPackage getStylesPackage() {
- return (StylesPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- public static StylesPackage getPackage() {
- return StylesPackage.eINSTANCE;
- }
-
-} //StylesFactoryImpl
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesPackageImpl.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesPackageImpl.java
deleted file mode 100644
index 25485ed76..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/impl/StylesPackageImpl.java
+++ /dev/null
@@ -1,232 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesPackageImpl.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.EcorePackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesFactory;
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage;
-
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.Style;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class StylesPackageImpl extends EPackageImpl implements StylesPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass presenterStyleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass styleEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private StylesPackageImpl() {
- super(eNS_URI, StylesFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static StylesPackage init() {
- if (isInited) return (StylesPackage)EPackage.Registry.INSTANCE.getEPackage(StylesPackage.eNS_URI);
-
- // Obtain or create and register package
- StylesPackageImpl theStylesPackage = (StylesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof StylesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new StylesPackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theStylesPackage.createPackageContents();
-
- // Initialize created meta-data
- theStylesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theStylesPackage.freeze();
-
- return theStylesPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPresenterStyle() {
- return presenterStyleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPresenterStyle_ImageURL() {
- return (EAttribute)presenterStyleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPresenterStyle_Review() {
- return (EAttribute)presenterStyleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPresenterStyle_DisplayAsDefault() {
- return (EAttribute)presenterStyleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getStyle() {
- return styleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StylesFactory getStylesFactory() {
- return (StylesFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- presenterStyleEClass = createEClass(PRESENTER_STYLE);
- createEAttribute(presenterStyleEClass, PRESENTER_STYLE__IMAGE_URL);
- createEAttribute(presenterStyleEClass, PRESENTER_STYLE__REVIEW);
- createEAttribute(presenterStyleEClass, PRESENTER_STYLE__DISPLAY_AS_DEFAULT);
-
- styleEClass = createEClass(STYLE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Add supertypes to classes
- presenterStyleEClass.getESuperTypes().add(this.getStyle());
-
- // Initialize classes and features; add operations and parameters
- initEClass(presenterStyleEClass, PresenterStyle.class, "PresenterStyle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPresenterStyle_ImageURL(), ecorePackage.getEString(), "imageURL", "", 0, 1, PresenterStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPresenterStyle_Review(), ecorePackage.getEString(), "review", "", 0, 1, PresenterStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPresenterStyle_DisplayAsDefault(), ecorePackage.getEBooleanObject(), "displayAsDefault", "Boolean.TRUE", 0, 1, PresenterStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(styleEClass, Style.class, "Style", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //StylesPackageImpl
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesAdapterFactory.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesAdapterFactory.java
deleted file mode 100644
index e439d9824..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesAdapterFactory.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesAdapterFactory.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.*;
-
-import org.eclipse.gmf.runtime.notation.Style;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage
- * @generated
- */
-public class StylesAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static StylesPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StylesAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = StylesPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch the delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected StylesSwitch modelSwitch =
- new StylesSwitch() {
- public Object casePresenterStyle(PresenterStyle object) {
- return createPresenterStyleAdapter();
- }
- public Object caseStyle(Style object) {
- return createStyleAdapter();
- }
- public Object defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- public Adapter createAdapter(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle <em>Presenter Style</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.PresenterStyle
- * @generated
- */
- public Adapter createPresenterStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.gmf.runtime.notation.Style
- * @generated
- */
- public Adapter createStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //StylesAdapterFactory
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesSwitch.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesSwitch.java
deleted file mode 100644
index 3f4bc42e2..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles/util/StylesSwitch.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: StylesSwitch.java,v 1.1 2006/03/15 03:41:25 sshaw Exp $
- */
-package org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.*;
-
-import org.eclipse.gmf.runtime.notation.Style;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles.StylesPackage
- * @generated
- */
-public class StylesSwitch {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static StylesPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StylesSwitch() {
- if (modelPackage == null) {
- modelPackage = StylesPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public Object doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected Object doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch((EClass)eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected Object doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case StylesPackage.PRESENTER_STYLE: {
- PresenterStyle presenterStyle = (PresenterStyle)theEObject;
- Object result = casePresenterStyle(presenterStyle);
- if (result == null) result = caseStyle(presenterStyle);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Presenter Style</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Presenter Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object casePresenterStyle(PresenterStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Style</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseStyle(Style object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public Object defaultCase(EObject object) {
- return null;
- }
-
-} //StylesSwitch
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/styles.ecore b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/styles.ecore
deleted file mode 100644
index a1345f60b..000000000
--- a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/Tutorial/Step1/org.eclipse.gmf.examples.eclipsecon.diagram.custom/styles.ecore
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="styles"
- nsURI="http:///org/eclipse/gmf/examples/eclipsecon/diagram/custom/styles.ecore"
- nsPrefix="org.eclipse.gmf.examples.eclipsecon.diagram.custom.styles">
- <eClassifiers xsi:type="ecore:EClass" name="PresenterStyle" eSuperTypes="#//Style">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="imageURL" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral=""/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="review" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral=""/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayAsDefault" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"
- defaultValueLiteral="Boolean.TRUE"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Style" instanceClassName="org.eclipse.gmf.runtime.notation.Style"
- abstract="true" interface="true"/>
-</ecore:EPackage>

Back to the top