@Override protected void createTabSection(CTabItem tabItem) { // Lazily create the other tabs switch (getFolder().indexOf(tabItem)) { case TAB_ENVIRONMENTS: if (fEnvironmentsSection == null) { fEnvironmentsSection = new ActivityEnvironmentsSection(getFolder()); fEnvironmentsSection.createControls(); tabItem.setControl(fEnvironmentsSection); fEnvironmentsSection.setInput(getInspectorProvider(), getElement()); } break; case TAB_INFORMATION: if (fInformationSection == null) { fInformationSection = new ActivityStructureInformationSection(getFolder()); fInformationSection.createControls(); tabItem.setControl(fInformationSection); fInformationSection.setInput(getInspectorProvider(), getElement()); } break; default: break; } }