mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Cosmetics.
This commit is contained in:
parent
5626442f0e
commit
4efe6e815e
1 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,6 @@ import org.eclipse.core.runtime.preferences.IScopeContext;
|
||||||
import org.osgi.service.prefs.BackingStoreException;
|
import org.osgi.service.prefs.BackingStoreException;
|
||||||
|
|
||||||
public class CProject extends Openable implements ICProject {
|
public class CProject extends Openable implements ICProject {
|
||||||
|
|
||||||
private static final String CUSTOM_DEFAULT_OPTION_VALUE = "#\r\n\r#custom-non-empty-default-value#\r\n\r#"; //$NON-NLS-1$
|
private static final String CUSTOM_DEFAULT_OPTION_VALUE = "#\r\n\r#custom-non-empty-default-value#\r\n\r#"; //$NON-NLS-1$
|
||||||
|
|
||||||
public CProject(ICElement parent, IProject project) {
|
public CProject(ICElement parent, IProject project) {
|
||||||
|
@ -593,9 +592,9 @@ public class CProject extends Openable implements ICProject {
|
||||||
ArrayList<ISourceRoot> list = new ArrayList<>(entries.length);
|
ArrayList<ISourceRoot> list = new ArrayList<>(entries.length);
|
||||||
for (ICSourceEntry sourceEntry : entries) {
|
for (ICSourceEntry sourceEntry : entries) {
|
||||||
ISourceRoot root = getSourceRoot(sourceEntry);
|
ISourceRoot root = getSourceRoot(sourceEntry);
|
||||||
if (root != null) {
|
if (root != null) {
|
||||||
list.add(root);
|
list.add(root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
@ -746,7 +745,8 @@ public class CProject extends Openable implements ICProject {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CEM_TRANSLATIONUNIT:
|
case CEM_TRANSLATIONUNIT:
|
||||||
if (!memento.hasMoreTokens()) return this;
|
if (!memento.hasMoreTokens())
|
||||||
|
return this;
|
||||||
String tuName = memento.nextToken();
|
String tuName = memento.nextToken();
|
||||||
final IPath path= Path.fromPortableString(tuName);
|
final IPath path= Path.fromPortableString(tuName);
|
||||||
CElement tu= null;
|
CElement tu= null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue