Permalink
Browse files

fixed crazy popup feature of the image previewer

  • Loading branch information...
gregjan committed Aug 9, 2012
1 parent 6b37c0a commit bb3e8e5cea377e4a4f80467ae339d6a54f9ca94e
@@ -1061,9 +1061,9 @@
id="workbench_plugin.previewFile"
minimized="false"
moveable="true"
- ratio=".8"
- relationship="bottom"
- relative="org.eclipse.ui.editorss"
+ ratio=".4"
+ relationship="left"
+ relative="cdr-workbench.Properties"
showTitle="true"
visible="true">
</view>
@@ -38,21 +38,21 @@ public void paintControl(org.eclipse.swt.events.PaintEvent e) {
drawImage(e.gc);
}
});
- addListener(SWT.MouseMove, new Listener() {
- public void handleEvent(Event event) {
- if (image == null)
- return;
- if (getDrawingBounds().contains(event.x, event.y))
- showEnlargedImage();
- else
- stayClosed = false;
- }
- });
- addListener(SWT.MouseExit, new Listener() {
- public void handleEvent(Event event) {
- stayClosed = false;
- }
- });
+// addListener(SWT.MouseMove, new Listener() {
+// public void handleEvent(Event event) {
+// if (image == null)
+// return;
+// if (getDrawingBounds().contains(event.x, event.y))
+// showEnlargedImage();
+// else
+// stayClosed = false;
+// }
+// });
+// addListener(SWT.MouseExit, new Listener() {
+// public void handleEvent(Event event) {
+// stayClosed = false;
+// }
+// });
}
private void drawImage(GC gc) {

0 comments on commit bb3e8e5

Please sign in to comment.