Source Code Cross Referenced for ConditionItemProvider.java in  » Workflow-Engines » osbl-1_0 » newprocess » provider » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » osbl 1_0 » newprocess.provider 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id$
006:         */package newprocess.provider;
007:
008:        import java.util.Collection;
009:        import java.util.List;
010:
011:        import newprocess.Condition;
012:        import newprocess.NewprocessPackage;
013:
014:        import org.eclipse.emf.common.notify.AdapterFactory;
015:        import org.eclipse.emf.common.notify.Notification;
016:
017:        import org.eclipse.emf.common.util.ResourceLocator;
018:
019:        import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
020:        import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
021:        import org.eclipse.emf.edit.provider.IItemLabelProvider;
022:        import org.eclipse.emf.edit.provider.IItemPropertySource;
023:        import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
024:        import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
025:        import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
026:        import org.eclipse.emf.edit.provider.ViewerNotification;
027:
028:        /**
029:         * This is the item provider adapter for a {@link newprocess.Condition} object.
030:         * <!-- begin-user-doc -->
031:         * <!-- end-user-doc -->
032:         * @generated
033:         */
034:        public class ConditionItemProvider extends ElementItemProvider
035:                implements  IEditingDomainItemProvider,
036:                IStructuredItemContentProvider, ITreeItemContentProvider,
037:                IItemLabelProvider, IItemPropertySource {
038:            /**
039:             * This constructs an instance from a factory and a notifier.
040:             * <!-- begin-user-doc -->
041:             * <!-- end-user-doc -->
042:             * @generated
043:             */
044:            public ConditionItemProvider(AdapterFactory adapterFactory) {
045:                super (adapterFactory);
046:            }
047:
048:            /**
049:             * This returns the property descriptors for the adapted class.
050:             * <!-- begin-user-doc -->
051:             * <!-- end-user-doc -->
052:             * @generated
053:             */
054:            public List getPropertyDescriptors(Object object) {
055:                if (itemPropertyDescriptors == null) {
056:                    super .getPropertyDescriptors(object);
057:
058:                    addTemporalPropertyDescriptor(object);
059:                    addTaggedPropertyDescriptor(object);
060:                }
061:                return itemPropertyDescriptors;
062:            }
063:
064:            /**
065:             * This adds a property descriptor for the Temporal feature.
066:             * <!-- begin-user-doc -->
067:             * <!-- end-user-doc -->
068:             * @generated
069:             */
070:            protected void addTemporalPropertyDescriptor(Object object) {
071:                itemPropertyDescriptors
072:                        .add(createItemPropertyDescriptor(
073:                                ((ComposeableAdapterFactory) adapterFactory)
074:                                        .getRootAdapterFactory(),
075:                                getResourceLocator(),
076:                                getString("_UI_Condition_temporal_feature"),
077:                                getString("_UI_PropertyDescriptor_description",
078:                                        "_UI_Condition_temporal_feature",
079:                                        "_UI_Condition_type"),
080:                                NewprocessPackage.Literals.CONDITION__TEMPORAL,
081:                                true, false, false,
082:                                ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
083:                                null, null));
084:            }
085:
086:            /**
087:             * This adds a property descriptor for the Tagged feature.
088:             * <!-- begin-user-doc -->
089:             * <!-- end-user-doc -->
090:             * @generated
091:             */
092:            protected void addTaggedPropertyDescriptor(Object object) {
093:                itemPropertyDescriptors
094:                        .add(createItemPropertyDescriptor(
095:                                ((ComposeableAdapterFactory) adapterFactory)
096:                                        .getRootAdapterFactory(),
097:                                getResourceLocator(),
098:                                getString("_UI_Condition_tagged_feature"),
099:                                getString("_UI_PropertyDescriptor_description",
100:                                        "_UI_Condition_tagged_feature",
101:                                        "_UI_Condition_type"),
102:                                NewprocessPackage.Literals.CONDITION__TAGGED,
103:                                true, false, false,
104:                                ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
105:                                null, null));
106:            }
107:
108:            /**
109:             * This returns Condition.gif.
110:             * <!-- begin-user-doc -->
111:             * <!-- end-user-doc -->
112:             * @generated
113:             */
114:            public Object getImage(Object object) {
115:                return overlayImage(object, getResourceLocator().getImage(
116:                        "full/obj16/Condition"));
117:            }
118:
119:            /**
120:             * This returns the label text for the adapted class.
121:             * <!-- begin-user-doc -->
122:             * <!-- end-user-doc -->
123:             * @generated
124:             */
125:            public String getText(Object object) {
126:                String label = ((Condition) object).getName();
127:                return label == null || label.length() == 0 ? getString("_UI_Condition_type")
128:                        : getString("_UI_Condition_type") + " " + label;
129:            }
130:
131:            /**
132:             * This handles model notifications by calling {@link #updateChildren} to update any cached
133:             * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
134:             * <!-- begin-user-doc -->
135:             * <!-- end-user-doc -->
136:             * @generated
137:             */
138:            public void notifyChanged(Notification notification) {
139:                updateChildren(notification);
140:
141:                switch (notification.getFeatureID(Condition.class)) {
142:                case NewprocessPackage.CONDITION__TEMPORAL:
143:                case NewprocessPackage.CONDITION__TAGGED:
144:                    fireNotifyChanged(new ViewerNotification(notification,
145:                            notification.getNotifier(), false, true));
146:                    return;
147:                }
148:                super .notifyChanged(notification);
149:            }
150:
151:            /**
152:             * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
153:             * describing all of the children that can be created under this object.
154:             * <!-- begin-user-doc -->
155:             * <!-- end-user-doc -->
156:             * @generated
157:             */
158:            protected void collectNewChildDescriptors(
159:                    Collection newChildDescriptors, Object object) {
160:                super .collectNewChildDescriptors(newChildDescriptors, object);
161:            }
162:
163:            /**
164:             * Return the resource locator for this item provider's resources.
165:             * <!-- begin-user-doc -->
166:             * <!-- end-user-doc -->
167:             * @generated
168:             */
169:            public ResourceLocator getResourceLocator() {
170:                return New_processEditPlugin.INSTANCE;
171:            }
172:
173:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.