diff --git a/perspective/org.universaal.tools.perspective/.classpath b/perspective/org.universaal.tools.perspective/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..ad32c83a7885b8953a938b41df3b4fd4fe1aae01 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/.classpath @@ -0,0 +1,7 @@ +<?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> diff --git a/perspective/org.universaal.tools.perspective/.project b/perspective/org.universaal.tools.perspective/.project new file mode 100644 index 0000000000000000000000000000000000000000..75ebd421c411a44ba207317f8ce9f3fecbba93a6 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/.project @@ -0,0 +1,28 @@ +<?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> diff --git a/perspective/org.universaal.tools.perspective/.settings/org.eclipse.jdt.core.prefs b/perspective/org.universaal.tools.perspective/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..8a9b18b711829cf1c1a613c74f46438d16368187 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#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 diff --git a/perspective/org.universaal.tools.perspective/META-INF/MANIFEST.MF b/perspective/org.universaal.tools.perspective/META-INF/MANIFEST.MF new file mode 100644 index 0000000000000000000000000000000000000000..feaec6ea18eaaec1049a98fcabc720462d3c1a9b --- /dev/null +++ b/perspective/org.universaal.tools.perspective/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +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 diff --git a/perspective/org.universaal.tools.perspective/build.properties b/perspective/org.universaal.tools.perspective/build.properties new file mode 100644 index 0000000000000000000000000000000000000000..34d2e4d2dad529ceaeb953bfcdb63c51d69ffed2 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/perspective/org.universaal.tools.perspective/plugin.xml b/perspective/org.universaal.tools.perspective/plugin.xml new file mode 100644 index 0000000000000000000000000000000000000000..bd697fa82bd6d93a2ae5ddfbb9035241dac1ebb2 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/plugin.xml @@ -0,0 +1,12 @@ +<?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> diff --git a/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/AALStudioPerspective.java b/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/AALStudioPerspective.java new file mode 100644 index 0000000000000000000000000000000000000000..4c7540d38c324aab9bf9f0da508b412c14de56e0 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/AALStudioPerspective.java @@ -0,0 +1,51 @@ +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) { + } + +} diff --git a/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/Activator.java b/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/Activator.java new file mode 100644 index 0000000000000000000000000000000000000000..36383bdb1d3b53a34828a0853d3ec000c9a641b2 --- /dev/null +++ b/perspective/org.universaal.tools.perspective/src/org/universaal/tools/perspective/Activator.java @@ -0,0 +1,50 @@ +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; + } + +}