Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmayworm2008-01-05 15:29:20 -0500
committermmayworm2008-01-05 15:29:20 -0500
commit06d3e7d311541e3d5be341276bf904f8af0656e5 (patch)
tree50dc530b18da8f7d5654b126d2473ed6ea7570a4 /examples
parent8f0bfb0780683940b922b633de721ecb03f56f39 (diff)
downloadorg.eclipse.ecf-06d3e7d311541e3d5be341276bf904f8af0656e5.tar.gz
org.eclipse.ecf-06d3e7d311541e3d5be341276bf904f8af0656e5.tar.xz
org.eclipse.ecf-06d3e7d311541e3d5be341276bf904f8af0656e5.zip
Adding titles and user name on dialogs
Diffstat (limited to 'examples')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
index 97b126039..dc5efc5ea 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/ChatComposite.java
@@ -383,11 +383,11 @@ public class ChatComposite extends Composite {
}
}
- private void sendImage(ID targetID) {
+ private void sendImage(final User toUser) {
if (MessageDialog.openQuestion(null, "Screen Capture", "To initiate screen capture, click OK, wait 5 seconds,\nand then select capture region with arrow cursor.")) {
- final Job job = new ScreenCaptureJob(getDisplay(), targetID, new IImageSender() {
+ final Job job = new ScreenCaptureJob(getDisplay(), toUser.getUserID(), toUser.getNickname(), new IImageSender() {
public void sendImage(ID targetID, ImageData imageData) {
- view.lch.sendImage(targetID, imageData);
+ view.lch.sendImage(toUser.getUserID(), imageData);
}
});
job.schedule(5000);
@@ -405,7 +405,7 @@ public class ChatComposite extends Composite {
if (!toUs) {
final Action sendImageToUser = new Action() {
public void run() {
- sendImage(user.getUserID());
+ sendImage(user);
}
};
sendImageToUser.setText("Send Screen Capture to " + user.getNickname());

Back to the top