org.openide.nodes.FilterNode.internalLookup()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(104)

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

FilterNode.internalLookup介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-nodes

/** Delegates to original, if no special lookup provided in constructor,
* Otherwise it delegates to the lookup. Never override this method
* if the lookup is provided in constructor.
*
* @param type the class to look for
* @return instance of that class or null if this class of cookie
*    is not supported
* @see Node#getCookie
*/
@Override
public <T extends Node.Cookie> T getCookie(Class<T> type) {
  Lookup l = internalLookup(true);
  if (l != null) {
    Object res = l.lookup(type);
    return type.isInstance(res) && res instanceof Node.Cookie ? type.cast(res) : null;
  }
  return original.getCookie(type);
}

代码示例来源:origin: org.netbeans.api/org-openide-nodes

init();
Lookup lkp = internalLookup(false);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Delegates to original, if no special lookup provided in constructor, 
* Otherwise it delegates to the lookup. Never override this method
* if the lookup is provided in constructor.
*
* @param type the class to look for
* @return instance of that class or null if this class of cookie
*    is not supported
* @see Node#getCookie
*/
public Node.Cookie getCookie (Class type) {
  Lookup l = internalLookup (true);
  if (l != null) {
    Object o = l.lookup (type);
    if (o instanceof Node.Cookie) {
      return (Node.Cookie)o;
    }
  }
  return original.getCookie (type);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Delegates to original, if no special lookup provided in constructor, 
* Otherwise it delegates to the lookup. Never override this method
* if the lookup is provided in constructor.
*
* @param type the class to look for
* @return instance of that class or null if this class of cookie
*    is not supported
* @see Node#getCookie
*/
public Node.Cookie getCookie (Class type) {
  Lookup l = internalLookup (true);
  if (l != null) {
    Object o = l.lookup (type);
    if (o instanceof Node.Cookie) {
      return (Node.Cookie)o;
    }
  }
  return original.getCookie (type);
}

代码示例来源:origin: org.netbeans.api/org-openide-nodes

Lookup lkp = internalLookup(false);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

init ();
Lookup lkp = internalLookup (false);
if (lkp instanceof FilterLookup) {
  ((FilterLookup)lkp).ownNode (this);

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

init ();
Lookup lkp = internalLookup (false);
if (lkp instanceof FilterLookup) {
  ((FilterLookup)lkp).ownNode (this);

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

Lookup lkp = internalLookup (false);
if (lkp instanceof FilterLookup) {
  ((FilterLookup)lkp).checkNode();

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

Lookup lkp = internalLookup (false);
if (lkp instanceof FilterLookup) {
  ((FilterLookup)lkp).checkNode();

相关文章

微信公众号

最新文章

更多