本文整理汇总了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;
}
示例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());
}
}
示例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);
}
}
示例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);
}
}