Commit 9ef468f7 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

dariah nexus moved

parent 1ca73384
......@@ -5,16 +5,16 @@
* Copyright (C) 2011 TextGrid Consortium (http://www.textgrid.de)
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
......@@ -45,7 +45,7 @@ public class ShowSadePublishPerspectiveHandler extends AbstractHandler implemen
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
try {
// first reset the perspective...
IWorkbench wb = PlatformUI.getWorkbench();
wb.getActiveWorkbenchWindow().getActivePage().setPerspective(
......@@ -58,33 +58,31 @@ public class ShowSadePublishPerspectiveHandler extends AbstractHandler implemen
"info.textgrid.lab.sadepublish.perspectives.SadePublishPerspective",
PlatformUI.getWorkbench().getActiveWorkbenchWindow());
wb.getIntroManager().closeIntro(wb.getIntroManager().getIntro());
// test if command was called from navigator
if(event.getCommand().getId().equals("info.textgrid.lab.sadepublish.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();
((SadePublishView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.findView("info.textgrid.lab.sadepublish.views.SadePublishView")).addTextGridObject(uri, title, contentType);
}
}
}
}
} catch (WorkbenchException e) {
IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID,
"Could not open Sade Publisher Perspective!", e);
......
......@@ -67,6 +67,7 @@ public class SadePublishView extends ViewPart {
spBrowser.addProgressListener(new ProgressListener() {
@Override
public void changed(ProgressEvent arg0) {}
@Override
public void completed(ProgressEvent arg0) {
......
......@@ -10,7 +10,7 @@
<parent>
<groupId>info.textgrid.lab</groupId>
<artifactId>parent</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.4.0-SNAPSHOT</version>
</parent>
<modules>
......@@ -34,9 +34,9 @@
<repositories>
<repository>
<id>dariah.nexus</id>
<name>DARIAH Nexus Public Repository</name>
<url>http://dev.dariah.eu/nexus/content/groups/public</url>
<id>maven-dariah-public</id>
<name>GWDG Nexus DARIAH-DE Repository</name>
<url>https://nexus.gwdg.de/repository/maven-dariah-public/</url>
<releases>
<enabled>true</enabled>
</releases>
......
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