aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-12-19 09:35:29 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-12-19 09:35:29 -0800
commit4a0e593d5837dc7989e65a003f978cad39388b0d (patch)
tree29a8317705a96d9764cd06381d4d22fd3c9866de
parentd09ef044f4f0d6dbcb98d152c9d2ee4f21c5cb0a (diff)
parent22dc5d4e071b38a5912521634770aa0d6d4d7ab8 (diff)
downloadsdk-4a0e593d5837dc7989e65a003f978cad39388b0d.zip
sdk-4a0e593d5837dc7989e65a003f978cad39388b0d.tar.gz
sdk-4a0e593d5837dc7989e65a003f978cad39388b0d.tar.bz2
Merge "rcp: add perspective switcher"
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.monitor/build.properties4
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.monitor/plugin.xml4
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.monitor/plugin_customization.ini4
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ApplicationWorkbenchAdvisor.java6
4 files changed, 17 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.monitor/build.properties b/eclipse/plugins/com.android.ide.eclipse.monitor/build.properties
index c3405b3..f9c4c1b 100644
--- a/eclipse/plugins/com.android.ide.eclipse.monitor/build.properties
+++ b/eclipse/plugins/com.android.ide.eclipse.monitor/build.properties
@@ -5,4 +5,6 @@ bin.includes = META-INF/,\
plugin.xml,\
libs/,\
libs/sdkstats.jar,\
- libs/androidprefs.jar
+ libs/androidprefs.jar,\
+ plugin_customization.ini,\
+ plugin.properties
diff --git a/eclipse/plugins/com.android.ide.eclipse.monitor/plugin.xml b/eclipse/plugins/com.android.ide.eclipse.monitor/plugin.xml
index de0a3f6..cf5593b 100644
--- a/eclipse/plugins/com.android.ide.eclipse.monitor/plugin.xml
+++ b/eclipse/plugins/com.android.ide.eclipse.monitor/plugin.xml
@@ -37,6 +37,10 @@
name="appName"
value="monitor">
</property>
+ <property
+ name="preferenceCustomization"
+ value="plugin_customization.ini">
+ </property>
</product>
</extension>
diff --git a/eclipse/plugins/com.android.ide.eclipse.monitor/plugin_customization.ini b/eclipse/plugins/com.android.ide.eclipse.monitor/plugin_customization.ini
new file mode 100644
index 0000000..307a200
--- /dev/null
+++ b/eclipse/plugins/com.android.ide.eclipse.monitor/plugin_customization.ini
@@ -0,0 +1,4 @@
+org.eclipse.ui/DOCK_PERSPECTIVE_BAR=right
+org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=true
+org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=true
+org.eclipse.ui/SHOW_MEMORY_MONITOR=true \ No newline at end of file
diff --git a/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ApplicationWorkbenchAdvisor.java b/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ApplicationWorkbenchAdvisor.java
index be75e00..cae4dbf 100644
--- a/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ApplicationWorkbenchAdvisor.java
+++ b/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ApplicationWorkbenchAdvisor.java
@@ -18,6 +18,7 @@ package com.android.ide.eclipse.monitor;
import com.android.ide.eclipse.ddms.Perspective;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
@@ -26,4 +27,9 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
return Perspective.ID;
}
+ @Override
+ public void preWindowOpen(IWorkbenchWindowConfigurer configurer) {
+ configurer.setShowStatusLine(true);
+ configurer.setShowPerspectiveBar(true);
+ }
}