|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2013 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2015 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 12-20
Link Here
|
| 12 |
|
12 |
|
| 13 |
import java.util.*; |
13 |
import java.util.*; |
| 14 |
import org.eclipse.core.resources.IProject; |
14 |
import org.eclipse.core.resources.IProject; |
|
|
15 |
import org.eclipse.core.resources.WorkspaceJob; |
| 16 |
import org.eclipse.core.runtime.*; |
| 15 |
import org.eclipse.pde.core.*; |
17 |
import org.eclipse.pde.core.*; |
|
|
18 |
import org.eclipse.pde.core.target.ITargetDefinition; |
| 16 |
import org.eclipse.pde.internal.core.FeatureTable.Idver; |
19 |
import org.eclipse.pde.internal.core.FeatureTable.Idver; |
| 17 |
import org.eclipse.pde.internal.core.ifeature.IFeatureModel; |
20 |
import org.eclipse.pde.internal.core.ifeature.IFeatureModel; |
|
|
21 |
import org.eclipse.pde.internal.core.target.P2TargetUtils; |
| 18 |
import org.eclipse.pde.internal.core.util.VersionUtil; |
22 |
import org.eclipse.pde.internal.core.util.VersionUtil; |
| 19 |
import org.osgi.framework.Version; |
23 |
import org.osgi.framework.Version; |
| 20 |
|
24 |
|
|
Lines 93-99
Link Here
|
| 93 |
fExternalManager = new ExternalFeatureModelManager(); |
97 |
fExternalManager = new ExternalFeatureModelManager(); |
| 94 |
fExternalManager.addModelProviderListener(fProviderListener); |
98 |
fExternalManager.addModelProviderListener(fProviderListener); |
| 95 |
fReloadExternalNeeded = false; |
99 |
fReloadExternalNeeded = false; |
| 96 |
fExternalManager.initialize(); |
100 |
|
|
|
101 |
ITargetDefinition unresolvedRepoBasedtarget = null; |
| 102 |
try { |
| 103 |
unresolvedRepoBasedtarget = TargetPlatformHelper.getUnresolvedRepositoryBasedWorkspaceTarget(); |
| 104 |
} catch (CoreException e) { |
| 105 |
PDECore.log(e); |
| 106 |
} |
| 107 |
if (unresolvedRepoBasedtarget != null && !P2TargetUtils.isProfileValid(unresolvedRepoBasedtarget)) { |
| 108 |
|
| 109 |
WorkspaceJob initializeExternalManager = new WorkspaceJob(FeatureModelManager_initializingFeatureTargetPlatform) { |
| 110 |
@Override |
| 111 |
public IStatus runInWorkspace(IProgressMonitor monitor) { |
| 112 |
fExternalManager.initialize(); |
| 113 |
return Status.OK_STATUS; |
| 114 |
} |
| 115 |
}; |
| 116 |
initializeExternalManager.schedule(); |
| 117 |
} else |
| 118 |
fExternalManager.initialize(); |
| 119 |
|
| 97 |
} |
120 |
} |
| 98 |
|
121 |
|
| 99 |
/* |
122 |
/* |