protected void handleTreeExpand(TreeEvent event) { // Fix for Bug 271744 because windows expanding doesn't fire a focus lost if( isCellEditorActive() ) { applyEditorValue(); } if (contentProviderIsLazy) { if (event.item.getData() != null) { Item[] children = getChildren(event.item); if (children.length == 1 && children[0].getData()==null) { // we have a dummy child node, ask for an updated child // count virtualLazyUpdateChildCount(event.item, children.length); } fireTreeExpanded(new TreeExpansionEvent(this, event.item .getData())); } return; } super.handleTreeExpand(event); }
protected void perform(TreeEvent event, boolean expanded) { Object data = event.item.getData(); if (data instanceof EPlanElement) { EPlanElement element = (EPlanElement) data; PlanUtils.executeExpansionOperation(element, expanded); } }
@Override protected void handleTreeExpand(TreeEvent event) { super.handleTreeExpand(event); Object parent = event.item.getData(); Object[] children = getRawChildren(parent); for (Object child : children) { refresh(child, true); } }
/** * Handles a tree expand event from the SWT widget. * * @param event * the SWT tree event */ protected void handleTreeExpand(TreeEvent event) { createChildren(event.item); if (event.item.getData() != null) { fireTreeExpanded(new TreeExpansionEvent(this, event.item.getData())); } }
protected void handleTreeCollapse(TreeEvent event) { // Fix for Bug 271744 because windows is firing collapse before // focus lost event if( isCellEditorActive() ) { applyEditorValue(); } super.handleTreeCollapse(event); }
public void treeCollapsed( TreeEvent e ) { Item item = (Item) e.item; if ( groupBackup != null ) groupBackup.updateCollapsedStatus( groupViewer, item.getData( ) ); }
public void treeCollapsed( TreeEvent e ) { Item item = (Item) e.item; if ( dataBackup != null ) dataBackup.updateCollapsedStatus( dataFieldsViewer, item.getData( ) ); }
public void treeExpanded( TreeEvent e ) { Item item = (Item) e.item; if ( dataBackup != null ) dataBackup.updateExpandedStatus( dataFieldsViewer, item.getData( ) ); }
public void treeCollapsed(TreeEvent e) { // System.out.println(e.data); // TreeItem[]items = ((Tree)e.getSource()).getSelection(); // for(int i = 0; i < items.length; i++) // treeViewer.refresh(treeViewer.getInput(), true); treeViewer.update(treeViewer.getInput(), new String[] { "changelabel" }); }
public void treeExpanded(TreeEvent e) { // TreeItem[]items = ((Tree)e.getSource()).getSelection(); // for(int i = 0; i < items.length; i++) // treeViewer.refresh(treeViewer.getInput(), true); // treeViewer.refresh(items[i].getData(), true); // treeViewer.update(items[i].getData(), new String[]{"changelabel"}); treeViewer.update(treeViewer.getInput(), new String[] { "changelabel" }); }
@Override public void treeExpanded(TreeEvent event) { perform(event, true); }
@Override public void treeCollapsed(TreeEvent event) { perform(event, false); }
/** * {@inheritDoc} * * @since 3.7 */ @Override protected void handleTreeExpand(TreeEvent event) { super.handleTreeExpand(event); expandConstructorNode(); }
private void selectedTreeCollapsed(TreeEvent event) { TreeItem item = (TreeItem) event.item; ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData(); fireGroupCollapsed(columnGroupEntry); }
private void selectedTreeExpanded(TreeEvent event) { TreeItem item = (TreeItem) event.item; ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData(); fireGroupExpanded(columnGroupEntry); }
public void treeCollapsed(TreeEvent e) { update((Tree) e.widget); }
public void treeExpanded(TreeEvent e) { update((Tree) e.widget); }
public void treeExpanded( TreeEvent e ) { Item item = (Item) e.item; if ( groupBackup != null ) groupBackup.updateExpandedStatus( groupViewer, item.getData( ) ); }
/** * Handles a tree collapse event from the SWT widget. * * @param event * the SWT tree event */ protected void handleTreeCollapse(TreeEvent event) { if (event.item.getData() != null) { fireTreeCollapsed(new TreeExpansionEvent(this, event.item.getData())); } }