<classpathentry kind="lib" path="lib/swt-gtk-64.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="plugins1"/>
- <classpathentry kind="lib" path="lib/istapi-src.jar"/>
+ <classpathentry kind="lib" path="lib/istapi-src.jar" sourcepath="/home/lingutln/practice/istapi-src.jar"/>
<classpathentry kind="lib" path="lib/istapi.jar"/>
<classpathentry kind="lib" path="lib/jface.jar"/>
<classpathentry kind="lib" path="resources/ant/lib/ant-deb.jar"/>
help.add(actions.get(HelpAction.class));
help.add(actions.get(AboutAction.class));
- MenuManager annotate = addMenu(bar, "&Annotate");
- annotate.add(actions.get(HelpAction.class));
-
if (OsUtils.isMacOSX()) {
// Enhance the UI on the Mac
IAction aboutAction = actions.get(AboutAction.class);
// Combo box housing the selectable views
private Combo combo, comboLabel;
- // Button for assigning a label to the Segmented image
- private Button assign;
-
// Current segmentation tool
private Segmenter segmenter;
});
bar2.pack();
}
-
+ /**
+ * Third tool bar for holding the Annotate combo.
+ */
private void createToolbar3() {
SwtUtils.addLabel(bar3, getAction(Tool.SetLabel).getText());
comboLabel = SwtUtils.addCombo(bar3, 130, SWT.SIMPLE);
public void keyReleased(KeyEvent e) {
comboLabel.remove(0,comboLabel.getItemCount()-1);
setLabel(comboLabel.getText());
- }
+ Display.getCurrent().asyncExec(new Runnable() {
+ public void run() {
+ comboLabel.setFocus();
+ comboLabel.setText(comboLabel.getText());
+ }
+ });
+ }
@Override
public void keyPressed(KeyEvent arg0) {
// TODO Auto-generated method stub
}
});
- ToolItem item = new ToolItem(bar3, SWT.SEPARATOR);
+ /*ToolItem item = new ToolItem(bar3, SWT.SEPARATOR);
assign = new Button(bar3, SWT.PUSH);
assign.setText("Assign");
item.setWidth(50);
item.setControl(assign);
- bar3.pack();
+ bar3.pack();*/
}
Tool.Clear.action.setEnabled(canClear());
Tool.AutoApply.action.setChecked(auto);
Tool.SegmenterOptions.action.setEnabled(canShowOptions());
-
+
// Always enabled if view enabled
Tool.SetBrushSize.action.setEnabled(true);
Tool.SegmenterOptions.action.setEnabled(true);
for(int i=0; i<array.length();i++)
{
comboLabel.add(array.getJSONObject(i).getString("title"),i);
+ comboLabel.setListVisible(true);
}
in.close();
}