-<?xml version="1.0" encoding="UTF-8"?>\r
-<classpath>\r
- <classpathentry kind="src" path="src"/>\r
- <classpathentry excluding="src/" kind="src" path=""/>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
- <classpathentry kind="lib" path="C:/Users/Nikhil/workspace/image_annotation/lib/jface.jar"/>\r
- <classpathentry kind="lib" path="C:/Users/Nikhil/workspace/image_annotation/lib/swt-win.jar"/>\r
- <classpathentry kind="lib" path="C:/Users/Nikhil/workspace/Annotation/library/commons-lang3-3.1.jar"/>\r
- <classpathentry kind="lib" path="C:/Users/Nikhil/workspace/Annotation/library/json.jar"/>\r
- <classpathentry kind="output" path="bin"/>\r
-</classpath>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry excluding="src/" kind="src" path=""/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="lib" path="/home/lingutln/workspace/Annotation/library/commons-lang3-3.1.jar"/>
+ <classpathentry kind="lib" path="/home/lingutln/workspace/Annotation/library/jface.jar"/>
+ <classpathentry kind="lib" path="/home/lingutln/workspace/Annotation/library/json.jar"/>
+ <classpathentry kind="lib" path="/home/lingutln/workspace/Annotation/library/swt-gtk-64.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
}
if (inside) {
status(AppStatus.Information, "Location [%4d,%4d] Color [%3d,%3d,%3d]",pt.x, pt.y, c.red, c.green, c.blue);
- if(view.getPainter().getMaskData().getPixel(pt.x,pt.y) == 0)
- {
- view.getCanvas().setToolTipText(SegmentationView.comboLabel.getText());
- return;
- }
- else if(view.getPainter().getMaskData().getPixel(pt.x,pt.y) == 1)
- {
+ if(view.getPainter().getMaskData().getPixel(pt.x,pt.y) == 0 && (view.getPainter().getName().equals("Foreground Only")))
+ {
+ view.getCanvas().setToolTipText(SegmentationView.comboLabel.getText());
+ return;
+ }
+ else if(view.getPainter().getMaskData().getPixel(pt.x,pt.y) == 1)
+ {
view.getCanvas().setToolTipText(null);
- }
+ }
}
inside = true;
}