-<?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/swt-win.jar"/>\r
- <classpathentry kind="lib" path="C:/Users/Nikhil/workspace/image_annotation/lib/jface.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>
/**
* @param type the annotation type to set
*/
- public void setType(AnnotationType type, boolean isLabelling) {
+ public void setType(AnnotationType type) {
assert (type != null);
this.type = type;
}
}
- public void setAnnotationType(AnnotationType type, boolean isLabelling) {
- view.setAnnotationType(type, isLabelling);
+ public void setAnnotationType(AnnotationType type) {
+ view.setAnnotationType(type);
}
// Toggling between Segmentation and labelling
Tool.Foreground.action.setEnabled(false);
Tool.Background.action.setEnabled(false);
- setAnnotationType(AnnotationType.Background, true);
view.removeContextChangeListener(eventHandler);
if(!(view.getTool() == null))
{
private void execute(Tool a, Event e) {
switch (a) {
case Foreground:
- setAnnotationType(AnnotationType.Foreground, false);
+ setAnnotationType(AnnotationType.Foreground);
break;
case Background:
- setAnnotationType(AnnotationType.Background, false);
+ setAnnotationType(AnnotationType.Background);
break;
case OperatingMode:
setLabellingMode(a.action.isChecked());
}
- public void setAnnotationType(AnnotationType type, boolean isLabelling) {
+ public void setAnnotationType(AnnotationType type) {
if (getTool() != null) {
- getTool().setType(type, isLabelling);
+ getTool().setType(type);
}
}