Skip to content
Snippets Groups Projects
Commit f75e1b95 authored by Erlend Stav's avatar Erlend Stav
Browse files

Updated version number and updated dashboard to start ontology project wizard

parent 70f1d8b4
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<feature
id="org.universaal.tools.dashboard.feature"
label="AAL Studio Dashboard"
version="0.4.0"
version="0.4.1"
provider-name="universAAL"
plugin="org.universaal.tools.aalstudio.core">
......
......@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Dashboard
Bundle-SymbolicName: org.universaal.tools.dashboard;singleton:=true
Bundle-Version: 0.4.0
Bundle-Version: 0.4.1
Bundle-Activator: org.universaal.tools.dashboard.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
......
/*
Copyright 2011 SINTEF, http://www.sintef.no
See the NOTICE file distributed with this work for additional
information regarding copyright ownership
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.universaal.tools.dashboard.buttonlisteners;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.NotEnabledException;
import org.eclipse.core.commands.NotHandledException;
import org.eclipse.core.commands.common.NotDefinedException;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.part.ViewPart;
/**
* Class that calls the Run Project command when that button is pressed on
* the Dashboard.
* @author Adrian
*
*/
public class CreateOntologyProjectListener implements SelectionListener {
ViewPart view;
public CreateOntologyProjectListener(ViewPart view) {
this.view = view;
}
@Override
public void widgetDefaultSelected(SelectionEvent arg0) {
}
@Override
public void widgetSelected(SelectionEvent arg0) {
IHandlerService handlerService = (IHandlerService)view.getSite().getService(IHandlerService.class);
try {
handlerService.executeCommand("org.universaal.tools.modelling.ontology.wizard.commands.newOntologyProject", null);
} catch (ExecutionException e) {
e.printStackTrace();
} catch (NotDefinedException e) {
MessageDialog.openInformation(view.getSite().getShell(),
"Command not defined.",
"This command was not available. " +
"Please install AAL Studio Modelling Support.");
e.printStackTrace();
} catch (NotEnabledException e) {
e.printStackTrace();
} catch (NotHandledException e) {
e.printStackTrace();
}
}
}
......@@ -39,6 +39,7 @@ import org.eclipse.wb.swt.SWTResourceManager;
import org.universaal.tools.dashboard.buttonlisteners.BuildProjectListener;
import org.universaal.tools.dashboard.buttonlisteners.CreateNewItemListener;
import org.universaal.tools.dashboard.buttonlisteners.CreateNewProjectListener;
import org.universaal.tools.dashboard.buttonlisteners.CreateOntologyProjectListener;
import org.universaal.tools.dashboard.buttonlisteners.DebugProjectListener;
import org.universaal.tools.dashboard.buttonlisteners.GenerateXmlListener;
import org.universaal.tools.dashboard.buttonlisteners.ImportExampleListener;
......@@ -120,7 +121,7 @@ public class DashboardView extends ViewPart {
Label lblApplicationDesign = new Label(canvas_1, SWT.NONE);
lblApplicationDesign.setFont(SWTResourceManager.getFont("Arial", 12, SWT.BOLD));
lblApplicationDesign.setBackground(SWTResourceManager.getColor(135, 206, 235));
lblApplicationDesign.setText("Application Design");
lblApplicationDesign.setText("Ontology Project");
btnCreate = new Button(canvas_1, SWT.NONE);
btnCreate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
......@@ -406,7 +407,7 @@ public class DashboardView extends ViewPart {
btnPublishUstore.addSelectionListener(new PublishProjectListener(this));
//Application Design
btnCreate.addSelectionListener(new TemporaryListener(this, "Create"));
btnCreate.addSelectionListener(new CreateOntologyProjectListener(this));
btnEdit.addSelectionListener(new TemporaryListener(this, "Edit"));
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment