mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
bug 322695: Can't access preferences of any unrelated CDT project having "bad" project in workspace
This commit is contained in:
parent
bd655c6a8a
commit
ff4042c747
2 changed files with 9 additions and 0 deletions
|
@ -87,8 +87,11 @@ import org.eclipse.core.runtime.CoreException;
|
|||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
import org.osgi.framework.Version;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
public class Configuration extends BuildObject implements IConfiguration, IBuildPropertiesRestriction, IBuildPropertyChangeListener, IRealBuildObjectAssociation {
|
||||
|
||||
private static final String EMPTY_STRING = ""; //$NON-NLS-1$
|
||||
|
@ -843,6 +846,10 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
|||
// If not, then try the extension configurations
|
||||
if (parent == null) {
|
||||
parent = ManagedBuildManager.getExtensionConfiguration(element.getAttribute(IConfiguration.PARENT));
|
||||
if (parent==null) {
|
||||
String message = NLS.bind(ManagedMakeMessages.getResourceString("Configuration.orphaned"), getId(), element.getAttribute(IConfiguration.PARENT)); //$NON-NLS-1$
|
||||
ManagedBuilderCorePlugin.error(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,8 @@ ManagedBuildInfo.message.init.ok = Initializing path container succeeded for {0}
|
|||
# Default GNU Makefile Generator messages
|
||||
GnuMakefileGenerator.message.postproc.dep.file=Verifying contents of dependency file {0}
|
||||
|
||||
# Configuration strings
|
||||
Configuration.orphaned=Orphaned CDT build configuration [{0}]: parent extension cfg [{1}] not found
|
||||
# Tool strings
|
||||
Tool.default.announcement=Invoking:
|
||||
Tool_Problem_Discovering_Args_For_Option=Problem discovering arguments for Tool option: {0} ({1})
|
||||
|
|
Loading…
Add table
Reference in a new issue