Source Code Cross Referenced for BlackboardItemProvider.java in  » GIS » udig-1.1 » net » refractions » udig » project » internal » 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 » GIS » udig 1.1 » net.refractions.udig.project.internal.provider 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id: BlackboardItemProvider.java 24145 2007-02-01 18:03:34Z jeichar $
006:         */package net.refractions.udig.project.internal.provider;
007:
008:        import java.util.Collection;
009:        import java.util.List;
010:
011:        import net.refractions.udig.project.internal.Blackboard;
012:        import net.refractions.udig.project.internal.ProjectPackage;
013:
014:        import org.eclipse.emf.common.notify.AdapterFactory;
015:        import org.eclipse.emf.common.notify.Notification;
016:        import org.eclipse.emf.common.util.ResourceLocator;
017:        import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
018:        import org.eclipse.emf.edit.provider.IItemLabelProvider;
019:        import org.eclipse.emf.edit.provider.IItemPropertySource;
020:        import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
021:        import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
022:        import org.eclipse.emf.edit.provider.ItemProviderAdapter;
023:        import org.eclipse.emf.edit.provider.ViewerNotification;
024:
025:        /**
026:         * This is the item provider adapter for a {@link net.refractions.udig.project.internal.Blackboard}
027:         * object. <!-- begin-user-doc --> <!-- end-user-doc -->
028:         * 
029:         * @generated
030:         */
031:        public class BlackboardItemProvider extends ItemProviderAdapter
032:                implements  IEditingDomainItemProvider,
033:                IStructuredItemContentProvider, ITreeItemContentProvider,
034:                IItemLabelProvider, IItemPropertySource {
035:            /**
036:             * <!-- begin-user-doc --> <!-- end-user-doc -->
037:             * 
038:             * @generated
039:             */
040:            public static final String copyright = "uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004, Refractions Research Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details."; //$NON-NLS-1$
041:
042:            /**
043:             * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
044:             * end-user-doc -->
045:             * 
046:             * @generated
047:             */
048:            public BlackboardItemProvider(AdapterFactory adapterFactory) {
049:                super (adapterFactory);
050:            }
051:
052:            /**
053:             * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
054:             * end-user-doc -->
055:             * 
056:             * @generated
057:             */
058:            public List getPropertyDescriptors(Object object) {
059:                if (itemPropertyDescriptors == null) {
060:                    super .getPropertyDescriptors(object);
061:
062:                }
063:                return itemPropertyDescriptors;
064:            }
065:
066:            /**
067:             * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate
068:             * feature for an {@link org.eclipse.emf.edit.command.AddCommand},
069:             * {@link org.eclipse.emf.edit.command.RemoveCommand} or
070:             * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!--
071:             * begin-user-doc --> <!-- end-user-doc -->
072:             * 
073:             * @generated
074:             */
075:            public Collection getChildrenFeatures(Object object) {
076:                if (childrenFeatures == null) {
077:                    super .getChildrenFeatures(object);
078:                    childrenFeatures.add(ProjectPackage.eINSTANCE
079:                            .getBlackboard_Entries());
080:                }
081:                return childrenFeatures;
082:            }
083:
084:            /**
085:             * This returns Blackboard.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
086:             * 
087:             * @generated
088:             */
089:            public Object getImage(Object object) {
090:                return getResourceLocator().getImage("full/obj16/Blackboard"); //$NON-NLS-1$
091:            }
092:
093:            /**
094:             * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
095:             * -->
096:             * 
097:             * @generated NOT
098:             */
099:            public String getText(Object object) {
100:                return "Blackboard";
101:            }
102:
103:            /**
104:             * This handles model notifications by calling {@link #updateChildren} to update any cached
105:             * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
106:             * <!-- begin-user-doc --> <!-- end-user-doc -->
107:             * 
108:             * @generated
109:             */
110:            public void notifyChanged(Notification notification) {
111:                updateChildren(notification);
112:
113:                switch (notification.getFeatureID(Blackboard.class)) {
114:                case ProjectPackage.BLACKBOARD__ENTRIES:
115:                    fireNotifyChanged(new ViewerNotification(notification,
116:                            notification.getNotifier(), true, false));
117:                    return;
118:                }
119:                super .notifyChanged(notification);
120:            }
121:
122:            /**
123:             * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
124:             * end-user-doc -->
125:             * 
126:             * @generated
127:             */
128:            public ResourceLocator getResourceLocator() {
129:                return ProjectEditPlugin.INSTANCE;
130:            }
131:
132:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.