Source Code Cross Referenced for INavigatorDnDService.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:        import org.eclipse.jface.viewers.IStructuredSelection;
013:        import org.eclipse.swt.dnd.TransferData;
014:
015:        /**
016:         * 
017:         * Provides instances of {@link CommonDragAdapterAssistant} and
018:         * {@link CommonDropAdapterAssistant} for the associated
019:         * {@link INavigatorContentService}.
020:         * 
021:         * <p>
022:         * Clients should only take note of this Service they are are using the
023:         * {@link INavigatorContentService} in the context of a viewer which is not or
024:         * does not extend {@link CommonViewer}. Clients should take a look at the
025:         * initialization of the DND support in the {@link CommonViewer} if they wish to
026:         * support this capability in their own viewers.
027:         * </p>
028:         * 
029:         * <p>
030:         * This interface is not intended to be implemented by clients.
031:         * </p>
032:         * 
033:         * @see CommonDragAdapter
034:         * @see CommonDragAdapterAssistant
035:         * @see CommonDropAdapter
036:         * @see CommonDropAdapterAssistant
037:         * @see CommonViewer
038:         * @see INavigatorContentService#getDnDService()
039:         * @see <a
040:         *      href="http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html">Drag
041:         *      and Drop: Adding Drag and Drop to an SWT Application</a>
042:         * @see <a
043:         *      href="http://www.eclipse.org/articles/Article-Workbench-DND/drag_drop.html">Drag
044:         *      and Drop in the Eclipse UI (Custom Transfer Types)</a>
045:         * 
046:         * @since 3.2
047:         * 
048:         * 
049:         */
050:        public interface INavigatorDnDService {
051:
052:            /**
053:             * 
054:             * As part of the <b>org.eclipse.ui.navigator.viewer</b> extension point,
055:             * clients may explicit extend the support Transfer Types of a particular
056:             * viewer using the <b>dragAssistant</b> element. This element defines a
057:             * class which extends {@link CommonDragAdapterAssistant} and can direct the
058:             * viewer on how to provide different kinds of DND Transfer Types. The array
059:             * is returned in no particular order.
060:             * 
061:             * @return An array of {@link CommonDragAdapterAssistant} or an empty array.
062:             */
063:            CommonDragAdapterAssistant[] getCommonDragAssistants();
064:
065:            /**
066:             * Clients may choose to programmatically bind drag assistants to an
067:             * instance of the DND Service. A programmatic binding is not persisted
068:             * between sessions and is not propagated to other instances of
069:             * {@link INavigatorContentService} with the same id. 
070:             * 
071:             * @param anAssistant The assistant to bind.
072:             */
073:            void bindDragAssistant(CommonDragAdapterAssistant anAssistant);
074:
075:            /**
076:             * 
077:             * This method returns an array of {@link CommonDropAdapterAssistant} from
078:             * content extensions that are <i>visible</i> and <i>active</i> for the
079:             * associated {@link INavigatorContentService}. The array is sorted by
080:             * priority, with overrides taken into account.
081:             * 
082:             * <p>
083:             * The array should be processed from the first element to the last, asking
084:             * each extension to
085:             * {@link CommonDropAdapterAssistant#validateDrop(Object, int, org.eclipse.swt.dnd.TransferData)}.
086:             * The first to successfully validate the drop operation will have the
087:             * opportunity to
088:             * {@link CommonDropAdapterAssistant#handleDrop(CommonDropAdapter, org.eclipse.swt.dnd.DropTargetEvent, Object) handle the drop}
089:             * </p>
090:             * 
091:             * @param aDropTarget
092:             *            The target element in the viewer of the drop operation.
093:             * @param theTransferType
094:             *            The transfer type of the current drop operation.
095:             * @return An array of {@link CommonDropAdapterAssistant}s that are defined
096:             *         by the set of
097:             *         <b>org.eclipse.ui.navigator.navigatorContent/navigatorContent</b>
098:             *         extensions that provide a <b>possibleChildren</b> expression
099:             *         that matches the given drop target.
100:             */
101:            CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(
102:                    Object aDropTarget, TransferData theTransferType);
103:
104:            /**
105:             * 
106:             * This method returns an array of {@link CommonDropAdapterAssistant} from
107:             * content extensions that are <i>visible</i> and <i>active</i> for the
108:             * associated {@link INavigatorContentService}.
109:             * 
110:             * <p>
111:             * The array should be processed from the first element to the last, asking
112:             * each extension to
113:             * {@link CommonDropAdapterAssistant#validateDrop(Object, int, org.eclipse.swt.dnd.TransferData)}.
114:             * The first to successfully validate the drop operation will have the
115:             * opportunity to
116:             * {@link CommonDropAdapterAssistant#handleDrop(CommonDropAdapter, org.eclipse.swt.dnd.DropTargetEvent, Object) handle the drop}
117:             * </p>
118:             * 
119:             * @param aDropTarget
120:             *            The target element in the viewer of the drop operation.
121:             * @param theDragSelection
122:             *            The drag selection of the current drop operation.
123:             * @return An array of {@link CommonDropAdapterAssistant}s that are defined
124:             *         by the set of
125:             *         <b>org.eclipse.ui.navigator.navigatorContent/navigatorContent</b>
126:             *         extensions that provide a <b>possibleChildren</b> expression
127:             *         that matches the given drop target.
128:             */
129:            CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(
130:                    Object aDropTarget, IStructuredSelection theDragSelection);
131:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.