public void generate(IndentWriter writer) { writer.println("# of SubViews: " + tabViews.size()); writer.indent(); try { for (Iterator<UISWTViewCore> iter = tabViews.iterator(); iter.hasNext(); ) { UISWTViewCore view = iter.next(); writer.println(view.getTitleID() + ": " + view.getFullTitle()); } } finally { writer.exdent(); } }
// TabViews Functions public void addTabView(UISWTViewCore view) { if (view == null || tabFolder == null) { return; } triggerTabViewDataSourceChanged(view); CTabItem item = new CTabItem(tabFolder, SWT.NULL); item.setData("IView", view); Messages.setLanguageText(item, view.getTitleID()); view.initialize(tabFolder); item.setControl(view.getComposite()); tabViews.add(view); }