Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/META-INF/MANIFEST.MF1
-rw-r--r--org.eclipse.debug.ui/icons/full/eview16/module_view.gifbin0 -> 338 bytes
-rw-r--r--org.eclipse.debug.ui/plugin.properties7
-rw-r--r--org.eclipse.debug.ui/plugin.xml13
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java9
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/IHelpContextIdProvider.java35
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesView.java195
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.java30
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.properties15
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java9
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java22
14 files changed, 341 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/META-INF/MANIFEST.MF b/org.eclipse.debug.ui/META-INF/MANIFEST.MF
index c3ea6e9e5..054a4ef9a 100644
--- a/org.eclipse.debug.ui/META-INF/MANIFEST.MF
+++ b/org.eclipse.debug.ui/META-INF/MANIFEST.MF
@@ -39,6 +39,7 @@ Export-Package: org.eclipse.debug.internal.ui;x-internal:=true,
org.eclipse.debug.internal.ui.views.launch;x-internal:=true,
org.eclipse.debug.internal.ui.views.memory;x-internal:=true,
org.eclipse.debug.internal.ui.views.memory.renderings;x-internal:=true,
+ org.eclipse.debug.internal.ui.views.modules;x-internal:=true,
org.eclipse.debug.internal.ui.views.registers;x-internal:=true,
org.eclipse.debug.internal.ui.views.variables;x-internal:=true,
org.eclipse.debug.internal.ui.views.variables.details;x-internal:=true,
diff --git a/org.eclipse.debug.ui/icons/full/eview16/module_view.gif b/org.eclipse.debug.ui/icons/full/eview16/module_view.gif
new file mode 100644
index 000000000..cb55e33b5
--- /dev/null
+++ b/org.eclipse.debug.ui/icons/full/eview16/module_view.gif
Binary files differ
diff --git a/org.eclipse.debug.ui/plugin.properties b/org.eclipse.debug.ui/plugin.properties
index 89c713cb5..76c116860 100644
--- a/org.eclipse.debug.ui/plugin.properties
+++ b/org.eclipse.debug.ui/plugin.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2007 IBM Corporation and others.
+# Copyright (c) 2000, 2008 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
# Contributors:
# IBM Corporation - initial API and implementation
# QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
+# Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
###############################################################################
pluginName=Debug UI
@@ -85,6 +86,7 @@ LaunchShortcutsName=Launch Shortcut
LaunchConfigurationTypeImageExtensionName=Launch Configuration Type Image
LaunchGroupsExtensionName=Launch Groups
modificationAction.label=&Modification
+ModulesView.name=Modules
OpenDebugConfigurations.label=De&bug Configurations...
OpenRunConfigurations.label=Ru&n Configurations...
OpenProfileConfigurations.label=&Profile Configurations...
@@ -261,6 +263,9 @@ ViewCommand.expressionView.description=Show the Expressions view
ViewCommand.registerView.name=Registers
ViewCommand.registerView.description=Show the Registers view
+ViewCommand.moduleView.name=Modules
+ViewCommand.moduleView.description=Show the Modules view
+
ViewCommand.memoryView.name=Memory
ViewCommand.memoryView.description=Show the Memory view
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml
index 72c4f74ad..6dc41b16a 100644
--- a/org.eclipse.debug.ui/plugin.xml
+++ b/org.eclipse.debug.ui/plugin.xml
@@ -91,6 +91,13 @@
id="org.eclipse.debug.ui.RegisterView">
</view>
<view
+ name="%ModulesView.name"
+ icon="$nl$/icons/full/eview16/module_view.gif"
+ category="org.eclipse.debug.ui"
+ class="org.eclipse.debug.internal.ui.views.modules.ModulesView"
+ id="org.eclipse.debug.ui.ModuleView">
+ </view>
+ <view
allowMultiple="true"
category="org.eclipse.debug.ui"
class="org.eclipse.debug.internal.ui.views.memory.MemoryView"
@@ -1614,6 +1621,12 @@ M4 = Platform-specific fourth key
id="org.eclipse.debug.ui.RegisterView">
</command>
<command
+ name="%ViewCommand.moduleView.name"
+ description="%ViewCommand.moduleView.description"
+ categoryId="org.eclipse.ui.category.views"
+ id="org.eclipse.debug.ui.ModuleView">
+ </command>
+ <command
name="%ViewCommand.memoryView.name"
description="%ViewCommand.memoryView.description"
categoryId="org.eclipse.ui.category.views"
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
index 66f873ddb..e2cdf8673 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
@@ -9,6 +9,7 @@
* IBM Corporation - initial API and implementation
* QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
* QNX Software Systems - Mikhail Khodjaiants - Bug 114664
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
*******************************************************************************/
package org.eclipse.debug.internal.ui;
@@ -207,6 +208,7 @@ public class DebugPluginImages {
declareRegistryImage(IDebugUIConstants.IMG_VIEW_LAUNCHES, VIEW + "debug_view.gif"); //$NON-NLS-1$
declareRegistryImage(IDebugUIConstants.IMG_VIEW_VARIABLES, VIEW + "variable_view.gif"); //$NON-NLS-1$
declareRegistryImage(IInternalDebugUIConstants.IMG_CVIEW_MEMORY_VIEW, VIEW + "memory_view.gif"); //$NON-NLS-1$
+ declareRegistryImage(IInternalDebugUIConstants.IMG_CVIEW_MODULES_VIEW, VIEW + "module_view.gif"); //$NON-NLS-1$
// Perspectives
declareRegistryImage(IDebugUIConstants.IMG_PERSPECTIVE_DEBUG, VIEW + "debug_persp.gif"); //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java
index dabd8b5bf..51a6fda83 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
*******************************************************************************/
package org.eclipse.debug.internal.ui;
@@ -79,6 +80,7 @@ public interface IDebugHelpContextIds {
public static final String LAUNCH_CONFIGURATION_VIEW = PREFIX + "launch_configuration_view_context"; //$NON-NLS-1$
public static final String REGISTERS_VIEW = PREFIX + "registers_view_context"; //$NON-NLS-1$
public static final String PROCESS_CONSOLE = PREFIX + "process_console_context"; //$NON-NLS-1$
+ public static final String MODULES_VIEW = PREFIX + "modules_view_context"; //$NON-NLS-1$
// Preference pages
public static final String DEBUG_PREFERENCE_PAGE = PREFIX + "debug_preference_page_context"; //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
index 62d908fcf..571e7e750 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software Systems - Mikhail Khodjaiants - Bug 114664
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
*******************************************************************************/
package org.eclipse.debug.internal.ui;
@@ -324,6 +325,14 @@ public interface IInternalDebugUIConstants {
* @since 3.0
* */
public static final String IMG_CVIEW_MEMORY_VIEW= "IMG_CVIEW_MEMORY_VIEW"; //$NON-NLS-1$
+
+
+ /**
+ * Modules view image identifier
+ *
+ * @since 3.4
+ * */
+ public static final String IMG_CVIEW_MODULES_VIEW= "IMG_CVIEW_MODULES_VIEW"; //$NON-NLS-1$
/**
* Boolean preference controlling whether the debug view tracks
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java
index 3d36510a9..f500db89e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
*******************************************************************************/
package org.eclipse.debug.internal.ui.preferences;
@@ -89,6 +90,7 @@ public interface IDebugPreferenceConstants {
public static final String VARIABLES_DETAIL_PANE_ORIENTATION = "Variables.detail.orientation"; //$NON-NLS-1$
public static final String EXPRESSIONS_DETAIL_PANE_ORIENTATION = "Expressions.detail.orientation"; //$NON-NLS-1$
public static final String REGISTERS_DETAIL_PANE_ORIENTATION = "Registers.detail.orientation"; //$NON-NLS-1$
+ public static final String MODULES_DETAIL_PANE_ORIENTATION = "Modules.detail.orientation"; //$NON-NLS-1$
public static final String VARIABLES_DETAIL_PANE_RIGHT = "Variables.detail.orientation.right"; //$NON-NLS-1$
public static final String VARIABLES_DETAIL_PANE_UNDERNEATH = "Variables.detail.orientation.underneath"; //$NON-NLS-1$
public static final String VARIABLES_DETAIL_PANE_HIDDEN = "Variables.detail.orientation.hidden"; //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/IHelpContextIdProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/IHelpContextIdProvider.java
new file mode 100644
index 000000000..4575073f0
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/IHelpContextIdProvider.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.debug.internal.ui.views.modules;
+
+
+
+/**
+ * A help context id provider allows clients to customize F1 help content from a
+ * debug view. When the view input is changed, the view asks the input for
+ * an adapter for IHelpContexIdProvider. If a provider is returned, the provider
+ * will be consulted to replace the default context help id for a given control. If a provider
+ * is not returned, then the view will use the default help context id.
+ *
+ * This is provided until Bug 216834 is fixed.
+ *
+ */
+public interface IHelpContextIdProvider {
+
+ /**
+ * Return the help context id that should be used in place of the given help context id.
+ * @param helpId the help context id to override
+ * @return the help context id that should be used in place of the given help context id
+ * or <code>null</code> if default is to be used
+ */
+ public String getHelpContextId(String helpId);
+}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesView.java
new file mode 100644
index 000000000..2a98515d5
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesView.java
@@ -0,0 +1,195 @@
+/**********************************************************************
+ * Copyright (c) 2004, 2008 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
+ * IBM - Added the abiliity to update view label, context help and the orientation
+ * action upon input change
+***********************************************************************/
+package org.eclipse.debug.internal.ui.views.modules;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.debug.internal.ui.DebugPluginImages;
+import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
+import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
+import org.eclipse.debug.internal.ui.actions.variables.ToggleDetailPaneAction;
+import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants;
+import org.eclipse.debug.internal.ui.views.variables.VariablesView;
+import org.eclipse.debug.internal.ui.views.variables.details.AvailableDetailPanesAction;
+import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * Displays modules and symbols with a detail area.
+ */
+public class ModulesView extends VariablesView {
+
+ /**
+ * @see org.eclipse.debug.ui.AbstractDebugView#getHelpContextId()
+ */
+ protected String getHelpContextId() {
+ return IDebugHelpContextIds.MODULES_VIEW;
+ }
+
+ /**
+ * @see org.eclipse.debug.ui.AbstractDebugView#configureToolBar(org.eclipse.jface.action.IToolBarManager)
+ */
+ protected void configureToolBar(IToolBarManager tbm) {
+ tbm.add(new Separator(this.getClass().getName()));
+ tbm.add(new Separator(IDebugUIConstants.RENDER_GROUP));
+ tbm.add(getAction("CollapseAll")); //$NON-NLS-1$
+ tbm.add( new Separator( IDebugUIConstants.MODULES_GROUP ) );
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.ui.AbstractDebugView#fillContextMenu(org.eclipse.jface.action.IMenuManager)
+ */
+ protected void fillContextMenu( IMenuManager menu ) {
+ menu.add( new Separator( IDebugUIConstants.EMPTY_MODULES_GROUP ) );
+ menu.add( new Separator( IDebugUIConstants.MODULES_GROUP ) );
+ menu.add(getAction(VARIABLES_FIND_ELEMENT_ACTION));
+ menu.add(new Separator());
+ IAction action = new AvailableDetailPanesAction(this);
+ if (isDetailPaneVisible() && action.isEnabled()) {
+ menu.add(action);
+ }
+ menu.add(new Separator(IDebugUIConstants.EMPTY_RENDER_GROUP));
+ menu.add(new Separator(IDebugUIConstants.EMPTY_NAVIGATION_GROUP));
+ menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
+ }
+
+ /**
+ * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getDetailPanePreferenceKey()
+ */
+ protected String getDetailPanePreferenceKey() {
+ return IDebugPreferenceConstants.MODULES_DETAIL_PANE_ORIENTATION;
+ }
+
+ /**
+ * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getToggleActionLabel()
+ */
+ protected String getToggleActionLabel() {
+
+ if (getViewer() != null)
+ {
+ Object viewerInput = getViewer().getInput();
+ if (viewerInput != null)
+ {
+ String name = getViewName(viewerInput);
+ if (name != null)
+ {
+ String label = NLS.bind(ModulesViewMessages.ModulesView_1, name);
+ return label;
+ }
+ }
+ }
+
+ return ModulesViewMessages.ModulesView_0;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getPresentationContextId()
+ */
+ protected String getPresentationContextId() {
+ return IDebugUIConstants.ID_MODULE_VIEW;
+ }
+
+ protected void setViewerInput(Object context) {
+ super.setViewerInput(context);
+
+ // update view label when viewer input is changed
+ updateViewLabels(context);
+
+ // update orientation action based on input
+ updateOrientationAction(context);
+
+ // update context help hook when viewer input is changed
+ updateContextHelp(context);
+ }
+
+ private void updateContextHelp(Object context) {
+ if (context instanceof IAdaptable) {
+ IAdaptable adaptable = (IAdaptable) context;
+ if (adaptable.getAdapter(IHelpContextIdProvider.class) != null) {
+ IHelpContextIdProvider provider = (IHelpContextIdProvider) adaptable
+ .getAdapter(IHelpContextIdProvider.class);
+ String helpId = provider.getHelpContextId(IDebugHelpContextIds.MODULES_VIEW);
+ if (helpId != null) {
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl().getParent(), helpId);
+ return;
+ }
+ }
+ }
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl().getParent(), IDebugHelpContextIds.MODULES_VIEW);
+ }
+
+ private void updateViewLabels(Object context)
+ {
+ String viewName = getViewName(context);
+
+ // only update label if the name has changed
+ if (!getPartName().equals(viewName))
+ setPartName(viewName);
+
+ // only update image if the image has changed
+ Image image = getViewImage(context);
+ if (!getTitleImage().equals(image))
+ setTitleImage(image);
+ }
+
+ /**
+ * @param context
+ */
+ private String getViewName(Object context) {
+ if (context instanceof IAdaptable) {
+ IAdaptable adaptable = (IAdaptable) context;
+ if (adaptable.getAdapter(ILabelProvider.class) != null) {
+ ILabelProvider provider = (ILabelProvider) adaptable
+ .getAdapter(ILabelProvider.class);
+ String label = provider.getText(this);
+ if (label != null)
+ return label;
+ }
+ }
+ return ModulesViewMessages.ModulesView_2;
+ }
+
+ private Image getViewImage(Object context)
+ {
+ if (context instanceof IAdaptable) {
+ IAdaptable adaptable = (IAdaptable) context;
+ if (adaptable.getAdapter(ILabelProvider.class) != null) {
+ ILabelProvider provider = (ILabelProvider) adaptable
+ .getAdapter(ILabelProvider.class);
+ Image image = provider.getImage(this);
+ if (image != null)
+ return image;
+ }
+ }
+ return DebugPluginImages.getImage(IInternalDebugUIConstants.IMG_CVIEW_MODULES_VIEW);
+ }
+
+ private void updateOrientationAction(Object context)
+ {
+ ToggleDetailPaneAction action = getToggleDetailPaneAction(IDebugPreferenceConstants.VARIABLES_DETAIL_PANE_HIDDEN);
+ if (action != null)
+ {
+ String label = NLS.bind(ModulesViewMessages.ModulesView_1, getViewName(context));
+ action.setText(label);
+ }
+ }
+
+}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.java
new file mode 100644
index 000000000..6930c44f4
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.java
@@ -0,0 +1,30 @@
+/**********************************************************************
+ * Copyright (c) 2004, 2008 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ * IBM Corporation - Bug 90318
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
+ ***********************************************************************/
+package org.eclipse.debug.internal.ui.views.modules;
+
+import org.eclipse.osgi.util.NLS;
+
+public class ModulesViewMessages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.debug.internal.ui.views.modules.ModulesViewMessages";//$NON-NLS-1$
+
+ public static String ModulesView_0;
+
+ public static String ModulesView_1;
+
+ public static String ModulesView_2;
+
+ static {
+ // load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, ModulesViewMessages.class);
+ }
+}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.properties
new file mode 100644
index 000000000..c35d020fd
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/modules/ModulesViewMessages.properties
@@ -0,0 +1,15 @@
+#########################################################################
+# Copyright (c) 2004, 2008 QNX Software Systems and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# QNX Software Systems - Initial API and implementation
+# Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
+##########################################################################
+ModulesView_0=Modules View Only
+
+ModulesView_1={0} View Only
+ModulesView_2=Modules
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
index 92625a7b7..e90d6f59f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
@@ -1088,4 +1088,13 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
getViewer().getControl().setFocus();
}
}
+
+ protected ToggleDetailPaneAction getToggleDetailPaneAction(String orientation)
+ {
+ for (int i=0; i<fToggleDetailPaneActions.length; i++)
+ if (fToggleDetailPaneActions[i].getOrientation().equals(orientation))
+ return fToggleDetailPaneActions[i];
+
+ return null;
+ }
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java
index f60c5f5a5..a2ebf41ac 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
+ * Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
*******************************************************************************/
package org.eclipse.debug.ui;
@@ -261,7 +262,13 @@ public interface IDebugUIConstants {
* @since 3.0
*/
public static final String ID_REGISTER_VIEW= "org.eclipse.debug.ui.RegisterView"; //$NON-NLS-1$
-
+
+ /**
+ * Module view identifier (value <code>"org.eclipse.debug.ui.ModuleView"</code>).
+ * @since 3.4
+ */
+ public static final String ID_MODULE_VIEW= "org.eclipse.debug.ui.ModuleView"; //$NON-NLS-1$
+
/**
* Console view identifier (value <code>"org.eclipse.debug.ui.ConsoleView"</code>).
* @deprecated Use org.eclipse.ui.console.IConsoleConstants.ID_CONSOLE_VIEW
@@ -762,7 +769,18 @@ public interface IDebugUIConstants {
* Identifier for a register group in a menu (value <code>"registerGroup"</code>).
*/
public static final String REGISTER_GROUP = "registerGroup"; //$NON-NLS-1$
-
+
+ /**
+ * Identifier for an empty group preceding a
+ * modules group in a menu (value <code>"emptyModulesGroup"</code>).
+ */
+ public static final String EMPTY_MODULES_GROUP = "emptyModulesGroup"; //$NON-NLS-1$
+
+ /**
+ * Identifier for a modules group in a menu (value <code>"modulesGroup"</code>).
+ */
+ public static final String MODULES_GROUP = "modulesGroup"; //$NON-NLS-1$
+
/**
* Id for the popup menu associated with the variables (tree viewer) part of the VariableView
*/

Back to the top