本文整理匯總了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);
}
}