Java Code Examples for org.eclipse.xtext.xbase.lib.Procedures#Procedure0
The following examples show how to use
org.eclipse.xtext.xbase.lib.Procedures#Procedure0 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClosureClient.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public Runnable asRunnable(final Procedures.Procedure0 procedure) { return new Runnable() { @Override public void run() { procedure.apply(); } }; }
Example 2
Source File: ClosureClient.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public Procedures.Procedure0 asProcedure(final Runnable runnable) { return new Procedures.Procedure0() { @Override public void apply() { runnable.run(); } }; }
Example 3
Source File: ClosureClient.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public Runnable asRunnable(final Procedures.Procedure0 procedure) { return new Runnable() { @Override public void run() { procedure.apply(); } }; }
Example 4
Source File: ClosureClient.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public Procedures.Procedure0 asProcedure(final Runnable runnable) { return new Procedures.Procedure0() { @Override public void apply() { runnable.run(); } }; }
Example 5
Source File: ClosureClient.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
public Runnable asRunnable(final Procedures.Procedure0 procedure) { return new Runnable() { @Override public void run() { procedure.apply(); } }; }
Example 6
Source File: ClosureClient.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
public Procedures.Procedure0 asProcedure(final Runnable runnable) { return new Procedures.Procedure0() { @Override public void apply() { runnable.run(); } }; }
Example 7
Source File: ClosureClient.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
public Runnable asRunnable(final Procedures.Procedure0 procedure) { return new Runnable() { @Override public void run() { procedure.apply(); } }; }
Example 8
Source File: ClosureClient.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
public Procedures.Procedure0 asProcedure(final Runnable runnable) { return new Procedures.Procedure0() { @Override public void apply() { runnable.run(); } }; }
Example 9
Source File: ProblemSupport.java From xtext-lib with Eclipse Public License 2.0 | 2 votes |
/** * @param validationCallback * a callback that will be executed in the validation phase, when * all transformations have been done and types are inferred. * @since 2.7 */ void validateLater(Procedures.Procedure0 validationCallback);
Example 10
Source File: TypeResourceUnloaderTest.java From xtext-eclipse with Eclipse Public License 2.0 | 2 votes |
/** * Same as {@code waitForEvent(procedure, true} which is that an {@link ElementChangedEvent} is expected. * @see #waitForEvent(Procedure0, boolean) */ protected void waitForEvent(final Procedures.Procedure0 procedure) throws InterruptedException { waitForEvent(procedure, true); }