當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。