Lines Matching refs:runnable
82 public static boolean runIgnore(RunnableEx runnable) {
84 runnable.run();
96 public static boolean runLog(RunnableEx runnable) {
98 runnable.run();
109 public static void runRethrow(RunnableEx runnable) {
111 runnable.run();
120 public static void runRethrow(RunnableEx runnable, String format, Object... args) {
122 runnable.run();
133 public static void runDesignTime(RunnableEx runnable) throws Exception {
137 runnable.run();
147 public static <T> T runDesignTime(RunnableObjectEx<T> runnable) throws Exception {
151 return runnable.runObject();
163 * Runs given {@link RunnableEx} inside of UI thread, using {@link Display#syncExec(Runnable)}.
167 public static boolean runLogUI(final RunnableEx runnable) {
169 Display.getDefault().syncExec(new Runnable() {
172 success[0] = ExecutionUtils.runLog(runnable);
179 * Runs given {@link RunnableEx} inside of UI thread, using {@link Display#syncExec(Runnable)}.
181 public static void runRethrowUI(final RunnableEx runnable) {
182 Display.getDefault().syncExec(new Runnable() {
185 ExecutionUtils.runRethrow(runnable);
191 * Runs given {@link RunnableEx} within UI thread using {@link Display#asyncExec(Runnable)}. Logs
194 public static void runAsync(final RunnableEx runnable) {
195 Display.getDefault().asyncExec(new Runnable() {
198 ExecutionUtils.runLog(runnable);
204 * Runs given {@link RunnableEx} inside of UI thread, using {@link Display#syncExec(Runnable)}.
207 public static <T> T runObjectUI(final RunnableObjectEx<T> runnable) {
212 result[0] = runObject(runnable);
220 * {@link Display#asyncExec(Runnable)}.
222 public static void runLogLater(final RunnableEx runnable) {
223 Display.getDefault().asyncExec(new Runnable() {
226 ExecutionUtils.runLog(runnable);
241 public static <T> T runObject(RunnableObjectEx<T> runnable) {
243 return runnable.runObject();
254 public static <T> T runObject(RunnableObjectEx<T> runnable, String format, Object... args) {
256 return runnable.runObject();
269 public static <T> T runObjectIgnore(RunnableObjectEx<T> runnable, T defaultValue) {
271 return runnable.runObject();
283 public static <T> T runObjectLog(RunnableObjectEx<T> runnable, T defaultValue) {
285 return runnable.runObject();