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


Java ProcessLogTab类代码示例

本文整理汇总了Java中com.rapidminer.gui.processeditor.ProcessLogTab的典型用法代码示例。如果您正苦于以下问题:Java ProcessLogTab类的具体用法?Java ProcessLogTab怎么用?Java ProcessLogTab使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: clearNow

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
private void clearNow(boolean alsoClearLogs) {
	List<Dockable> toClose = new LinkedList<>();
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX + "process_")
				|| alsoClearLogs && state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			toClose.add(state.getDockable());
		}
	}
	if (!toClose.isEmpty() || !dataTables.isEmpty()) {
		// fix for "delete old results" dialog after breakpoint resume
		if (closeResultsPerRun) {
			DockableResultDisplay.this.dataTables.clear();
			// updateDataTables();
			for (Dockable dockable : toClose) {
				if (dockable instanceof ResultTab) {
					((ResultTab) dockable).freeResources();
				} else if (dockable instanceof ProcessLogTab) {
					((ProcessLogTab) dockable).freeResources();
				}
				// RapidMinerGUI.getMainFrame().getDockingDesktop().close(dockable);
				RapidMinerGUI.getMainFrame().getPerspectiveController().removeFromAllPerspectives(dockable);
			}
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:26,代码来源:DockableResultDisplay.java

示例2: clearNow

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
private void clearNow(boolean alsoClearLogs) {
	List<Dockable> toClose = new LinkedList<>();
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX + "process_")
				|| alsoClearLogs && state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			toClose.add(state.getDockable());
		}
	}
	if (!toClose.isEmpty() || !dataTables.isEmpty()) {
		// fix for "delete old results" dialog after breakpoint resume
		if (closeResultsPerRun) {
			this.dataTables.clear();
			// updateDataTables();
			for (Dockable dockable : toClose) {
				if (dockable instanceof ResultTab) {
					((ResultTab) dockable).freeResources();
				} else if (dockable instanceof ProcessLogTab) {
					((ProcessLogTab) dockable).freeResources();
				}
				// RapidMinerGUI.getMainFrame().getDockingDesktop().close(dockable);
				RapidMinerGUI.getMainFrame().getPerspectiveController().removeFromAllPerspectives(dockable);
			}
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:26,代码来源:RemoteResultDisplay.java

示例3: clearNow

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
private void clearNow(boolean alsoClearLogs) {
	List<Dockable> toClose = new LinkedList<>();
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX + "process_")
				|| alsoClearLogs && state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			toClose.add(state.getDockable());
		}
	}
	if (!toClose.isEmpty() || !dataTables.isEmpty()) {
		// fix for "delete old results" dialog after breakpoint resume
		if (closeResultsPerRun) {
			DockableResultDisplay.this.dataTables.clear();
			// updateDataTables();
			for (Dockable dockable : toClose) {
				if (dockable instanceof ResultTab) {
					((ResultTab) dockable).freeResources();
				} else if (dockable instanceof ProcessLogTab) {
					((ProcessLogTab) dockable).freeResources();
				}
				// RapidMinerGUI.getMainFrame().getDockingDesktop().close(dockable);
				RapidMinerGUI.getMainFrame().getPerspectiveController().removeFromAllPerspectives(dockable);
			}
			getDockKey().resetPropertyChangeListener();
		}
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:27,代码来源:DockableResultDisplay.java

示例4: clearNow

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
private void clearNow(boolean alsoClearLogs) {
	List<Dockable> toClose = new LinkedList<Dockable>();
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX+"process_") ||
				(alsoClearLogs && state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX))) {
			toClose.add(state.getDockable());
		}										
	}
	if ((!toClose.isEmpty() || !dataTables.isEmpty()) ) {
		// fix for "delete old results" dialog after breakpoint resume
		if (closeResultsPerRun) {
			DockableResultDisplay.this.dataTables.clear();
			//updateDataTables();
			for (Dockable dockable : toClose) {							
				if (dockable instanceof ResultTab) {
					((ResultTab) dockable).freeResources();
				} else if (dockable instanceof ProcessLogTab) {
					((ProcessLogTab) dockable).freeResources();
				}
				//RapidMinerGUI.getMainFrame().getDockingDesktop().close(dockable);
				RapidMinerGUI.getMainFrame().getPerspectives().removeFromAllPerspectives(dockable);
			}								
		}
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:26,代码来源:DockableResultDisplay.java

示例5: clearAll

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
@Override
public void clearAll() {
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX)
				|| state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			RapidMinerGUI.getMainFrame().getPerspectiveController().removeFromAllPerspectives(state.getDockable());
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:10,代码来源:DockableResultDisplay.java

示例6: clearAll

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
@Override
public void clearAll() {
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX)
				|| state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			// TODO: this action only clears all opened result displays,
			//       no need to remove all job statuses and cancel job
			// MidasClientFactory.getClientInstance().stopJob();

			RapidMinerGUI.getMainFrame().getPerspectiveController().removeFromAllPerspectives(state.getDockable());
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:RemoteResultDisplay.java

示例7: clearAll

import com.rapidminer.gui.processeditor.ProcessLogTab; //导入依赖的package包/类
@Override
public void clearAll() {
	for (DockableState state : RapidMinerGUI.getMainFrame().getDockingDesktop().getContext().getDockables()) {
		if (state.getDockable().getDockKey().getKey().startsWith(ResultTab.DOCKKEY_PREFIX) ||
				state.getDockable().getDockKey().getKey().startsWith(ProcessLogTab.DOCKKEY_PREFIX)) {
			RapidMinerGUI.getMainFrame().getPerspectives().removeFromAllPerspectives(state.getDockable());
		}										
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:DockableResultDisplay.java


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