diff options
author | Siva Velusamy <vsiva@google.com> | 2011-12-15 12:57:31 -0800 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2011-12-15 13:04:55 -0800 |
commit | 22dc5d4e071b38a5912521634770aa0d6d4d7ab8 (patch) | |
tree | 5472897b258a01ffdf1eb2b9274160588301a366 | |
parent | d5f733212db0aaa7b80d0f9d7184f8cc6943503d (diff) | |
download | sdk-22dc5d4e071b38a5912521634770aa0d6d4d7ab8.zip sdk-22dc5d4e071b38a5912521634770aa0d6d4d7ab8.tar.gz sdk-22dc5d4e071b38a5912521634770aa0d6d4d7ab8.tar.bz2 |
rcp: add perspective switcher
Add a perspective switcher bar to the monitor RCP application.
Change-Id: I86d8bdb5633d6566dba8aaf1c48561b947ea7420
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); + } } |