Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-03 20:51:27 -0400
committerMichael Valenta2004-05-03 20:51:27 -0400
commit17cee358fa4b85fce5b2355752418ca4d56d23e3 (patch)
tree7eaba594e61a3e8d5a1b7374bda4ae64e7378078
parent06282ed114ba328ffc64330eb33a3ef952bb3607 (diff)
downloadeclipse.platform.team-17cee358fa4b85fce5b2355752418ca4d56d23e3.tar.gz
eclipse.platform.team-17cee358fa4b85fce5b2355752418ca4d56d23e3.tar.xz
eclipse.platform.team-17cee358fa4b85fce5b2355752418ca4d56d23e3.zip
56249: Make all operations proper granularity
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSCompareRevisionsInput.java2
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java3
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java2
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/GetAction.java2
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/PutAction.java2
5 files changed, 6 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSCompareRevisionsInput.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSCompareRevisionsInput.java
index b4851363a..1a6aa0d90 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSCompareRevisionsInput.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSCompareRevisionsInput.java
@@ -256,7 +256,7 @@ public class CVSCompareRevisionsInput extends CompareEditorInput implements ISav
getRevisionAction = new Action(Policy.bind("HistoryView.getRevisionAction"), null) { //$NON-NLS-1$
public void run() {
try {
- new ProgressMonitorDialog(shell).run(false, true, new WorkspaceModifyOperation() {
+ new ProgressMonitorDialog(shell).run(false, true, new WorkspaceModifyOperation(null) {
protected void execute(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();
if (selection.size() != 1) return;
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java
index f4e1f8329..f787df6fc 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java
@@ -36,6 +36,7 @@ import org.eclipse.team.internal.ccvs.ui.*;
import org.eclipse.team.internal.ccvs.ui.Policy;
import org.eclipse.team.internal.ccvs.ui.wizards.ConfigurationWizardMainPage;
import org.eclipse.team.internal.ui.dialogs.DetailsDialogWithProjects;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
import org.eclipse.ui.dialogs.PropertyPage;
import org.eclipse.ui.help.WorkbenchHelp;
@@ -370,7 +371,7 @@ public class CVSRepositoryPropertiesPage extends PropertyPage {
}
}
final boolean[] result = new boolean[] { false };
- new ProgressMonitorDialog(getShell()).run(false, false, new WorkspaceModifyOperation() {
+ PlatformUI.getWorkbench().getProgressService().run(false, false, new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
// Create a new repository location with the new information
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java
index 270fdc8a8..40e2fcaae 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java
@@ -55,7 +55,7 @@ public class ProjectSetImportWizard extends Wizard implements IImportWizard {
final boolean[] result = new boolean[] {false};
try {
- getContainer().run(true, true, new WorkspaceModifyOperation() {
+ getContainer().run(true, true, new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InvocationTargetException {
InputStreamReader reader = null;
try {
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/GetAction.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/GetAction.java
index 30e99102f..b873400a2 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/GetAction.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/GetAction.java
@@ -30,7 +30,7 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
public class GetAction extends FileSystemAction {
public void run(IAction action) {
- run(new WorkspaceModifyOperation() {
+ run(new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException {
try {
Map table = getRepositoryProviderMapping();
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/PutAction.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/PutAction.java
index 4c8c1577a..1a6304187 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/PutAction.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/PutAction.java
@@ -33,7 +33,7 @@ public class PutAction extends FileSystemAction {
* Method declared on IActionDelegate.
*/
public void run(IAction action) {
- run(new WorkspaceModifyOperation() {
+ run(new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException {
try {
Map table = getRepositoryProviderMapping();

Back to the top