mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Cosmetics.
This commit is contained in:
parent
1f33df1de4
commit
379dcc20dd
1 changed files with 7 additions and 5 deletions
|
@ -111,7 +111,7 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TranslationUnit(ICElement parent, URI uri, String idType) {
|
public TranslationUnit(ICElement parent, URI uri, String idType) {
|
||||||
super(parent, (IResource)null, uri.toString(), ICElement.C_UNIT);
|
super(parent, (IResource) null, uri.toString(), ICElement.C_UNIT);
|
||||||
location= uri;
|
location= uri;
|
||||||
setContentTypeID(idType);
|
setContentTypeID(idType);
|
||||||
}
|
}
|
||||||
|
@ -120,8 +120,8 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IInclude createInclude(String includeName, boolean isStd, ICElement sibling, IProgressMonitor monitor)
|
public IInclude createInclude(String includeName, boolean isStd, ICElement sibling,
|
||||||
throws CModelException {
|
IProgressMonitor monitor) throws CModelException {
|
||||||
CreateIncludeOperation op = new CreateIncludeOperation(includeName, isStd, this);
|
CreateIncludeOperation op = new CreateIncludeOperation(includeName, isStd, this);
|
||||||
if (sibling != null) {
|
if (sibling != null) {
|
||||||
op.createBefore(sibling);
|
op.createBefore(sibling);
|
||||||
|
@ -130,7 +130,8 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
return getInclude(includeName);
|
return getInclude(includeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IUsing createUsing(String usingName, boolean isDirective, ICElement sibling, IProgressMonitor monitor) throws CModelException {
|
public IUsing createUsing(String usingName, boolean isDirective, ICElement sibling,
|
||||||
|
IProgressMonitor monitor) throws CModelException {
|
||||||
CreateIncludeOperation op = new CreateIncludeOperation(usingName, isDirective, this);
|
CreateIncludeOperation op = new CreateIncludeOperation(usingName, isDirective, this);
|
||||||
if (sibling != null) {
|
if (sibling != null) {
|
||||||
op.createBefore(sibling);
|
op.createBefore(sibling);
|
||||||
|
@ -139,7 +140,8 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
return getUsing(usingName);
|
return getUsing(usingName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public INamespace createNamespace(String namespace, ICElement sibling, IProgressMonitor monitor) throws CModelException {
|
public INamespace createNamespace(String namespace, ICElement sibling,
|
||||||
|
IProgressMonitor monitor) throws CModelException {
|
||||||
CreateNamespaceOperation op = new CreateNamespaceOperation(namespace, this);
|
CreateNamespaceOperation op = new CreateNamespaceOperation(namespace, this);
|
||||||
if (sibling != null) {
|
if (sibling != null) {
|
||||||
op.createBefore(sibling);
|
op.createBefore(sibling);
|
||||||
|
|
Loading…
Add table
Reference in a new issue