本文整理了Java中org.openide.nodes.Node.getHelpCtx()
方法的一些代码示例,展示了Node.getHelpCtx()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getHelpCtx()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:getHelpCtx
[英]Get context help associated with this node.
[中]获取与此节点关联的上下文帮助。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
public HelpCtx getHelpCtx() {
return original.getHelpCtx();
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/**
* @return HelpCtx of the underlying node.
* @since 3.38
*/
public HelpCtx getHelpCtx() {
return node.getHelpCtx();
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public HelpCtx getHelpCtx() {
for (int i = 0; i < original.length; i++) {
if (original[i].getHelpCtx() != HelpCtx.DEFAULT_HELP) {
return original[i].getHelpCtx();
}
}
return HelpCtx.DEFAULT_HELP;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public HelpCtx getHelpCtx () {
for (int i = 0; i < original.length; i++) {
if (original[i].getHelpCtx() != HelpCtx.DEFAULT_HELP) {
return original[i].getHelpCtx();
}
}
return HelpCtx.DEFAULT_HELP;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public HelpCtx getHelpCtx () {
for (int i = 0; i < original.length; i++) {
if (original[i].getHelpCtx() != HelpCtx.DEFAULT_HELP) {
return original[i].getHelpCtx();
}
}
return HelpCtx.DEFAULT_HELP;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/**
* @return HelpCtx of the underlying node.
* @since 3.38
*/
public HelpCtx getHelpCtx() {
return node.getHelpCtx ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/**
* @return HelpCtx of the underlying node.
* @since 3.38
*/
public HelpCtx getHelpCtx() {
return node.getHelpCtx ();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf-navigation
@Override
public HelpCtx getHelpCtx() {
return original.getHelpCtx();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public HelpCtx getHelpCtx () {
return original.getHelpCtx ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public HelpCtx getHelpCtx () {
return original.getHelpCtx ();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors
public HelpCtx getHelpCtx() {
Node[] selNodes = getExplorerManager().getSelectedNodes();
if( selNodes != null && selNodes.length == 1 )
return selNodes[0].getHelpCtx();
else
return HelpCtx.DEFAULT_HELP;
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
HelpCtx attempt = sel[i].getHelpCtx();
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Utility method to get context help from a node selection.
* Tries to find context helps for selected nodes.
* If there are some, and they all agree, uses that.
* In all other cases, uses the supplied generic help.
*
* @param sel a list of nodes to search for help in
* @param def the default help to use if they have none or do not agree
* @return a help context
* @since 4.40
*/
public static HelpCtx getHelpCtx (Node[] sel, HelpCtx def) {
HelpCtx result = null;
for (int i = 0; i < sel.length; i++) {
HelpCtx attempt = sel[i].getHelpCtx ();
if (attempt != null && ! attempt.equals (HelpCtx.DEFAULT_HELP)) {
if (result == null || result.equals (attempt)) {
result = attempt;
} else {
// More than one found, and they conflict. Get general help on the Explorer instead.
result = null;
break;
}
}
}
return result != null ? result : def;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Utility method to get context help from a node selection.
* Tries to find context helps for selected nodes.
* If there are some, and they all agree, uses that.
* In all other cases, uses the supplied generic help.
*
* @param sel a list of nodes to search for help in
* @param def the default help to use if they have none or do not agree
* @return a help context
* @since 4.40
*/
public static HelpCtx getHelpCtx (Node[] sel, HelpCtx def) {
HelpCtx result = null;
for (int i = 0; i < sel.length; i++) {
HelpCtx attempt = sel[i].getHelpCtx ();
if (attempt != null && ! attempt.equals (HelpCtx.DEFAULT_HELP)) {
if (result == null || result.equals (attempt)) {
result = attempt;
} else {
// More than one found, and they conflict. Get general help on the Explorer instead.
result = null;
break;
}
}
}
return result != null ? result : def;
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Constructor that permits specification of the action on the node,
* and permits overriding the name and icon of the menu.
*
* @param node node to represent
* @param action action called when node selected
* @param setName <code>true</code> to automatically set the name and icon of the item
*/
public Menu(final Node node, NodeAcceptor action, boolean setName) {
this.node = node;
this.action = action;
if (setName) {
MenuItem.initialize(this, node);
HelpCtx help = node.getHelpCtx();
if ((help != null) && !help.equals(HelpCtx.DEFAULT_HELP) && (help.getHelpID() != null)) {
HelpCtx.setHelpIDString(this, help.getHelpID());
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Constructor that permits specification of the action on the node,
* and permits overriding the name and icon of the menu.
*
* @param node node to represent
* @param action action called when node selected
* @param setName <code>true</code> to automatically set the name and icon of the item
*/
public Menu (final Node node, NodeAcceptor action, boolean setName) {
this.node = node;
this.action = action;
if (setName) {
MenuItem.initialize (this, node);
HelpCtx help = node.getHelpCtx ();
if (help != null && ! help.equals (HelpCtx.DEFAULT_HELP) && help.getHelpID () != null)
HelpCtx.setHelpIDString (this, help.getHelpID ());
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Constructor that permits specification of the action on the node,
* and permits overriding the name and icon of the menu.
*
* @param node node to represent
* @param action action called when node selected
* @param setName <code>true</code> to automatically set the name and icon of the item
*/
public Menu (final Node node, NodeAcceptor action, boolean setName) {
this.node = node;
this.action = action;
if (setName) {
MenuItem.initialize (this, node);
HelpCtx help = node.getHelpCtx ();
if (help != null && ! help.equals (HelpCtx.DEFAULT_HELP) && help.getHelpID () != null)
HelpCtx.setHelpIDString (this, help.getHelpID ());
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
HelpCtx ctx = nodes[i].getHelpCtx();
内容来源于网络,如有侵权,请联系作者删除!