Commits

Anonymous committed a88cefa

When launcher starts repl, perspective is automatically switched to lisp.

Comments (0)

Files changed (3)

META-INF/MANIFEST.MF

  org.lispdev.swank;bundle-version="1.0.0"
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Export-Package: org.lispdev.main

src/org/lispdev/main/LispPerspectiveFactory.java

 
 public class LispPerspectiveFactory implements IPerspectiveFactory
 {
+  public static final String ID = "org.lispdev.main.LispPerspective";
 
   @Override
   public void createInitialLayout(IPageLayout layout)
   {
-  // TODO Auto-generated method stub
+    //   Get the editor area.
+    String editorArea = layout.getEditorArea();
+
 
   }
 

src/org/lispdev/main/Plugin.java

 /**
  * The activator class controls the plug-in life cycle
  */
-public class Plugin extends AbstractUIPlugin {
+public class Plugin extends AbstractUIPlugin
+{
 
-	// The plug-in ID
-	public static final String PLUGIN_ID = "org.lispdev.main";
+  // The plug-in ID
+  public static final String PLUGIN_ID = "org.lispdev.main";
 
-	// The shared instance
-	private static Plugin plugin;
-	
-	/**
-	 * The constructor
-	 */
-	public Plugin() {
-	}
+  // The shared instance
+  private static Plugin plugin;
 
-	/*
-	 * (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;
-	}
+  /**
+   * The constructor
+   */
+  public Plugin()
+  {}
 
-	/*
-	 * (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);
-	}
+  /*
+   * (non-Javadoc)
+   *
+   * @see
+   * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
+   * )
+   */
+  @Override
+  public void start(BundleContext context) throws Exception
+  {
+    super.start(context);
+    plugin = this;
+  }
 
-	/**
-	 * Returns the shared instance
-	 *
-	 * @return the shared instance
-	 */
-	public static Plugin getDefault() {
-		return plugin;
-	}
+  /*
+   * (non-Javadoc)
+   *
+   * @see
+   * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
+   * )
+   */
+  @Override
+  public void stop(BundleContext context) throws Exception
+  {
+    plugin = null;
+    super.stop(context);
+  }
+
+  /**
+   * Returns the shared instance
+   *
+   * @return the shared instance
+   */
+  public static Plugin getDefault()
+  {
+    return plugin;
+  }
 
 }