Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJared Burns2004-05-06 23:00:11 +0000
committerJared Burns2004-05-06 23:00:11 +0000
commit17c08bebe3dd6e829ecd6e03b27a91771f34bc97 (patch)
treea949ca9223a5288cc48100834fb7579dd203c2e0 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java
parent6a2ec28111c3cdca89a9c9c73b596c169259f642 (diff)
downloadeclipse.platform.debug-17c08bebe3dd6e829ecd6e03b27a91771f34bc97.tar.gz
eclipse.platform.debug-17c08bebe3dd6e829ecd6e03b27a91771f34bc97.tar.xz
eclipse.platform.debug-17c08bebe3dd6e829ecd6e03b27a91771f34bc97.zip
Bug 61105 - Configure view management per perspective
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java
new file mode 100644
index 000000000..68df0658e
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ViewManagementAction.java
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.internal.ui.actions;
+
+import org.eclipse.debug.internal.ui.preferences.PreferencePageContainerDialog;
+import org.eclipse.debug.internal.ui.preferences.ViewManagementPreferencePage;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.actions.ActionDelegate;
+
+/**
+ * An action which opens the view management preference page.
+ */
+public class ViewManagementAction extends ActionDelegate implements IViewActionDelegate {
+
+ public ViewManagementAction() {
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ PreferencePageContainerDialog dialog= new PreferencePageContainerDialog(Display.getDefault().getActiveShell(), new ViewManagementPreferencePage());
+ dialog.open();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ }
+}

Back to the top