diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.setup.editor/src/org/eclipse/emf/cdo/releng/setup/presentation/actions/PreferencesAction.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.releng.setup.editor/src/org/eclipse/emf/cdo/releng/setup/presentation/actions/PreferencesAction.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.editor/src/org/eclipse/emf/cdo/releng/setup/presentation/actions/PreferencesAction.java b/plugins/org.eclipse.emf.cdo.releng.setup.editor/src/org/eclipse/emf/cdo/releng/setup/presentation/actions/PreferencesAction.java new file mode 100644 index 0000000000..1b70644cbe --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.setup.editor/src/org/eclipse/emf/cdo/releng/setup/presentation/actions/PreferencesAction.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2013 Eike Stepper (Berlin, Germany) 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.releng.setup.presentation.actions; + +import org.eclipse.emf.cdo.releng.setup.presentation.SetupEditor; + +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.IWorkbenchWindowActionDelegate; + +/** + * @author Eike Stepper + */ +public class PreferencesAction implements IWorkbenchWindowActionDelegate +{ + private IWorkbenchWindow window; + + public PreferencesAction() + { + } + + public void init(IWorkbenchWindow window) + { + this.window = window; + } + + public void selectionChanged(IAction action, ISelection selection) + { + } + + public void dispose() + { + } + + public void run(IAction action) + { + SetupEditor.openPreferences(window.getActivePage()); + } +} |