01: /*******************************************************************************
02: * Copyright (c) 2000, 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Common Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/cpl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.openwfe.gpe.actions;
11:
12: import org.eclipse.jface.action.IToolBarManager;
13: import org.eclipse.ui.IWorkbenchActionConstants;
14: import org.eclipse.ui.part.EditorActionBarContributor;
15:
16: import org.eclipse.gef.ui.actions.ActionBarContributor;
17: import org.eclipse.gef.ui.actions.DeleteRetargetAction;
18: import org.eclipse.gef.ui.actions.RedoRetargetAction;
19: import org.eclipse.gef.ui.actions.UndoRetargetAction;
20:
21: /**
22: * Contributes actions to the Editor.
23: * @author Daniel Lee
24: */
25: public class FlowActionBarContributor extends ActionBarContributor {
26:
27: /**
28: * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
29: */
30: protected void buildActions() {
31: addRetargetAction(new UndoRetargetAction());
32: addRetargetAction(new RedoRetargetAction());
33: addRetargetAction(new DeleteRetargetAction());
34:
35: }
36:
37: /**
38: * @see EditorActionBarContributor#contributeToToolBar(IToolBarManager)
39: */
40: public void contributeToToolBar(IToolBarManager toolBarManager) {
41: toolBarManager.add(getAction(IWorkbenchActionConstants.UNDO));
42: toolBarManager.add(getAction(IWorkbenchActionConstants.REDO));
43: }
44:
45: /**
46: * @see org.eclipse.gef.ui.actions.ActionBarContributor#declareGlobalActionKeys()
47: */
48: protected void declareGlobalActionKeys() {
49: // TODO Auto-generated method stub
50:
51: }
52:
53: }
|