~peta-power-group/+junk/vIDE-trunk

« back to all changes in this revision

Viewing changes to net.launchpad.vide.edit/src/net/launchpad/vide/flowchart/provider/CommandItemProvider.java

  • Committer: Dražen Lučanin
  • Date: 2010-12-16 01:15:35 UTC
  • Revision ID: kermit666@gmail.com-20101216011535-5uk4xtiwbu9ia3hl
Added the algorithm domain model & deleted the old generated projects

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * <copyright>
3
 
 * </copyright>
4
 
 *
5
 
 * $Id$
6
 
 */
7
 
package net.launchpad.vide.flowchart.provider;
8
 
 
9
 
 
10
 
import java.util.Collection;
11
 
import java.util.List;
12
 
 
13
 
import org.eclipse.emf.common.notify.AdapterFactory;
14
 
import org.eclipse.emf.common.notify.Notification;
15
 
 
16
 
import org.eclipse.emf.common.util.ResourceLocator;
17
 
 
18
 
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
19
 
import org.eclipse.emf.edit.provider.IItemLabelProvider;
20
 
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
21
 
import org.eclipse.emf.edit.provider.IItemPropertySource;
22
 
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
23
 
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
24
 
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
25
 
 
26
 
/**
27
 
 * This is the item provider adapter for a {@link net.launchpad.vide.flowchart.Command} object.
28
 
 * <!-- begin-user-doc -->
29
 
 * <!-- end-user-doc -->
30
 
 * @generated
31
 
 */
32
 
public class CommandItemProvider
33
 
        extends ItemProviderAdapter
34
 
        implements
35
 
                IEditingDomainItemProvider,
36
 
                IStructuredItemContentProvider,
37
 
                ITreeItemContentProvider,
38
 
                IItemLabelProvider,
39
 
                IItemPropertySource {
40
 
        /**
41
 
         * This constructs an instance from a factory and a notifier.
42
 
         * <!-- begin-user-doc -->
43
 
         * <!-- end-user-doc -->
44
 
         * @generated
45
 
         */
46
 
        public CommandItemProvider(AdapterFactory adapterFactory) {
47
 
                super(adapterFactory);
48
 
        }
49
 
 
50
 
        /**
51
 
         * This returns the property descriptors for the adapted class.
52
 
         * <!-- begin-user-doc -->
53
 
         * <!-- end-user-doc -->
54
 
         * @generated
55
 
         */
56
 
        @Override
57
 
        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
58
 
                if (itemPropertyDescriptors == null) {
59
 
                        super.getPropertyDescriptors(object);
60
 
 
61
 
                }
62
 
                return itemPropertyDescriptors;
63
 
        }
64
 
 
65
 
        /**
66
 
         * This returns the label text for the adapted class.
67
 
         * <!-- begin-user-doc -->
68
 
         * <!-- end-user-doc -->
69
 
         * @generated
70
 
         */
71
 
        @Override
72
 
        public String getText(Object object) {
73
 
                return getString("_UI_Command_type");
74
 
        }
75
 
 
76
 
        /**
77
 
         * This handles model notifications by calling {@link #updateChildren} to update any cached
78
 
         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
79
 
         * <!-- begin-user-doc -->
80
 
         * <!-- end-user-doc -->
81
 
         * @generated
82
 
         */
83
 
        @Override
84
 
        public void notifyChanged(Notification notification) {
85
 
                updateChildren(notification);
86
 
                super.notifyChanged(notification);
87
 
        }
88
 
 
89
 
        /**
90
 
         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
91
 
         * that can be created under this object.
92
 
         * <!-- begin-user-doc -->
93
 
         * <!-- end-user-doc -->
94
 
         * @generated
95
 
         */
96
 
        @Override
97
 
        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
98
 
                super.collectNewChildDescriptors(newChildDescriptors, object);
99
 
        }
100
 
 
101
 
        /**
102
 
         * Return the resource locator for this item provider's resources.
103
 
         * <!-- begin-user-doc -->
104
 
         * <!-- end-user-doc -->
105
 
         * @generated
106
 
         */
107
 
        @Override
108
 
        public ResourceLocator getResourceLocator() {
109
 
                return FlowchartEditPlugin.INSTANCE;
110
 
        }
111
 
 
112
 
}