mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
support container
This commit is contained in:
parent
dc66afff94
commit
36934f4bc9
3 changed files with 16 additions and 3 deletions
|
@ -65,6 +65,16 @@
|
|||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="icon" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public class CPathContainerWizard extends Wizard {
|
|||
allContainers.add(0, new ProjectContainerDescriptor(fFilterType));
|
||||
}
|
||||
fSelectionWizardPage = new CPathContainerSelectionPage(
|
||||
(IContainerDescriptor[]) allContainers.toArray(new IContainerDescriptor[0]));
|
||||
(IContainerDescriptor[])allContainers.toArray(new IContainerDescriptor[0]));
|
||||
addPage(fSelectionWizardPage);
|
||||
|
||||
// add as dummy, will not be shown
|
||||
|
@ -162,7 +162,8 @@ public class CPathContainerWizard extends Wizard {
|
|||
fContainerPage = getContainerPage(selected);
|
||||
return fContainerPage;
|
||||
} else if (page == fContainerPage) {
|
||||
if ( fContainerPage.getContainerEntries().length > 0 && fContainerPage.getContainerEntries()[0] != null) {
|
||||
if (fContainerPage.finish() && fContainerPage.getContainerEntries().length > 0
|
||||
&& fContainerPage.getContainerEntries()[0] != null) {
|
||||
fFilterPage.setParentEntry(fContainerPage.getContainerEntries()[0]);
|
||||
}
|
||||
return fFilterPage;
|
||||
|
|
|
@ -100,7 +100,9 @@ public class CPathFilterPage extends WizardPage {
|
|||
} else if (fParentEntry.getEntryKind() == IPathEntry.CDT_CONTAINER) {
|
||||
try {
|
||||
IPathEntryContainer container = CoreModel.getPathEntryContainer(fParentEntry.getPath(), fCElement.getCProject());
|
||||
fPaths = Arrays.asList(container.getPathEntries());
|
||||
if (container != null) {
|
||||
fPaths = Arrays.asList(container.getPathEntries());
|
||||
}
|
||||
} catch (CModelException e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue