Source Code Cross Referenced for INavigatorActivationService.java in  » IDE-Eclipse » ui » org » eclipse » ui » navigator » 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 » IDE Eclipse » ui » org.eclipse.ui.navigator 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         ******************************************************************************/package org.eclipse.ui.navigator;
011:
012:        /**
013:         * 
014:         * Determines if an extension is <i>active</i> within the context of a given
015:         * viewer and manages the persistence of this information. If an extension is
016:         * <i>active</i> then the extension will contribute functionality to the
017:         * viewer. If an extension is not <i>active</i>, then the extension will not be
018:         * given opportunities to contribute functionality to the given viewer. See
019:         * {@link INavigatorContentService} for more detail on what states are
020:         * associated with a content extension.
021:         * 
022:         * @since 3.2
023:         * 
024:         */
025:        public interface INavigatorActivationService {
026:
027:            /**
028:             * Activate the extensions specified by the extensionIds array. Clients may
029:             * also choose to disable all other extensions. The set of descriptors
030:             * returned is the set that were activated as a result of this call. In the
031:             * case of this method, that means that a descriptor will be returned for
032:             * each extensionId in the array, regardless of whether that extension is
033:             * already enabled.
034:             * 
035:             * <p>
036:             * Clients must call {@link #persistExtensionActivations()} to save the the
037:             * activation state after activating or deactivating extensions.
038:             * </p>
039:             * 
040:             * @param extensionIds
041:             *            The list of extensions to activate
042:             * @param toDeactivateAllOthers
043:             *            True will deactivate all other extensions; False will leave
044:             *            the other activations as-is
045:             * @return A list of all INavigatorContentDescriptors that were activated as
046:             *         a result of this call. This will be the set of
047:             *         INavigatorContentDescriptors that corresponds exactly to the set
048:             *         of given extensionIds.
049:             */
050:            public INavigatorContentDescriptor[] activateExtensions(
051:                    String[] extensionIds, boolean toDeactivateAllOthers);
052:
053:            /**
054:             * Deactivate the extensions specified by the extensionIds. Clients may
055:             * choose to activate all other extensions which are not explicitly
056:             * disabled. If toActivateAllOthers is true, the array of returned
057:             * descriptors will be the collection of all extensions not specified in the
058:             * extensionIds array. If it is false, the array will be empty.
059:             * 
060:             * <p>
061:             * Clients must call {@link #persistExtensionActivations()} to save the the
062:             * activation state after activating or deactivating extensions.
063:             * </p>
064:             * 
065:             * @param extensionIds
066:             *            The list of extensions to activate
067:             * @param toActivateAllOthers
068:             *            True will activate all other extensions; False will leave the
069:             *            other activations as-is
070:             * @return A list of all INavigatorContentDescriptors that were activated as
071:             *         a result of this call. If toActivateAllOthers is false, the
072:             *         result will be an empty array. Otherwise, it will be the set of
073:             *         all visible extensions minus those given in the 'extensionIds'
074:             *         parameter.
075:             */
076:            public INavigatorContentDescriptor[] deactivateExtensions(
077:                    String[] extensionIds, boolean toActivateAllOthers);
078:
079:            /**
080:             * 
081:             * Checks the known activation state for the given viewer id to determine if
082:             * the given navigator extension is 'active'.
083:             * 
084:             * @param aNavigatorExtensionId
085:             *            The unique identifier associated with a given extension.
086:             * 
087:             * @return True if the extension is active in the context of the viewer id.
088:             */
089:            public boolean isNavigatorExtensionActive(
090:                    String aNavigatorExtensionId);
091:
092:            /**
093:             * Save the activation state of each content extension for the associated
094:             * content service. Clients should persist the activation state after any
095:             * call to {@link #activateExtensions(String[], boolean)} or
096:             * {@link #deactivateExtensions(String[], boolean)}.
097:             * 
098:             */
099:            public void persistExtensionActivations();
100:
101:            /**
102:             * Request notification when the activation state changes.
103:             * 
104:             * @param aListener
105:             *            An implementation of {@link IExtensionActivationListener}
106:             */
107:            public void addExtensionActivationListener(
108:                    IExtensionActivationListener aListener);
109:
110:            /**
111:             * No longer receive notification when activation state changes.
112:             * 
113:             * @param aListener
114:             *            An implementation of {@link IExtensionActivationListener}
115:             */
116:            public void removeExtensionActivationListener(
117:                    IExtensionActivationListener aListener);
118:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.