Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-05-29 07:08:39 +0000
committerslewis2007-05-29 07:08:39 +0000
commit9aeaf15e10fa04043af2950b19f41495e13d770f (patch)
tree263ecebfe6090fd47d6c55f26acbf257dcbbbbe9 /framework/bundles/org.eclipse.ecf.presence.collab.ui
parent27957d73b9673f6e3cb670e18eb383153ef3d3b8 (diff)
downloadorg.eclipse.ecf-9aeaf15e10fa04043af2950b19f41495e13d770f.tar.gz
org.eclipse.ecf-9aeaf15e10fa04043af2950b19f41495e13d770f.tar.xz
org.eclipse.ecf-9aeaf15e10fa04043af2950b19f41495e13d770f.zip
Added new extension point rosterViewerDropTarget
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.presence.collab.ui')
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.collab.ui/plugin.xml13
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/RosterViewerDropTargetText.java23
2 files changed, 36 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.collab.ui/plugin.xml b/framework/bundles/org.eclipse.ecf.presence.collab.ui/plugin.xml
index b177935c4..bdb19b4de 100644
--- a/framework/bundles/org.eclipse.ecf.presence.collab.ui/plugin.xml
+++ b/framework/bundles/org.eclipse.ecf.presence.collab.ui/plugin.xml
@@ -18,5 +18,18 @@
</dynamic>
</menuContribution>
</extension>
+ <extension
+ point="org.eclipse.ecf.presence.ui.rosterViewerDropTarget">
+ <dropTarget
+ class="org.eclipse.ecf.presence.collab.ui.RosterViewerDropTargetText">
+ </dropTarget>
+ </extension>
+
+ <extension
+ point="org.eclipse.ecf.presence.ui.rosterViewerDropTarget">
+ <dropTarget
+ class="org.eclipse.ecf.presence.collab.ui.TextRosterViewerDropTarget1">
+ </dropTarget>
+ </extension>
</plugin>
diff --git a/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/RosterViewerDropTargetText.java b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/RosterViewerDropTargetText.java
new file mode 100644
index 000000000..e020b015f
--- /dev/null
+++ b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/RosterViewerDropTargetText.java
@@ -0,0 +1,23 @@
+package org.eclipse.ecf.presence.collab.ui;
+
+import org.eclipse.ecf.presence.roster.IRosterEntry;
+import org.eclipse.ecf.presence.roster.IRosterItem;
+import org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget;
+import org.eclipse.swt.dnd.TransferData;
+
+public class RosterViewerDropTargetText implements IRosterViewerDropTarget {
+
+ public boolean performDrop(Object data) {
+ // TODO Auto-generated method stub
+ return true;
+ }
+
+ public boolean validateDrop(IRosterItem rosterItem, int operation,
+ TransferData transferType) {
+ // TODO Auto-generated method stub
+ System.out.println("RosterViewerDropTargetText.validateDrop("+rosterItem+","+operation+","+transferType+")");
+ if (rosterItem != null && rosterItem instanceof IRosterEntry) return true;
+ return false;
+ }
+
+}

Back to the top