diff options
| author | Remy Suen | 2010-05-04 10:38:33 +0000 |
|---|---|---|
| committer | Remy Suen | 2010-05-04 10:38:33 +0000 |
| commit | 1e92a6cf8211a799a20dd8035a65413b6824eed7 (patch) | |
| tree | 92b293b9410a365f3c1b621eddd9f598d0ed7cb3 | |
| parent | 1050aaa653d3e7aebdbc4018dcb83a9a75901157 (diff) | |
| download | egit-1e92a6cf8211a799a20dd8035a65413b6824eed7.tar.gz egit-1e92a6cf8211a799a20dd8035a65413b6824eed7.tar.xz egit-1e92a6cf8211a799a20dd8035a65413b6824eed7.zip | |
Remove references to internal types in ShareSingleProjectCommand
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.java | 5 |
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 5dbdf8523b..21f1d2e3eb 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; } |
