本文整理了Java中net.sf.taverna.t2.workbench.helper.Helper.getInstance()
方法的一些代码示例,展示了Helper.getInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.getInstance()
方法的具体详情如下:
包路径:net.sf.taverna.t2.workbench.helper.Helper
类名称:Helper
方法名:getInstance
[英]Get the singleton instance of Helper. In theory there could be more than one.
[中]获取Helper的单例实例。理论上可能不止一个。
代码示例来源:origin: net.sf.taverna.t2.ui-api/helper-api
/**
* Show the help most associated with the specific component within the container.
*
* @param rootpanecontainer
* @param c
*/
static void showHelpWithinContainer(
final RootPaneContainer rootpanecontainer, final Component c) {
getInstance();
showHelp(c);
}
代码示例来源:origin: net.sf.taverna.t2.ui-api/helper-api
/**
* Show in the current dialog the entry (if any) corresponding to the
* specified id.
*
* @param id
*/
public static void showID(String id) {
getInstance();
URL result;
try {
result = HelpCollator.getURLFromID(id);
if (result == null) {
result = HelpCollator.getURLFromID("home");
}
Desktop.getDesktop().browse(result.toURI());
} catch (BadIDException e) {
logger.warn(e);
} catch (MalformedURLException e) {
logger.error(e);
} catch (IOException e) {
logger.error(e);
} catch (URISyntaxException e) {
logger.error(e);
}
}
代码示例来源:origin: net.sf.taverna.t2.workbench/helper
/**
* Show in the current dialog the entry (if any) corresponding to the
* specified id.
*
* @param id
*/
private static void showID(String id) {
getInstance();
if (dialog == null) {
dialog = createDialog(null);
}
dialog.setVisible(true);
if (!HelpCollator.isEmptyHelp()) {
jhelp.setCurrentID(id);
}
}
代码示例来源:origin: net.sf.taverna.t2.workbench/helper
/**
* Show the help most associated with the specific component within the container.
*
* @param rootpanecontainer
* @param c
*/
static void showHelpWithinContainer(
final RootPaneContainer rootpanecontainer, final Component c) {
getInstance();
if ((dialog == null) || !dialog.getOwner().equals(rootpanecontainer)) {
if (dialog != null) {
dialog.setVisible(false);
oldSize = dialog.getSize();
logger.info("Size of dialog was x=" + oldSize.width + " y="
+ oldSize.height);
}
if (dialogMap.containsKey(rootpanecontainer)) {
dialog = dialogMap.get(rootpanecontainer);
initializeDialog(dialog);
} else {
dialog = createDialog(rootpanecontainer);
}
}
showHelp(c);
}
内容来源于网络,如有侵权,请联系作者删除!