Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2013-06-14 01:43:03 +0000
committerIgor Fedorenko2013-06-14 01:58:49 +0000
commitac409d8739ce5dbac53dccac5d56f37dcda323ac (patch)
treedced27c8dcc19d029af7f7d59e7148867e14c2d5
parent7f943c9e10b30a74763e6d0c0b7aea9386db4dfd (diff)
downloadm2e-core-ac409d8739ce5dbac53dccac5d56f37dcda323ac.tar.gz
m2e-core-ac409d8739ce5dbac53dccac5d56f37dcda323ac.tar.xz
m2e-core-ac409d8739ce5dbac53dccac5d56f37dcda323ac.zip
introduced AbstractRunnable convenience ICallable impl
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractRunnable.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractRunnable.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractRunnable.java
new file mode 100644
index 00000000..2545701b
--- /dev/null
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractRunnable.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Igor Fedorenko
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Igor Fedorenko - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.m2e.core.internal.embedder;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+
+import org.eclipse.m2e.core.embedder.ICallable;
+import org.eclipse.m2e.core.embedder.IMavenExecutionContext;
+
+
+/**
+ * @since 1.5
+ */
+public abstract class AbstractRunnable implements ICallable<Void> {
+ public final Void call(IMavenExecutionContext context, IProgressMonitor monitor) throws CoreException {
+ run(context, monitor);
+ return null;
+ }
+
+ protected abstract void run(IMavenExecutionContext context, IProgressMonitor monitor) throws CoreException;
+}

Back to the top