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