use of de.catma.tag.Version in project catma by forTEXT.
the class ChangeImportActionDialog method getResult.
@Override
protected TagsetDefinition getResult() {
if (choices.getValue().equals(choice1)) {
String name = tagsetNameInput.getValue();
IDGenerator idGenerator = new IDGenerator();
return new TagsetDefinition(idGenerator.generateTagsetId(), name, new Version());
} else if (choices.getValue().equals(choice2)) {
return this.tagsetGrid.getSelectedItems().iterator().next();
}
return null;
}
use of de.catma.tag.Version in project catma by forTEXT.
the class ProjectView method handleAddTagsetRequest.
private void handleAddTagsetRequest() {
SingleTextInputDialog collectionNameDlg = new SingleTextInputDialog("Add Tagset", "Please enter the Tagset name:", new SaveCancelListener<String>() {
@Override
public void savePressed(String result) {
IDGenerator idGenerator = new IDGenerator();
project.getTagManager().addTagsetDefinition(new TagsetDefinition(idGenerator.generateTagsetId(), result, new Version()));
}
});
collectionNameDlg.show();
}
use of de.catma.tag.Version in project catma by forTEXT.
the class TagSelectionPanel method handleAddTagsetRequest.
private void handleAddTagsetRequest() {
SingleTextInputDialog tagsetNameDlg = new SingleTextInputDialog("Add Tagset", "Please enter the Tagset name:", new SaveCancelListener<String>() {
@Override
public void savePressed(String result) {
IDGenerator idGenerator = new IDGenerator();
project.getTagManager().addTagsetDefinition(new TagsetDefinition(idGenerator.generateTagsetId(), result, new Version()));
}
});
tagsetNameDlg.show();
}
use of de.catma.tag.Version in project catma by forTEXT.
the class TagsView method handleAddTagsetRequest.
private void handleAddTagsetRequest() {
if (project.isAuthorizedOnProject(RBACPermission.TAGSET_CREATE_OR_UPLOAD)) {
SingleTextInputDialog tagsetNameDlg = new SingleTextInputDialog("Add Tagset", "Please enter the Tagset name:", new SaveCancelListener<String>() {
@Override
public void savePressed(String result) {
IDGenerator idGenerator = new IDGenerator();
project.getTagManager().addTagsetDefinition(new TagsetDefinition(idGenerator.generateTagsetId(), result, new Version()));
}
});
tagsetNameDlg.show();
} else {
Notification.show("Info", "You do not have the permission to create Tagsets! " + "Please contact the Project maintainer for changes!", Type.HUMANIZED_MESSAGE);
}
}
use of de.catma.tag.Version in project catma by forTEXT.
the class TagResourcePanel method handleAddTagsetRequest.
private void handleAddTagsetRequest() {
SingleTextInputDialog tagsetNameDlg = new SingleTextInputDialog("Add Tagset", "Please enter the Tagset name:", new SaveCancelListener<String>() {
@Override
public void savePressed(String result) {
IDGenerator idGenerator = new IDGenerator();
project.getTagManager().addTagsetDefinition(new TagsetDefinition(idGenerator.generateTagsetId(), result, new Version()));
}
});
tagsetNameDlg.show();
}
Aggregations