本文整理汇总了Java中com.rapidminer.gui.tools.SwingTools.showMessageDialog方法的典型用法代码示例。如果您正苦于以下问题:Java SwingTools.showMessageDialog方法的具体用法?Java SwingTools.showMessageDialog怎么用?Java SwingTools.showMessageDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rapidminer.gui.tools.SwingTools
的用法示例。
在下文中一共展示了SwingTools.showMessageDialog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pullResult
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
/**
* Pull result and show in-item or full result.
*/
void pullResult() {
if (status.isDone()) return;
// Pull the result if status is finished.
try {
if (status.isSucceeded()) {
ResultHolder resultHolder = client.getJobResult(status);
for (IIOObject obj : resultHolder.getResults()) {
resultObjects.add((IOObject) obj);
}
status.setDone();
} else if (status.isFailed() || status.error() != null) {
resultObjects.add(makeErrorInfo(status.error()));
status.setDone();
} else {
SwingTools.showMessageDialog("refreshed", status.session().id(), status.id());
}
} catch (Exception e) {
e.printStackTrace();
resultObjects.add(makeErrorInfo(e.toString()));
} finally {
setResult(resultObjects);
}
}
示例2: applyProperties
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
/** Applies the properties without saving them. */
public void applyProperties() {
for (ParameterType type : shownParameterTypes) {
String value = parameterValues.getProperty(type.getKey());
if (ParameterService.PARAMETER_CHECK.contains(type.getKey())) {
if (!(value.equals(ParameterService.getParameterValue(type.getKey()))))
SwingTools.showMessageDialog("please_restart_system",
I18N.getMessage(I18N.getSettingsBundle(), type.getKey() + ".title"));
}
ParameterService.setParameterValue(type, value);
}
}
示例3: toggleSelectionForInstallation
import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
public void toggleSelectionForInstallation(PackageDescriptor desc) {
if(desc != null) {
boolean select = !this.isSelectedForInstallation(desc);
if(this.isUpToDate(desc)) {
select = false;
}
if(!"RAPIDMINER_PLUGIN".equals(desc.getPackageTypeName()) && "STAND_ALONE".equals(desc.getPackageTypeName())) {
String longVersion = RapidMiner.getLongVersion();
String myVersion = ManagedExtension.normalizeVersion(longVersion);
String remoteVersion = ManagedExtension.normalizeVersion(desc.getVersion());
if(myVersion != null && remoteVersion.compareTo(myVersion) <= 0) {
select = false;
}
}
if("RIC".equals(desc.getLicenseName()) && !this.isPurchased(desc)) {
select = false;
SwingTools.showMessageDialog("purchase_package", new Object[]{desc.getName()});
}
this.selectionMap.put(desc, Boolean.valueOf(select));
this.setChanged();
this.notifyObservers(desc);
}
}