当前位置: 首页>>代码示例>>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;未经允许,请勿转载。