summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRemy Suen2010-05-04 06:38:33 (EDT)
committer Remy Suen2010-05-04 06:38:33 (EDT)
commit1e92a6cf8211a799a20dd8035a65413b6824eed7 (patch)
tree92b293b9410a365f3c1b621eddd9f598d0ed7cb3
parent1050aaa653d3e7aebdbc4018dcb83a9a75901157 (diff)
downloadegit-1e92a6cf8211a799a20dd8035a65413b6824eed7.zip
egit-1e92a6cf8211a799a20dd8035a65413b6824eed7.tar.gz
egit-1e92a6cf8211a799a20dd8035a65413b6824eed7.tar.bz2
Remove references to internal types in ShareSingleProjectCommandrefs/changes/39/639/1
There is no reason to use ConfigureProjectWizard because all the methods it calls is actually public API. One minor discrepancy introduced here is that we no longer go through Team's ResizeWizardDialog inner class. However, the WizardDialog class actually already sets a shell style with SWT.RESIZE so the ResizeWizardDialog actually gives us nothing of value. Change-Id: I81fd2d36748512234f3c8187873a65a1bfe1e3d7
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/ShareSingleProjectCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/ShareSingleProjectCommand.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/ShareSingleProjectCommand.java
index 5dbdf85..21f1d2e 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/ShareSingleProjectCommand.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commands/ShareSingleProjectCommand.java
@@ -14,8 +14,8 @@ import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.egit.ui.internal.sharing.SharingWizard;
+import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.widgets.Shell;
-import org.eclipse.team.internal.ui.wizards.ConfigureProjectWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.handlers.HandlerUtil;
@@ -44,7 +44,8 @@ public class ShareSingleProjectCommand extends AbstractHandler {
final SharingWizard wizard = new SharingWizard();
wizard.init(workbench, projectToShare);
final Shell shell = HandlerUtil.getActiveShell(event);
- ConfigureProjectWizard.openWizard(shell, wizard);
+ WizardDialog wizardDialog = new WizardDialog(shell, wizard);
+ wizardDialog.open();
return null;
}