Summary: | "Checkout As" Wizard is not waiting for new project to be created | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jacek Pospychala <jacek.pospychala> |
Component: | Team | Assignee: | Platform Team Inbox <platform-team-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | pawel.pogorzelski1, silviya |
Version: | 3.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Jacek Pospychala
2010-02-02 03:45:48 EST
ok, I've been digging a little into this problem and IMHO the cause is in org.eclipse.team.internal.ccvs.ui.wizards.CheckoutAsWizard#getNewProject() That method is responsible for launching a "New Project" wizard for our imported folder and fetching it's result. It calls new NewProjectAction(window).run() but it wait's only for NewProjectAction wizard dialog to be closed, and not for the project to be created. This works most of the time, assuming that new project wizard finishes it's job before closing the wizard dialog. However it doesn't work for new project wizards, which spin-off separate long-running job/thread to create a project. A possible solution could look like this: NewProjectListener listener = new NewProjectListener(); ResourcesPlugin.getWorkspace().addResourceChangeListener(listener, IResourceChangeEvent.POST_CHANGE); (new NewProjectAction(workbenchWindow).run(); IProject project = null; + while (project = listener.getNewProject()) { + waitWhileNewProjectIsBeingCreated(); + } ResourcesPlugin.getWorkspace().removeResourceChangeListener(listener); return project; This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |