blob: 8f568b8fc607fa59c9605f24b7a0b36ca5b73aba [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2007 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 implementation
//------------------------------------------------------------------------------
/**
*
*/
package org.eclipse.epf.diagramming.base.actions;
import org.eclipse.gef.Request;
import org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
/**
* @author Shashidhar Kannoori
*
*/
public class OrientationAction extends DiagramAction {
public OrientationAction(IWorkbenchPage workbenchPage, String orienation) {
super(workbenchPage);
setId(orienation);
}
public OrientationAction(IWorkbenchPart workbenchpart, String oriientation) {
super(workbenchpart);
setId(oriientation);
}
/**
* @param workbenchPage
*/
public OrientationAction(IWorkbenchPage workbenchPage) {
super(workbenchPage);
}
/**
* @param workbenchpart
*/
public OrientationAction(IWorkbenchPart workbenchpart) {
super(workbenchpart);
}
/* (non-Javadoc)
* @see org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction#createTargetRequest()
*/
protected Request createTargetRequest() {
return new OrientationRequest(getId());
}
/* (non-Javadoc)
* @see org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction#isSelectionListener()
*/
protected boolean isSelectionListener() {
return true;
}
}