Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/library (emf 2.3)/Library.edit')
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/.classpath7
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/.project28
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/META-INF/MANIFEST.MF14
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/build.properties14
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_books_Book.gifbin223 -> 0 bytes
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_writers_Writer.gifbin223 -> 0 bytes
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Book.gifbin129 -> 0 bytes
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Library.gifbin129 -> 0 bytes
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Writer.gifbin129 -> 0 bytes
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/plugin.properties51
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/plugin.xml25
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/BookItemProvider.java225
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryEditPlugin.java92
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProvider.java200
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProviderAdapterFactory.java245
-rw-r--r--deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/WriterItemProvider.java177
16 files changed, 0 insertions, 1078 deletions
diff --git a/deprecated/library (emf 2.3)/Library.edit/.classpath b/deprecated/library (emf 2.3)/Library.edit/.classpath
deleted file mode 100644
index 304e86186..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/.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/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/deprecated/library (emf 2.3)/Library.edit/.project b/deprecated/library (emf 2.3)/Library.edit/.project
deleted file mode 100644
index bf6794b11..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>Library.edit</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.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/library (emf 2.3)/Library.edit/META-INF/MANIFEST.MF b/deprecated/library (emf 2.3)/Library.edit/META-INF/MANIFEST.MF
deleted file mode 100644
index 8be67511c..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: Library.edit; singleton:=true
-Bundle-Version: 1.0.0
-Bundle-ClassPath: .
-Bundle-Activator: org.eclipse.example.library.provider.LibraryEditPlugin$Implementation
-Bundle-Vendor: %providerName
-Bundle-Localization: plugin
-Export-Package: org.eclipse.example.library.provider
-Require-Bundle: org.eclipse.core.runtime,
- Library;visibility:=reexport,
- org.eclipse.emf.edit;visibility:=reexport
-Eclipse-LazyStart: true
diff --git a/deprecated/library (emf 2.3)/Library.edit/build.properties b/deprecated/library (emf 2.3)/Library.edit/build.properties
deleted file mode 100644
index e727f8d8a..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/build.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id: build.properties,v 1.1 2008/04/01 07:31:29 mtaal Exp $
-
-bin.includes = .,\
- icons/,\
- META-INF/,\
- plugin.xml,\
- plugin.properties
-jars.compile.order = .
-source.. = src/
-output.. = bin/
diff --git a/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_books_Book.gif b/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_books_Book.gif
deleted file mode 100644
index 9073955a8..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_books_Book.gif
+++ /dev/null
Binary files differ
diff --git a/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_writers_Writer.gif b/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_writers_Writer.gif
deleted file mode 100644
index 564bdbd77..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/icons/full/ctool16/CreateLibrary_writers_Writer.gif
+++ /dev/null
Binary files differ
diff --git a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Book.gif b/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Book.gif
deleted file mode 100644
index c3370c7dd..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Book.gif
+++ /dev/null
Binary files differ
diff --git a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Library.gif b/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Library.gif
deleted file mode 100644
index 739ebbfa6..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Library.gif
+++ /dev/null
Binary files differ
diff --git a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Writer.gif b/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Writer.gif
deleted file mode 100644
index ef56c1408..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/icons/full/obj16/Writer.gif
+++ /dev/null
Binary files differ
diff --git a/deprecated/library (emf 2.3)/Library.edit/plugin.properties b/deprecated/library (emf 2.3)/Library.edit/plugin.properties
deleted file mode 100644
index bc5e0a229..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/plugin.properties
+++ /dev/null
@@ -1,51 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id: plugin.properties,v 1.1 2008/04/01 07:31:29 mtaal 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 = Library Edit Support
-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_Book_type = Book
-_UI_Library_type = Library
-_UI_Writer_type = Writer
-_UI_Unknown_type = Object
-
-_UI_Unknown_datatype= Value
-
-_UI_Book_title_feature = Title
-_UI_Book_pages_feature = Pages
-_UI_Book_category_feature = Category
-_UI_Book_author_feature = Author
-_UI_Library_name_feature = Name
-_UI_Library_writers_feature = Writers
-_UI_Library_books_feature = Books
-_UI_Writer_name_feature = Name
-_UI_Writer_books_feature = Books
-_UI_Unknown_feature = Unspecified
-
-_UI_BookCategory_Mystery_literal = Mystery
-_UI_BookCategory_ScienceFiction_literal = ScienceFiction
-_UI_BookCategory_Biography_literal = Biography
diff --git a/deprecated/library (emf 2.3)/Library.edit/plugin.xml b/deprecated/library (emf 2.3)/Library.edit/plugin.xml
deleted file mode 100644
index adbbea3a2..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/plugin.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<!--
- <copyright>
- </copyright>
-
- $Id: plugin.xml,v 1.1 2008/04/01 07:31:29 mtaal Exp $
--->
-
-<plugin>
-
- <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
- <factory
- uri = "http://www.example.eclipse.org/Library"
- class = "org.eclipse.example.library.provider.LibraryItemProviderAdapterFactory"
- supportedTypes =
- "org.eclipse.emf.edit.provider.IEditingDomainItemProvider
- org.eclipse.emf.edit.provider.IStructuredItemContentProvider
- org.eclipse.emf.edit.provider.ITreeItemContentProvider
- org.eclipse.emf.edit.provider.IItemLabelProvider
- org.eclipse.emf.edit.provider.IItemPropertySource" />
- </extension>
-
-</plugin>
diff --git a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/BookItemProvider.java b/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/BookItemProvider.java
deleted file mode 100644
index bbc846296..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/BookItemProvider.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookItemProvider.java,v 1.1 2008/04/01 07:31:29 mtaal Exp $
- */
-package org.eclipse.example.library.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-import org.eclipse.example.library.Book;
-import org.eclipse.example.library.LibraryPackage;
-
-/**
- * This is the item provider adapter for a {@link org.eclipse.example.library.Book} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class BookItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BookItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addTitlePropertyDescriptor(object);
- addPagesPropertyDescriptor(object);
- addCategoryPropertyDescriptor(object);
- addAuthorPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Title feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTitlePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Book_title_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Book_title_feature", "_UI_Book_type"),
- LibraryPackage.Literals.BOOK__TITLE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Pages feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addPagesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Book_pages_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Book_pages_feature", "_UI_Book_type"),
- LibraryPackage.Literals.BOOK__PAGES,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Category feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addCategoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Book_category_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Book_category_feature", "_UI_Book_type"),
- LibraryPackage.Literals.BOOK__CATEGORY,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Author feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAuthorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Book_author_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Book_author_feature", "_UI_Book_type"),
- LibraryPackage.Literals.BOOK__AUTHOR,
- true,
- false,
- true,
- null,
- null,
- null));
- }
-
- /**
- * This returns Book.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Book"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getText(Object object) {
- String label = ((Book)object).getTitle();
- return label == null || label.length() == 0 ?
- getString("_UI_Book_type") :
- getString("_UI_Book_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Book.class)) {
- case LibraryPackage.BOOK__TITLE:
- case LibraryPackage.BOOK__PAGES:
- case LibraryPackage.BOOK__CATEGORY:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceLocator getResourceLocator() {
- return LibraryEditPlugin.INSTANCE;
- }
-
-}
diff --git a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryEditPlugin.java b/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryEditPlugin.java
deleted file mode 100644
index c8bdee653..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryEditPlugin.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryEditPlugin.java,v 1.1 2008/04/01 07:31:29 mtaal Exp $
- */
-package org.eclipse.example.library.provider;
-
-import org.eclipse.emf.common.EMFPlugin;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-/**
- * This is the central singleton for the Library edit plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public final class LibraryEditPlugin extends EMFPlugin {
- /**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final LibraryEditPlugin INSTANCE = new LibraryEditPlugin();
-
- /**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static Implementation plugin;
-
- /**
- * Create the instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryEditPlugin() {
- super
- (new ResourceLocator [] {
- });
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
- public ResourceLocator getPluginResourceLocator() {
- return plugin;
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
- public static Implementation getPlugin() {
- return plugin;
- }
-
- /**
- * The actual implementation of the Eclipse <b>Plugin</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static class Implementation extends EclipsePlugin {
- /**
- * Creates an instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Implementation() {
- super();
-
- // Remember the static instance.
- //
- plugin = this;
- }
- }
-
-}
diff --git a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProvider.java b/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProvider.java
deleted file mode 100644
index ef4c238fd..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProvider.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryItemProvider.java,v 1.1 2008/04/01 07:31:29 mtaal Exp $
- */
-package org.eclipse.example.library.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-import org.eclipse.example.library.Library;
-import org.eclipse.example.library.LibraryFactory;
-import org.eclipse.example.library.LibraryPackage;
-
-/**
- * This is the item provider adapter for a {@link org.eclipse.example.library.Library} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Library_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Library_name_feature", "_UI_Library_type"),
- LibraryPackage.Literals.LIBRARY__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Collection getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(LibraryPackage.Literals.LIBRARY__WRITERS);
- childrenFeatures.add(LibraryPackage.Literals.LIBRARY__BOOKS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Library.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Library"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getText(Object object) {
- String label = ((Library)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_Library_type") :
- getString("_UI_Library_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Library.class)) {
- case LibraryPackage.LIBRARY__NAME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case LibraryPackage.LIBRARY__WRITERS:
- case LibraryPackage.LIBRARY__BOOKS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (LibraryPackage.Literals.LIBRARY__WRITERS,
- LibraryFactory.eINSTANCE.createWriter()));
-
- newChildDescriptors.add
- (createChildParameter
- (LibraryPackage.Literals.LIBRARY__BOOKS,
- LibraryFactory.eINSTANCE.createBook()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceLocator getResourceLocator() {
- return LibraryEditPlugin.INSTANCE;
- }
-
-}
diff --git a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProviderAdapterFactory.java b/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProviderAdapterFactory.java
deleted file mode 100644
index a6cdfdbd3..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/LibraryItemProviderAdapterFactory.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryItemProviderAdapterFactory.java,v 1.1 2008/04/01 07:31:29 mtaal Exp $
- */
-package org.eclipse.example.library.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IDisposable;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-
-import org.eclipse.example.library.util.LibraryAdapterFactory;
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
- * The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class LibraryItemProviderAdapterFactory extends LibraryAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Collection supportedTypes = new ArrayList();
-
- /**
- * This constructs an instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LibraryItemProviderAdapterFactory() {
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- }
-
- /**
- * This keeps track of the one adapter used for all {@link org.eclipse.example.library.Book} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BookItemProvider bookItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.example.library.Book}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Adapter createBookAdapter() {
- if (bookItemProvider == null) {
- bookItemProvider = new BookItemProvider(this);
- }
-
- return bookItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link org.eclipse.example.library.Library} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LibraryItemProvider libraryItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.example.library.Library}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Adapter createLibraryAdapter() {
- if (libraryItemProvider == null) {
- libraryItemProvider = new LibraryItemProvider(this);
- }
-
- return libraryItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link org.eclipse.example.library.Writer} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WriterItemProvider writerItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.example.library.Writer}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Adapter createWriterAdapter() {
- if (writerItemProvider == null) {
- writerItemProvider = new WriterItemProvider(this);
- }
-
- return writerItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
- /**
- * This disposes all of the item providers created by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void dispose() {
- if (bookItemProvider != null) bookItemProvider.dispose();
- if (libraryItemProvider != null) libraryItemProvider.dispose();
- if (writerItemProvider != null) writerItemProvider.dispose();
- }
-
-}
diff --git a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/WriterItemProvider.java b/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/WriterItemProvider.java
deleted file mode 100644
index 8595a5b6b..000000000
--- a/deprecated/library (emf 2.3)/Library.edit/src/org/eclipse/example/library/provider/WriterItemProvider.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterItemProvider.java,v 1.1 2008/04/01 07:31:29 mtaal Exp $
- */
-package org.eclipse.example.library.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-import org.eclipse.example.library.LibraryPackage;
-import org.eclipse.example.library.Writer;
-
-/**
- * This is the item provider adapter for a {@link org.eclipse.example.library.Writer} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class WriterItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WriterItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addBooksPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Writer_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Writer_name_feature", "_UI_Writer_type"),
- LibraryPackage.Literals.WRITER__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Books feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addBooksPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Writer_books_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Writer_books_feature", "_UI_Writer_type"),
- LibraryPackage.Literals.WRITER__BOOKS,
- true,
- false,
- true,
- null,
- null,
- null));
- }
-
- /**
- * This returns Writer.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Writer"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getText(Object object) {
- String label = ((Writer)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_Writer_type") :
- getString("_UI_Writer_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Writer.class)) {
- case LibraryPackage.WRITER__NAME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceLocator getResourceLocator() {
- return LibraryEditPlugin.INSTANCE;
- }
-
-}

Back to the top