Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-11-22 20:39:35 +0000
committerMichael Valenta2004-11-22 20:39:35 +0000
commitbaf8b910d6ef73f88e68492d88d5a8bd6d122663 (patch)
treeee6ffd0f00cc71f25bec9ee5b5c972bf952211e8
parentadaac9c3f6c6bc73149fb98ef743e6a4fc995d77 (diff)
downloadeclipse.platform.team-baf8b910d6ef73f88e68492d88d5a8bd6d122663.tar.gz
eclipse.platform.team-baf8b910d6ef73f88e68492d88d5a8bd6d122663.tar.xz
eclipse.platform.team-baf8b910d6ef73f88e68492d88d5a8bd6d122663.zip
Bug 78551 Can't change repository parameters
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CVSRepositoryPropertiesPage.java7
1 files changed, 4 insertions, 3 deletions
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 cfa6c841b..f79f1e72d 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
@@ -13,6 +13,7 @@ package org.eclipse.team.internal.ccvs.ui.repo;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import java.util.List;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.*;
@@ -33,7 +34,6 @@ 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;
@@ -369,7 +369,8 @@ public class CVSRepositoryPropertiesPage extends PropertyPage {
}
}
final boolean[] result = new boolean[] { false };
- PlatformUI.getWorkbench().getProgressService().run(false, false, new WorkspaceModifyOperation(null) {
+ final ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(getShell());
+ progressMonitorDialog.run(false, false, new WorkspaceModifyOperation(null) {
public void execute(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
// Create a new repository location with the new information
@@ -391,7 +392,7 @@ public class CVSRepositoryPropertiesPage extends PropertyPage {
if (projects.size() > 0) {
// To do: warn the user
DetailsDialogWithProjects dialog = new DetailsDialogWithProjects(
- getShell(),
+ progressMonitorDialog.getShell(),
Policy.bind("CVSRepositoryPropertiesPage.Confirm_Project_Sharing_Changes_1"), //$NON-NLS-1$
Policy.bind("CVSRepositoryPropertiesPage.There_are_projects_in_the_workspace_shared_with_this_repository_2"), //$NON-NLS-1$
Policy.bind("CVSRepositoryPropertiesPage.sharedProject", location.toString()), //$NON-NLS-1$

Back to the top