private void closeStackAllFileInfo() { Tree tree = this.getMainTree(); if (tree != null) { tree.clearAll(true); tree.setItemCount(0); } clearTable(); this.displayContent(null); }
/* * (non-Javadoc) * * @see org.eclipse.swt.widgets.Control#pack(boolean) */ @Override public void pack(boolean changed) { if (changed) { RootContainer root = RootContainer.getRoot(project); root.update(); table.clearAll(true); table.setItemCount(0); if (tableSelectionListener != null) { table.removeSelectionListener(tableSelectionListener); } setupClasspathInfo(table, root); makeChecksConsistentWithChildren(); expandAll(table.getItems()); if (tableSelectionListener == null) { tableSelectionListener = new TableSelectionListener(); table.addSelectionListener(tableSelectionListener); } } table.pack(changed); super.pack(changed); }