Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-02 21:46:37 -0400
committerMichael Valenta2004-05-02 21:46:37 -0400
commitfb6a9c651442a3e553e07112f222893f959123a5 (patch)
tree8180218274c3e42ba164f9ea9328c07524f37a96
parent2a3a7045de3d4c16539c4551ab4efb1d618e0001 (diff)
downloadeclipse.platform.team-fb6a9c651442a3e553e07112f222893f959123a5.tar.gz
eclipse.platform.team-fb6a9c651442a3e553e07112f222893f959123a5.tar.xz
eclipse.platform.team-fb6a9c651442a3e553e07112f222893f959123a5.zip
56249: Make all operations proper granularity
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/IgnoreAction.java2
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java9
2 files changed, 5 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/IgnoreAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/IgnoreAction.java
index 5645afb6c..313411278 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/IgnoreAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/IgnoreAction.java
@@ -26,7 +26,7 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
public class IgnoreAction extends WorkspaceAction {
protected void execute(final IAction action) throws InvocationTargetException, InterruptedException {
- run(new WorkspaceModifyOperation() {
+ run(new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException {
IResource[] resources = getSelectedResources();
IgnoreResourcesDialog dialog = new IgnoreResourcesDialog(getShell(), resources);
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
index 0d0038e12..92624cfe8 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
@@ -11,12 +11,11 @@
package org.eclipse.team.internal.ccvs.ui.actions;
import java.lang.reflect.InvocationTargetException;
-
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.team.internal.ccvs.core.EditorsInfo;
import org.eclipse.team.internal.ccvs.ui.EditorsView;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
/**
*
*
@@ -29,9 +28,9 @@ public class ShowEditorsAction extends WorkspaceAction {
protected void execute(IAction action) throws InvocationTargetException, InterruptedException {
final EditorsAction editorsAction = new EditorsAction();
- run(new WorkspaceModifyOperation() {
- public void execute(IProgressMonitor monitor)
- throws InvocationTargetException, InterruptedException {
+ run(new IRunnableWithProgress() {
+ public void run(IProgressMonitor monitor)
+ throws InvocationTargetException, InterruptedException {
executeProviderAction(editorsAction, monitor);
}
}, true /* cancelable */ , PROGRESS_DIALOG);

Back to the top