本文整理了Java中org.eclipse.swt.widgets.Tree.isEnabled()
方法的一些代码示例,展示了Tree.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.isEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:isEnabled
暂无
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public boolean isEnabled()
{
return tree_.isEnabled();
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
/**
* @see at.spardat.xma.mdl.UIDelegateClient#isEnabled()
*/
public boolean isEnabled () {
if (isUIAttached()) {
//always take the state from the widget (if it was set directly on it) as this is the old behavior
enabled_ = tree_.isEnabled();
}
return enabled_;
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
protected boolean isEnabled() {
return fPluginTreeViewer.getTree().isEnabled();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
protected void updateButtonState() {
if (fButtonControls != null && isOkToUse(fTreeControl) && fTreeControl.isEnabled()) {
ISelection sel= fTree.getSelection();
for (int i= 0; i < fButtonControls.length; i++) {
Button button= fButtonControls[i];
if (isOkToUse(button)) {
button.setEnabled(isButtonEnabled(sel, i));
}
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected void updateButtonState() {
if (fButtonControls != null && isOkToUse(fTreeControl) && fTreeControl.isEnabled()) {
ISelection sel= fTree.getSelection();
for (int i= 0; i < fButtonControls.length; i++) {
Button button= fButtonControls[i];
if (isOkToUse(button)) {
button.setEnabled(isButtonEnabled(sel, i));
}
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
protected void updateButtonState() {
if (fButtonControls != null && isOkToUse(fTreeControl) && fTreeControl.isEnabled()) {
ISelection sel= fTree.getSelection();
for (int i= 0; i < fButtonControls.length; i++) {
Button button= fButtonControls[i];
if (isOkToUse(button)) {
button.setEnabled(isButtonEnabled(sel, i));
}
}
}
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
/**
* Returns <code>true</code> if the given menu item is enabled and <code>false</code>
* otherwise. A disabled menu item is not selectable from the user interface
* and draws with an inactive or "grayed" look. A menu item is disabled, if
* it is either directly disabled or any of its parents is disabled.
* @since 2.2.0
*/
protected boolean isMenuItemEnabled(IMenuItem item) {
if(!menuW.isEnabled()) return false;
if(item.isLocalEnabled()&&item.getParent()!=null) {
return isMenuItemEnabled(item.getParent());
}
return item.isLocalEnabled();
}
代码示例来源:origin: org.codehaus.openxma/xmartserver
/**
* Returns <code>true</code> if the given menu item is enabled and <code>false</code>
* otherwise. A disabled menu item is not selectable from the user interface
* and draws with an inactive or "grayed" look. A menu item is disabled, if
* it is either directly disabled or any of its parents is disabled.
* @since 2.2.0
*/
protected boolean isMenuItemEnabled(IMenuItem item) {
if(!menuW.isEnabled()) return false;
if(item.isLocalEnabled()&&item.getParent()!=null) {
return isMenuItemEnabled(item.getParent());
}
return item.isLocalEnabled();
}
代码示例来源:origin: org.apache.directory.studio/ldifeditor
/**
* Refreshes this viewer completely with information freshly obtained from this viewer's model.
*/
public void refresh()
{
final TreeViewer treeViewer = getTreeViewer();
if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )
{
// ISelection selection = treeViewer.getSelection();
// Object[] expandedElements = treeViewer.getExpandedElements();
if ( !treeViewer.getTree().isEnabled() )
{
treeViewer.getTree().setEnabled( true );
}
if ( ldifEditor != null )
{
if ( treeViewer.getInput() != ldifEditor.getLdifModel() )
{
treeViewer.setInput( ldifEditor.getLdifModel() );
}
}
treeViewer.refresh();
if ( isLinkedToLdapBrowser )
{
treeViewer.setAutoExpandLevel( 2 );
}
// treeViewer.setSelection(selection);
// treeViewer.setExpandedElements(expandedElements);
}
}
内容来源于网络,如有侵权,请联系作者删除!