Improve error reporting in the branch dialog
[egit/imyousuf.git] / org.spearce.egit.ui / src / org / spearce / egit / ui / internal / actions / Update.java
blob4a16da3c580df9f628c54fa2245d1eaaa0b33574
1 /*******************************************************************************
2 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3 * Copyright (C) 2006, Shawn O. Pearce <spearce@spearce.org>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * See LICENSE for the full license text, also available.
8 *******************************************************************************/
9 package org.spearce.egit.ui.internal.actions;
11 import java.util.List;
13 import org.eclipse.core.resources.IWorkspaceRunnable;
14 import org.eclipse.jface.action.IAction;
15 import org.spearce.egit.core.op.UpdateOperation;
17 /**
18 * Action to update index for selected resources with content from workdir.
20 * @see UpdateOperation
22 public class Update extends AbstractOperationAction {
23 protected IWorkspaceRunnable createOperation(final IAction act,
24 final List sel) {
25 return sel.isEmpty() ? null : new UpdateOperation(sel);