Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-05-13 10:56:19 -0400
committerMichael Valenta2002-05-13 10:56:19 -0400
commit61441858fc2220fbcec023a9def2925242d467f9 (patch)
tree72a4043af60388d16ffea2f52e473804bfc56c30 /bundles/org.eclipse.team.cvs.ui
parent40767edbb9ce3cffd6bc9deec8128b61d21d366c (diff)
downloadeclipse.platform.team-61441858fc2220fbcec023a9def2925242d467f9.tar.gz
eclipse.platform.team-61441858fc2220fbcec023a9def2925242d467f9.tar.xz
eclipse.platform.team-61441858fc2220fbcec023a9def2925242d467f9.zip
13971: Need to refresh not obvious from errors in log
- Should not prompt when determining menu enablement
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CVSAction.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CVSAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CVSAction.java
index 2d4687c52..00beee131 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CVSAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CVSAction.java
@@ -18,16 +18,13 @@ import java.util.List;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
@@ -355,37 +352,4 @@ abstract public class CVSAction extends TeamAction {
}
return okToContinue[0];
}
- /**
- * @see IActionDelegate#selectionChanged(IAction, ISelection)
- */
- public void selectionChanged(final IAction action, ISelection selection) {
- if (selection instanceof IStructuredSelection) {
- this.selection = (IStructuredSelection) selection;
- if (action != null) {
- try {
- CVSUIPlugin.runWithRefresh(getShell(), getSelectedResources(), new IRunnableWithProgress() {
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
- try {
- action.setEnabled(CVSAction.this.isEnabled());
- } catch (TeamException e) {
- throw new InvocationTargetException(e);
- }
- }
- }, null);
- } catch (InvocationTargetException e) {
- action.setEnabled(false);
- // We should not open a dialog when determining menu enablements so log it instead
- CVSUIPlugin.log(CVSUIPlugin.asTeamException(e).getStatus());
- } catch (InterruptedException e) {
- action.setEnabled(false);
- }
- }
- }
- }
-
- /**
- * @see TeamAction#isEnabled()
- */
- protected abstract boolean isEnabled() throws TeamException;
-
} \ No newline at end of file

Back to the top