editor.setActivePage(BndEditor.WORKSPACE_PAGE);
} else {
editor.setActivePage((String) element);
}
} else if (element instanceof ExportedPackage) {
BundleContentPage contentsPage = (BundleContentPage) editor.setActivePage(BndEditor.CONTENT_PAGE);
if (contentsPage != null) {
contentsPage.setSelectedExport((ExportedPackage) element);
}
} else if (element instanceof PrivatePkg) {
BundleContentPage contentsPage = (BundleContentPage) editor.setActivePage(BndEditor.CONTENT_PAGE);
if (contentsPage != null) {
contentsPage.setSelectedPrivatePkg(((PrivatePkg) element).pkg);
}
} else if (element instanceof ImportPattern) {
BundleContentPage contentsPage = (BundleContentPage) editor.setActivePage(BndEditor.CONTENT_PAGE);
if (contentsPage != null) {
contentsPage.setSelectedImport((ImportPattern) element);
}
} else if (element instanceof PluginClause) {
WorkspacePage workspacePage = (WorkspacePage) editor.setActivePage(BndEditor.WORKSPACE_PAGE);
if (workspacePage != null)
workspacePage.setSelectedPlugin(((PluginClause) element).header);