### Eclipse Workspace Patch 1.0
#P org.eclipse.debug.ui
Index: plugin.xml
===================================================================
RCS file: /home/eclipse/org.eclipse.debug.ui/plugin.xml,v
retrieving revision 1.368
diff -u -r1.368 plugin.xml
--- plugin.xml 15 Mar 2006 21:35:26 -0000 1.368
+++ plugin.xml 22 Mar 2006 21:17:27 -0000
@@ -27,6 +27,9 @@
icon="$nl$/icons/full/eview16/debug_persp.gif"
class="org.eclipse.debug.internal.ui.DebugPerspectiveFactory"
id="org.eclipse.debug.ui.DebugPerspective">
+
+ %DebugPerspective.description
+
null if no such perspective exists.
+ *
+ * @param perspectiveId the identifier
+ * @return the label of the perspective with the given identifier or
+ * null
if no such perspective exists
+ */
+ protected String getPerspectiveDescription(String perspectiveId) {
+ IPerspectiveDescriptor newPerspective = PlatformUI.getWorkbench().getPerspectiveRegistry().findPerspectiveWithId(perspectiveId);
+ if (newPerspective == null) {
+ return null;
+ }
+ return newPerspective.getDescription();
+ }
+
/**
* Returns the perspective associated with the
* given launch, or null
if none.