本文整理汇总了Java中org.eclipse.swt.widgets.Display.wake方法的典型用法代码示例。如果您正苦于以下问题:Java Display.wake方法的具体用法?Java Display.wake怎么用?Java Display.wake使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.widgets.Display
的用法示例。
在下文中一共展示了Display.wake方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadAncestor
import org.eclipse.swt.widgets.Display; //导入方法依赖的package包/类
private void loadAncestor(IFile file) {
Display display = Display.getCurrent();
Runnable longJob = new Runnable() {
public void run() {
display.syncExec(new Runnable() {
public void run() {
ancestors = JDTManager.findAvailableExecutionContextAncestors(file);
}
});
display.wake();
}
};
BusyIndicator.showWhile(display, longJob);
}
示例2: loadVertices
import org.eclipse.swt.widgets.Display; //导入方法依赖的package包/类
/**
*
*/
private void loadVertices() {
Display display = Display.getCurrent();
Runnable longJob = new Runnable() {
public void run() {
display.syncExec(new Runnable() {
public void run() {
IFile ifile = ResourceManager.toIFile(selection);
String modelFileName = null;
try {
modelFileName = ResourceManager.getAbsolutePath(ifile);
context = GraphWalkerFacade.getContext(modelFileName);
updateUI();
} catch (Exception e) {
ResourceManager.logException(e);
JUnitGW4ETestUIPage.this.setErrorMessage(
"Unable to load the graph model. See error logs in the Error View.");
return;
}
comboReachedVertexViewer.setInput(_loadVertices(context));
}
});
display.wake();
}
};
BusyIndicator.showWhile(display, longJob);
}
示例3: loadAncestor
import org.eclipse.swt.widgets.Display; //导入方法依赖的package包/类
private void loadAncestor(IFile file) {
Display display = Display.getCurrent();
Runnable longJob = new Runnable() {
public void run() {
display.syncExec(new Runnable() {
public void run() {
ancestors = JDTManager.findAvailableExecutionContextAncestors(file);
}
});
display.wake();
}
};
BusyIndicator.showWhile(display, longJob);
}
示例4: loadBuildPolicies
import org.eclipse.swt.widgets.Display; //导入方法依赖的package包/类
/**
*
*/
public void loadBuildPolicies() {
Display display = Display.getCurrent();
Runnable longJob = new Runnable() {
public void run() {
display.syncExec(new Runnable() {
public void run() {
List<BuildPolicy> policies;
try {
if (file!=null) {
policies = BuildPolicyManager.getBuildPolicies(file, false);
} else {
policies = new ArrayList<BuildPolicy>();
}
} catch (Exception e) {
// DialogManager.displayErrorMessage(MessageUtil.getString("error"), e.getMessage(),e);
// throw new RuntimeException(e);
policies = new ArrayList<BuildPolicy>();
}
BuildPolicy[] input = policies.stream().filter(item -> !item.hasTimeDuratioStopCondition())
.toArray(BuildPolicy[]::new);
setInput(input);
}
});
display.wake();
}
};
BusyIndicator.showWhile(display, longJob);
}