Package org.eclipse.egit.ui.internal.commands.shared

Examples of org.eclipse.egit.ui.internal.commands.shared.RebaseCurrentRefCommand


* @see RebaseAction
*/
public class RebaseActionHandler extends RepositoryActionHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    RebaseCurrentRefCommand rebaseCurrent = new RebaseCurrentRefCommand();
    rebaseCurrent.setEnabled(event.getApplicationContext());
    // Because the enabled state is for both starting a new rebase as well
    // as working with an existing rebase, it can be that this is executed
    // even though starting a new rebase is not possible. So check enabled
    // state again here. See also isEnabled.
    if (rebaseCurrent.isEnabled())
      return rebaseCurrent.execute(event);
    else
      return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commands.shared.RebaseCurrentRefCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.