本文整理了Java中org.openide.nodes.FilterNode.internalLookup()
方法的一些代码示例,展示了FilterNode.internalLookup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilterNode.internalLookup()
方法的具体详情如下:
包路径:org.openide.nodes.FilterNode
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!