Commit d0ff25cf authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

remove view, as we have the editor now

parent c28cab4e
......@@ -58,42 +58,12 @@ public class ShowSammlungsDbPerspectiveHandler extends AbstractHandler implemen
"de.blumenbach_online.tglab.sammlungsdb.perspectives.SammlungsDbPerspective",
PlatformUI.getWorkbench().getActiveWorkbenchWindow());
wb.getIntroManager().closeIntro(wb.getIntroManager().getIntro());
// test if command was called from navigator
/*if(event.getCommand().getId().equals("de.blumenbach_online.tglab.sammlungsdb.publishSelected")) {
System.out.println("publish selected");
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
for (Object obj : ((IStructuredSelection) selection).toList()){
if (obj instanceof IAdaptable) {
TextGridObject tgo = (TextGridObject) ((IAdaptable) obj)
.getAdapter(TextGridObject.class);
String title = tgo.getTitle();
String uri = tgo.getURI().toString();
String contentType = tgo.getMetadata().getGeneric().getProvided().getFormat();
((SammlungsDbView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.findView("de.blumenbach_online.tglab.sammlungsdb.views.SammlungsDbView")).addTextGridObject(uri, title, contentType);
}
}
}
}*/
} catch (WorkbenchException e) {
IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID,
"Could not open SammlungsDB Perspective!", e);
Activator.getDefault().getLog().log(status);
} catch (CoreException e) {
IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID,
"Error !", e);
Activator.getDefault().getLog().log(status);
}
}
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment