Lines 7-12
Link Here
|
7 |
* |
7 |
* |
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
|
|
10 |
* Remy Chi Jian Suen <remy.suen@gmail.com> - Bug 201342 'Add to Java Search' does not reopen/recreate 'External Plug-in Libraries' project |
10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
11 |
package org.eclipse.pde.internal.ui.views.plugins; |
12 |
package org.eclipse.pde.internal.ui.views.plugins; |
12 |
|
13 |
|
Lines 58-65
Link Here
|
58 |
public IProject createProxyProject(IProgressMonitor monitor) throws CoreException { |
59 |
public IProject createProxyProject(IProgressMonitor monitor) throws CoreException { |
59 |
IWorkspaceRoot root = PDECore.getWorkspace().getRoot(); |
60 |
IWorkspaceRoot root = PDECore.getWorkspace().getRoot(); |
60 |
IProject project = root.getProject(SearchablePluginsManager.PROXY_PROJECT_NAME); |
61 |
IProject project = root.getProject(SearchablePluginsManager.PROXY_PROJECT_NAME); |
61 |
if (project.exists()) |
62 |
if (project.exists()) { |
|
|
63 |
if (!project.isOpen()) { |
64 |
project.open(monitor); |
65 |
} |
62 |
return project; |
66 |
return project; |
|
|
67 |
} |
63 |
|
68 |
|
64 |
monitor.beginTask(NLS.bind(PDEUIMessages.JavaSearchOperation_createProjectTaskName, SearchablePluginsManager.PROXY_PROJECT_NAME), 5); |
69 |
monitor.beginTask(NLS.bind(PDEUIMessages.JavaSearchOperation_createProjectTaskName, SearchablePluginsManager.PROXY_PROJECT_NAME), 5); |
65 |
project.create(new SubProgressMonitor(monitor, 1)); |
70 |
project.create(new SubProgressMonitor(monitor, 1)); |