当前位置: 首页>>代码示例>>Java>>正文


Java OpenAction.open方法代码示例

本文整理汇总了Java中com.rapidminer.gui.actions.OpenAction.open方法的典型用法代码示例。如果您正苦于以下问题:Java OpenAction.open方法的具体用法?Java OpenAction.open怎么用?Java OpenAction.open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.rapidminer.gui.actions.OpenAction的用法示例。


在下文中一共展示了OpenAction.open方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: openProcess

import com.rapidminer.gui.actions.OpenAction; //导入方法依赖的package包/类
/** Opens the process held by the given entry (in the background) and opens it. */
public static void openProcess(final ProcessEntry processEntry) {
	RepositoryProcessLocation processLocation = new RepositoryProcessLocation(processEntry.getLocation());
	if (RapidMinerGUI.getMainFrame().close()) {
		OpenAction.open(processLocation, true);
	}
	/*
	 * PRE FIX OF BUG 308: When opening process with double click all changes are discarded
	 * ProgressThread openProgressThread = new ProgressThread("open_process") {
	 *
	 * @Override public void run() { try { RepositoryProcessLocation processLocation = new
	 * RepositoryProcessLocation(processEntry.getLocation()); String xml =
	 * processEntry.retrieveXML(); try { final Process process = new Process(xml);
	 * process.setProcessLocation(processLocation); SwingUtilities.invokeLater(new Runnable() {
	 * public void run() { RapidMinerGUI.getMainFrame().setOpenedProcess(process, true,
	 * processEntry.getLocation().toString()); } }); } catch (Exception e) {
	 * RapidMinerGUI.getMainFrame().handleBrokenProxessXML(processLocation, xml, e); } } catch
	 * (Exception e1) { SwingTools.showSimpleErrorMessage("cannot_fetch_data_from_repository",
	 * e1); }
	 *
	 * } }; openProgressThread.start();
	 */
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:24,代码来源:RepositoryTree.java

示例2: openProcess

import com.rapidminer.gui.actions.OpenAction; //导入方法依赖的package包/类
private void openProcess() {
    this.owner.dispose();
    ProcessLocation location = (ProcessLocation)this.getSelectedValue();
    if(RapidMinerGUI.getMainFrame().close()) {
        GettingStartedDialog.logStats("open_process_card", "open_previous");
        OpenAction.open(location, true);
    }
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:9,代码来源:OpenProcessEntryList.java

示例3: createSelectButton

import com.rapidminer.gui.actions.OpenAction; //导入方法依赖的package包/类
private JComponent createSelectButton(final RepositoryLocationChooser chooser) {
    JButton selectButton = new JButton(new ResourceAction("getting_started.open", new Object[0]) {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent e) {
            if(RapidMinerGUI.getMainFrame().close()) {
                try {
                    GettingStartedDialog.logStats("open_process_card", "open_from_location");
                    String e1 = chooser.getRepositoryLocation();
                    if(e1 != null) {
                        try {
                            RepositoryLocation e11 = new RepositoryLocation(e1);
                            Entry entry = e11.locateEntry();
                            if(entry instanceof ProcessEntry) {
                                OpenAction.open(new RepositoryProcessLocation(e11), true);
                                OpenProcessCard.this.owner.dispose();
                            } else if(entry instanceof IOObjectEntry) {
                                OpenAction.showAsResult((IOObjectEntry)entry);
                                OpenProcessCard.this.owner.dispose();
                            } else {
                                SwingTools.showVerySimpleErrorMessage("no_data_or_process", new Object[0]);
                            }
                        } catch (MalformedRepositoryLocationException | RepositoryException var5) {
                            SwingTools.showSimpleErrorMessage("while_loading", var5, new Object[]{e1, var5.getMessage()});
                        }
                    }
                } catch (MalformedRepositoryLocationException var6) {
                    SwingTools.showSimpleErrorMessage("while_loading", var6, new Object[]{"", var6.getMessage()});
                }

            }
        }
    });
    selectButton.setFocusable(false);
    this.styleButton(selectButton);
    return selectButton;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:38,代码来源:OpenProcessCard.java

示例4: openProcess

import com.rapidminer.gui.actions.OpenAction; //导入方法依赖的package包/类
/** Opens the process held by the given entry (in the background) and opens it. */
public static void openProcess(final ProcessEntry processEntry) {
	RepositoryProcessLocation processLocation = new RepositoryProcessLocation(processEntry.getLocation());
	if (RapidMinerGUI.getMainFrame().close()) {
		OpenAction.open(processLocation, true);
	}
	/* PRE FIX OF BUG 308: When opening process with double click all changes are discarded
	ProgressThread openProgressThread = new ProgressThread("open_process") {
	    @Override
	    public void run() {
	         try {
				RepositoryProcessLocation processLocation = new RepositoryProcessLocation(processEntry.getLocation());
				String xml = processEntry.retrieveXML();
				try {
					final Process process = new Process(xml);
					process.setProcessLocation(processLocation);
					SwingUtilities.invokeLater(new Runnable() {
						public void run() {
							RapidMinerGUI.getMainFrame().setOpenedProcess(process, true, processEntry.getLocation().toString());
						}
					});
				} catch (Exception e) {
					RapidMinerGUI.getMainFrame().handleBrokenProxessXML(processLocation, xml, e);
				}
			} catch (Exception e1) {
				SwingTools.showSimpleErrorMessage("cannot_fetch_data_from_repository", e1);
			}

	    }
	};
	openProgressThread.start();*/
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:33,代码来源:RepositoryTree.java

示例5: openRecentProcess

import com.rapidminer.gui.actions.OpenAction; //导入方法依赖的package包/类
public void openRecentProcess() {
	int selectedIndex = recentFileList.getSelectedIndex();
	if (selectedIndex < 0)
		selectedIndex = 0;
	if (RapidMinerGUI.getRecentFiles().size() > 0)
		OpenAction.open(RapidMinerGUI.getRecentFiles().get(selectedIndex), true);
	else
		OpenAction.open();
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:WelcomeScreen.java


注:本文中的com.rapidminer.gui.actions.OpenAction.open方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。