Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-07-30 18:48:55 -0400
committerslewis2007-07-30 18:48:55 -0400
commitb8d15bc90ffa94ddcd5629b9575fe9938dc46782 (patch)
tree92d2ce20ecf1e0c4fba57d84b73c196524d8f253 /examples
parenta9a3fd6ef8a3cb2d588d141aea7b69940f1796a7 (diff)
downloadorg.eclipse.ecf-b8d15bc90ffa94ddcd5629b9575fe9938dc46782.tar.gz
org.eclipse.ecf-b8d15bc90ffa94ddcd5629b9575fe9938dc46782.tar.xz
org.eclipse.ecf-b8d15bc90ffa94ddcd5629b9575fe9938dc46782.zip
roster entry drop target addition
Diffstat (limited to 'examples')
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.webinar/src/org/eclipse/ecf/internal/examples/webinar/dnd/RosterEntryDropTarget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.webinar/src/org/eclipse/ecf/internal/examples/webinar/dnd/RosterEntryDropTarget.java b/examples/bundles/org.eclipse.ecf.examples.webinar/src/org/eclipse/ecf/internal/examples/webinar/dnd/RosterEntryDropTarget.java
index 627ab8a74..ba77ab752 100644
--- a/examples/bundles/org.eclipse.ecf.examples.webinar/src/org/eclipse/ecf/internal/examples/webinar/dnd/RosterEntryDropTarget.java
+++ b/examples/bundles/org.eclipse.ecf.examples.webinar/src/org/eclipse/ecf/internal/examples/webinar/dnd/RosterEntryDropTarget.java
@@ -5,6 +5,7 @@ import org.eclipse.ecf.presence.roster.IRosterItem;
import org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.dnd.TransferData;
+import org.eclipse.ui.PlatformUI;
public class RosterEntryDropTarget implements IRosterViewerDropTarget {
@@ -27,9 +28,8 @@ public class RosterEntryDropTarget implements IRosterViewerDropTarget {
if (data instanceof String) {
// Right here, send data to channel
// sendString(rosterEntry.getUser().getID(),(String) data);
- MessageDialog.openInformation(null, "Dropped on Contact",
- "The following text was dropped on "
- + rosterEntry.getUser().getName() + ":\n\n" + data);
+ MessageDialog.openInformation(PlatformUI.getWorkbench().getDisplay().getActiveShell(),"Roster Drop","The following text was dropped on "
+ + rosterEntry.getUser().getName() + ":\n\n" + data);
return true;
}
return false;

Back to the top