input.add(NEW_LABEL_MARKER);
fViewer.setInput(input);
}
private void onCreateLabel() {
LabelDialog dialog = new LabelDialog(fContainer.getShell(), DialogMode.ADD, null);
if (dialog.open() == IDialogConstants.OK_ID) {
String name = dialog.getName();
RGB color = dialog.getColor();
ILabel newLabel = Owl.getModelFactory().createLabel(null, name);
newLabel.setColor(OwlUI.toString(color));
newLabel.setOrder(fViewer.getCombo().getItemCount() - 1); // Do not count Marker
DynamicDAO.save(newLabel);