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

Added AAL Studio perspective project

parent 978a99fe
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.universaal.tools.perspective</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
#Mon Mar 12 17:55:12 CET 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Perspective
Bundle-SymbolicName: org.universaal.tools.perspective;singleton:=true
Bundle-Version: 0.1.0
Bundle-Activator: org.universaal.tools.perspective.Activator
Bundle-Vendor: universAAL
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="org.universaal.tools.perspective.AALStudioPerspective"
id="org.universaal.tools.perspective.AALStudioPerspective"
name="AAL Studio">
</perspective>
</extension>
</plugin>
package org.universaal.tools.perspective;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IFolderLayout;
public class AALStudioPerspective implements IPerspectiveFactory {
/**
* Creates the initial layout for a page.
*/
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
{
IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.28f, IPageLayout.ID_EDITOR_AREA);
folderLayout.addView("org.eclipse.jdt.ui.PackageExplorer");
folderLayout.addView("org.eclipse.ui.views.ContentOutline");
folderLayout.addView("org.eclipse.papyrus.modelexplorer.modelexplorer");
}
{
IFolderLayout folderLayout = layout.createFolder("folder_1", IPageLayout.BOTTOM, 0.65f, IPageLayout.ID_EDITOR_AREA);
folderLayout.addView("org.universaal.tools.dashboard.views.DashboardView");
folderLayout.addView("org.eclipse.ui.views.PropertySheet");
folderLayout.addView("org.eclipse.ui.views.ProblemView");
folderLayout.addView("org.eclipse.pde.runtime.LogView");
folderLayout.addView("org.eclipse.ui.console.ConsoleView");
}
}
/**
* Add fast views to the perspective.
*/
private void addFastViews(IPageLayout layout) {
}
/**
* Add view shortcuts to the perspective.
*/
private void addViewShortcuts(IPageLayout layout) {
}
/**
* Add perspective shortcuts to the perspective.
*/
private void addPerspectiveShortcuts(IPageLayout layout) {
}
}
package org.universaal.tools.perspective;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.universaal.tools.perspective"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
/**
* The constructor
*/
public Activator() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
}
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