Java 类org.eclipse.swt.events.TreeEvent 实例源码

项目:gef-gwt    文件:TreeViewer.java   
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);
}
项目:OpenSPIFe    文件:PlanElementTreeListener.java   
protected void perform(TreeEvent event, boolean expanded) {
    Object data = event.item.getData();
    if (data instanceof EPlanElement) {
        EPlanElement element = (EPlanElement) data;
        PlanUtils.executeExpansionOperation(element, expanded);
    }
}
项目:OpenSPIFe    文件:PlanRulesTreeViewer.java   
@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);
    }
}
项目:gef-gwt    文件:AbstractTreeViewer.java   
/**
 * 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()));
    }
}
项目:gef-gwt    文件:TreeViewer.java   
protected void handleTreeCollapse(TreeEvent event) {
    // Fix for Bug 271744 because windows is firing collapse before
    // focus lost event
    if( isCellEditorActive() ) {
        applyEditorValue();
    }

    super.handleTreeCollapse(event);
}
项目:birt    文件:CubeGroupContent.java   
public void treeCollapsed( TreeEvent e )
{
    Item item = (Item) e.item;
    if ( groupBackup != null )
        groupBackup.updateCollapsedStatus( groupViewer, item.getData( ) );

}
项目:birt    文件:CubeGroupContent.java   
public void treeCollapsed( TreeEvent e )
{
    Item item = (Item) e.item;
    if ( dataBackup != null )
        dataBackup.updateCollapsedStatus( dataFieldsViewer,
                item.getData( ) );

}
项目:birt    文件:CubeGroupContent.java   
public void treeExpanded( TreeEvent e )
{
    Item item = (Item) e.item;
    if ( dataBackup != null )
        dataBackup.updateExpandedStatus( dataFieldsViewer,
                item.getData( ) );
}
项目:dLabPro-Plugin    文件:UASRManualTocView.java   
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" });

}
项目:dLabPro-Plugin    文件:UASRManualTocView.java   
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" });

}
项目:OpenSPIFe    文件:PlanElementTreeListener.java   
@Override
public void treeExpanded(TreeEvent event) {
    perform(event, true);
}
项目:OpenSPIFe    文件:PlanElementTreeListener.java   
@Override
public void treeCollapsed(TreeEvent event) {
    perform(event, false);
}
项目:Eclipse-Postfix-Code-Completion    文件:CallHierarchyViewer.java   
/**
 * {@inheritDoc}
 * 
 * @since 3.7
 */
@Override
protected void handleTreeExpand(TreeEvent event) {
    super.handleTreeExpand(event);
    expandConstructorNode();
}
项目:translationstudio8    文件:ColumnChooserDialog.java   
private void selectedTreeCollapsed(TreeEvent event) {
    TreeItem item = (TreeItem) event.item;
    ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
    fireGroupCollapsed(columnGroupEntry);
}
项目:translationstudio8    文件:ColumnChooserDialog.java   
private void selectedTreeExpanded(TreeEvent event) {
    TreeItem item = (TreeItem) event.item;
    ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
    fireGroupExpanded(columnGroupEntry);
}
项目:gef-gwt    文件:TreeColumnLayout.java   
public void treeCollapsed(TreeEvent e) {
    update((Tree) e.widget);
}
项目:gef-gwt    文件:TreeColumnLayout.java   
public void treeExpanded(TreeEvent e) {
    update((Tree) e.widget);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:CallHierarchyViewer.java   
/**
 * {@inheritDoc}
 * 
 * @since 3.7
 */
@Override
protected void handleTreeExpand(TreeEvent event) {
    super.handleTreeExpand(event);
    expandConstructorNode();
}
项目:tmxeditor8    文件:ColumnChooserDialog.java   
private void selectedTreeCollapsed(TreeEvent event) {
    TreeItem item = (TreeItem) event.item;
    ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
    fireGroupCollapsed(columnGroupEntry);
}
项目:tmxeditor8    文件:ColumnChooserDialog.java   
private void selectedTreeExpanded(TreeEvent event) {
    TreeItem item = (TreeItem) event.item;
    ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
    fireGroupExpanded(columnGroupEntry);
}
项目:birt    文件:CubeGroupContent.java   
public void treeExpanded( TreeEvent e )
{
    Item item = (Item) e.item;
    if ( groupBackup != null )
        groupBackup.updateExpandedStatus( groupViewer, item.getData( ) );
}
项目:gef-gwt    文件:AbstractTreeViewer.java   
/**
 * 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()));
    }
}