|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2002, 2010 Rational Software Corporation and others. |
2 |
* Copyright (c) 2002, 2011 Rational Software 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 27-36
Link Here
|
| 27 |
import org.eclipse.cdt.core.model.ICProject; |
27 |
import org.eclipse.cdt.core.model.ICProject; |
| 28 |
import org.eclipse.cdt.core.model.ILanguage; |
28 |
import org.eclipse.cdt.core.model.ILanguage; |
| 29 |
import org.eclipse.cdt.core.model.LanguageManager; |
29 |
import org.eclipse.cdt.core.model.LanguageManager; |
|
|
30 |
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription; |
| 30 |
import org.eclipse.cdt.core.settings.model.ICProjectDescription; |
31 |
import org.eclipse.cdt.core.settings.model.ICProjectDescription; |
| 31 |
import org.eclipse.cdt.core.settings.model.ICProjectDescriptionManager; |
32 |
import org.eclipse.cdt.core.settings.model.ICProjectDescriptionManager; |
|
|
33 |
import org.eclipse.cdt.internal.core.envvar.EnvironmentVariableManager; |
| 32 |
import org.eclipse.cdt.internal.core.model.CModelManager; |
34 |
import org.eclipse.cdt.internal.core.model.CModelManager; |
| 33 |
import org.eclipse.cdt.internal.ui.wizards.ICDTCommonProjectWizard; |
35 |
import org.eclipse.cdt.internal.ui.wizards.ICDTCommonProjectWizard; |
|
|
36 |
import org.eclipse.cdt.managedbuilder.core.IConfiguration; |
| 37 |
import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo; |
| 38 |
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager; |
| 34 |
import org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager; |
39 |
import org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager; |
| 35 |
import org.eclipse.cdt.ui.CUIPlugin; |
40 |
import org.eclipse.cdt.ui.CUIPlugin; |
| 36 |
import org.eclipse.cdt.ui.newui.UIMessages; |
41 |
import org.eclipse.cdt.ui.newui.UIMessages; |
|
Lines 57-63
Link Here
|
| 57 |
import org.eclipse.core.runtime.content.IContentTypeManager; |
62 |
import org.eclipse.core.runtime.content.IContentTypeManager; |
| 58 |
import org.eclipse.jface.dialogs.MessageDialog; |
63 |
import org.eclipse.jface.dialogs.MessageDialog; |
| 59 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
64 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
| 60 |
import org.eclipse.jface.wizard.IWizard; |
|
|
| 61 |
import org.eclipse.jface.wizard.IWizardPage; |
65 |
import org.eclipse.jface.wizard.IWizardPage; |
| 62 |
import org.eclipse.ptp.internal.rdt.core.index.RemoteFastIndexer; |
66 |
import org.eclipse.ptp.internal.rdt.core.index.RemoteFastIndexer; |
| 63 |
import org.eclipse.ptp.internal.rdt.ui.RSEUtils; |
67 |
import org.eclipse.ptp.internal.rdt.ui.RSEUtils; |
|
Lines 316-321
Link Here
|
| 316 |
|
320 |
|
| 317 |
ICProject cProject = CModelManager.getDefault().getCModel().getCProject(newProject); |
321 |
ICProject cProject = CModelManager.getDefault().getCModel().getCProject(newProject); |
| 318 |
CCorePlugin.getIndexManager().setIndexerId(cProject, RemoteFastIndexer.ID); |
322 |
CCorePlugin.getIndexManager().setIndexerId(cProject, RemoteFastIndexer.ID); |
|
|
323 |
//turn off append contributed(local) environment variables for the build configuration of the remote project |
| 324 |
IManagedBuildInfo mbsInfo = ManagedBuildManager.getBuildInfo(newProject); |
| 325 |
IConfiguration[] mbcfgs = mbsInfo.getManagedProject().getConfigurations(); |
| 326 |
if(mbcfgs !=null){ |
| 327 |
for (IConfiguration mbconfiguration : mbcfgs) { |
| 328 |
ICConfigurationDescription c_mb_confgDes = ManagedBuildManager.getDescriptionForConfiguration(mbconfiguration); |
| 329 |
if(c_mb_confgDes!=null){ |
| 330 |
EnvironmentVariableManager.fUserSupplier.setAppendContributedEnvironment(false, c_mb_confgDes); |
| 331 |
//EnvironmentVariableManager.fUserSupplier.setAppendEnvironment(false, c_mb_confgDes); |
| 332 |
} |
| 333 |
} |
| 334 |
} |
| 335 |
|
| 319 |
} |
336 |
} |
| 320 |
fMonitor.worked(10); |
337 |
fMonitor.worked(10); |
| 321 |
} catch (CoreException e) { |
338 |
} catch (CoreException e) { |