當前位置: 首頁>>代碼示例>>Java>>正文


Java ProcessLocation.toString方法代碼示例

本文整理匯總了Java中com.rapidminer.ProcessLocation.toString方法的典型用法代碼示例。如果您正苦於以下問題:Java ProcessLocation.toString方法的具體用法?Java ProcessLocation.toString怎麽用?Java ProcessLocation.toString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.rapidminer.ProcessLocation的用法示例。


在下文中一共展示了ProcessLocation.toString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getIdentifier

import com.rapidminer.ProcessLocation; //導入方法依賴的package包/類
@Override
public String getIdentifier() {
	Process process = RapidMinerGUI.getMainFrame().getProcess();
	if (process != null) {
		ProcessLocation processLocation = process.getProcessLocation();
		if (processLocation != null) {
			return processLocation.toString();
		}
	}
	return null;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:12,代碼來源:OperatorTreePanel.java

示例2: setTitle

import com.rapidminer.ProcessLocation; //導入方法依賴的package包/類
/**
 * Sets the window title (RapidMiner + filename + an asterisk if process was modified.
 */
public void setTitle() {
	if (hostname == null) {
		try {
			hostname = " @ " + InetAddress.getLocalHost().getHostName();
		} catch (UnknownHostException e) {
			hostname = "";
		}
	}

	if (this.process != null) {
		ProcessLocation loc = process.getProcessLocation();
		if (loc != null) {
			String locString = loc.toString();
			// location string exceeding arbitrary number will be cut into repository name +
			// /.../ + process name
			if (locString.length() > MAX_LOCATION_TITLE_LENGTH) {
				locString = RepositoryLocation.REPOSITORY_PREFIX + process.getRepositoryLocation().getRepositoryName()
						+ RepositoryLocation.SEPARATOR + "..." + RepositoryLocation.SEPARATOR + loc.getShortName();
			}
			setTitle(locString + (changed ? "*" : "") + " \u2013 " + getFrameTitle());
		} else {
			setTitle("<new process" + (changed ? "*" : "") + "> \u2013 " + getFrameTitle());
		}
	} else {
		setTitle(getFrameTitle());
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:31,代碼來源:MainFrame.java

示例3: setTitle

import com.rapidminer.ProcessLocation; //導入方法依賴的package包/類
/**
 * Sets the window title (RapidMiner + filename + an asterisk if process was modified.
 */
public void setTitle() {
	if (hostname == null) {
		try {
			hostname = " @ " + InetAddress.getLocalHost().getHostName();
		} catch (UnknownHostException e) {
			hostname = "";
		}
	}

	Process process = getProcess();
	if (process != null) {
		ProcessLocation loc = process.getProcessLocation();
		String locString;
		if (loc != null) {
			locString = loc.toString();
			// location string exceeding arbitrary number will be cut into repository name +
			// /.../ + process name
			if (locString.length() > MAX_LOCATION_TITLE_LENGTH) {
				locString = RepositoryLocation.REPOSITORY_PREFIX + process.getRepositoryLocation().getRepositoryName()
						+ RepositoryLocation.SEPARATOR + "..." + RepositoryLocation.SEPARATOR + loc.getShortName();
			}
		} else {
			locString = "<new process";
		}
		setTitle(locString + (isChanged() ? "*" : "") + (loc == null ? ">" : "") + " \u2013 " + getFrameTitle()
				+ hostname);
	} else {
		setTitle(getFrameTitle() + hostname);
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:34,代碼來源:MainFrame.java

示例4: setTitle

import com.rapidminer.ProcessLocation; //導入方法依賴的package包/類
/**
 * Sets the window title (RapidMiner + filename + an asterisk if process was
 * modified.
 */
private void setTitle() {
	if (hostname == null) {
		try {
			hostname = " @ " + InetAddress.getLocalHost().getHostName();
		} catch (UnknownHostException e) {
			hostname = "";
		}
	}

	if (this.process != null) {
		ProcessLocation loc = process.getProcessLocation();
		if (loc != null) {
			String locString = loc.toString();
			// location string exceeding arbitrary number will be cut into repository name + /.../ + process name
			if (locString.length() > MAX_LOCATION_TITLE_LENGTH) {
				locString = RepositoryLocation.REPOSITORY_PREFIX +
						process.getRepositoryLocation().getRepositoryName() +
						RepositoryLocation.SEPARATOR +
						"..." +
						RepositoryLocation.SEPARATOR +
						loc.getShortName();
			}
			setTitle(locString + (changed ? "*" : "") + " \u2013 " + TITLE + hostname);
		} else {
			setTitle("<new process" + (changed ? "*" : "") + "> \u2013 " + TITLE + hostname);
		}
	} else {
		setTitle(TITLE + hostname);
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:35,代碼來源:MainFrame.java


注:本文中的com.rapidminer.ProcessLocation.toString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。