org.eclipse.swt.widgets.Tree.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中org.eclipse.swt.widgets.Tree.setEnabled()方法的一些代码示例,展示了Tree.setEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.setEnabled()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:setEnabled

Tree.setEnabled介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.openxma/xmartserver

/**
 * Completely enable/disable the menu.
 * @param enabled true: enable, false: disable.
 */
protected void setMenuEnabled(boolean enabled) {
  if(menuW==null) return;
  menuW.setEnabled(enabled);
}

代码示例来源:origin: org.codehaus.openxma/xmartclient

/**
 * Completely enable/disable the menu.
 * @param enabled true: enable, false: disable.
 */
protected void setMenuEnabled(boolean enabled) {
  if(menuW==null) return;
  menuW.setEnabled(enabled);
}

代码示例来源:origin: org.apache.directory.studio/ldapbrowser.common

/**
 * Enables or disables this widget.
 *
 * @param enabled true to enable this widget, false to disable this widget
 */
public void setEnabled( boolean enabled )
{
  tree.setEnabled( enabled );
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui

public void setEnabled(boolean enabled)
{
 tree_.setEnabled(enabled);
}

代码示例来源:origin: org.codehaus.openxma/xmartclient

/**
 * @see at.spardat.xma.mdl.UIDelegateClient#setEnabled(boolean)
 */
public void setEnabled (boolean what) {
  enabled_ = what;
  if (isUIAttached()) tree_.setEnabled(what);
}

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

public void widgetSelected(SelectionEvent e) {
    tree.getTree().setEnabled(false);
    // searchQueryData.setBookFiltering(false);
  }
});

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

public void widgetSelected(SelectionEvent e) {
    if (searchSelected.getSelection()) {
      tree.getTree().setEnabled(true);
      if (tocStale)
        updateTocs();
    }
  }
});

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

public void widgetSelected(SelectionEvent e) {
    tree.getTree().setEnabled(true);
    // searchQueryData.setBookFiltering(false);
  }
});

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

public void widgetSelected(SelectionEvent e) {
    if (searchAll.getSelection())
      tree.getTree().setEnabled(false);
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.cheatsheets

private void checkRadioButtons() {
  selectFileCombo.setEnabled(selectFileRadio.getSelection());
  browseFileButton.setEnabled(selectFileRadio.getSelection());
  if (showAllButton != null) {
    showAllButton.setEnabled(selectRegisteredRadio.getSelection());
  }
  treeViewer.getTree().setEnabled(selectRegisteredRadio.getSelection());
  selectUrlCombo.setEnabled(selectUrlRadio.getSelection());
  setOkButton();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.compare

private void setEnableWorkspacePatch(boolean enable) {
  fWorkspaceSelectLabel.setEnabled(enable);
  fTreeViewer.getTree().setEnabled(enable);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

public void setEnabled(boolean bool) {
 pomsViewer.getTree().setEnabled(bool);
 super.setEnabled(bool);
}

代码示例来源:origin: org.eclipse/org.eclipse.compare

private void setEnableWorkspacePatch(boolean enable) {
  fWorkspaceSelectLabel.setEnabled(enable);
  fTreeViewer.getTree().setEnabled(enable);
}

代码示例来源:origin: org.eclipse/org.eclipse.compare

public void handleEvent(Event event) {
    fShowError = true;
    if (useWorkspaceAsTarget.getSelection()) {
      fPatchTargets.getTree().setEnabled(false);
      fPatcher.setTarget(ResourcesPlugin.getWorkspace().getRoot());
    } else {
      fPatchTargets.getTree().setEnabled(true);
      fPatcher.setTarget(Utilities.getFirstResource(fPatchTargets.getSelection()));
    }
    updateWidgetEnablements();
  }
});

代码示例来源:origin: org.eclipse.egit/ui

private void updateEnablement() {
  setMessage(null);
  if (!platformSwitch.getSelection())
    setMessage(
        UIText.GitTraceConfigurationDialog_PlatformTraceDisabledMessage,
        IMessageProvider.INFORMATION);
  tv.getTree().setEnabled(platformSwitch.getSelection());
  updateApplyButton();
}

代码示例来源:origin: be.yildiz-games/module-window-swt

private TreeRoot(Tree tree, int width, int height, TreeElement... elements) {
  super();
  this.tree = tree;
  this.tree.setSize(width, height);
  for(TreeElement element : elements) {
    TreeItem item = new TreeItem(tree, 0);
    item.setText(element.title);
    element.getChildren().forEach(e -> generate(item, e));
    item.setExpanded(true);
    this.elementList.put(element.id, item);
  }
  tree.setEnabled(true);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.trace

@Override
  public void setEnabled(final boolean enabled) {

    filterComposite.setEnabled(enabled);
    getViewer().getTree().setEnabled(enabled);
    getFilterControl().setEnabled(enabled);
  }
}

代码示例来源:origin: org.eclipse.ui/trace

@Override
  public void setEnabled(final boolean enabled) {

    filterComposite.setEnabled(enabled);
    getViewer().getTree().setEnabled(enabled);
    getFilterControl().setEnabled(enabled);
  }
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
  public void setEnabled(boolean enabled) {
    if ((filterText.getStyle() & SWT.ICON_CANCEL) == 0) { // filter uses FilteredTree new look, not native
      int filterColor = enabled ? SWT.COLOR_LIST_BACKGROUND : SWT.COLOR_WIDGET_BACKGROUND;
      filterComposite.setBackground(getDisplay().getSystemColor(filterColor));
    }
    filterText.setEnabled(enabled);
    treeViewer.getTree().setEnabled(enabled);

  }
}

代码示例来源:origin: inspectIT/inspectIT

/**
 * Sets the enabled state of this part.
 */
private void setEnabledState() {
  toolBarManager.getControl().setEnabled(isEditable());
  treeViewer.getControl().getMenu().setEnabled(isEditable());
  treeViewer.getTree().setEnabled(isEditable());
}

相关文章

Tree类方法