Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-01 20:35:20 +0000
committerMatthew Piggott2011-04-01 20:35:20 +0000
commiteb0ded0d3457c3183339a91b067142a0caf7be68 (patch)
treebcd2cab549dd27c908f191ea0e78f469e4772ef7 /org.eclipse.m2e.discovery
parent0bf2796ebbad582100158a0cfa41cd3d17829f9d (diff)
downloadm2e-core-eb0ded0d3457c3183339a91b067142a0caf7be68.tar.gz
m2e-core-eb0ded0d3457c3183339a91b067142a0caf7be68.tar.xz
m2e-core-eb0ded0d3457c3183339a91b067142a0caf7be68.zip
Bug 335721 - Add a link to the discovery UI from the SCM wizard
Diffstat (limited to 'org.eclipse.m2e.discovery')
-rw-r--r--org.eclipse.m2e.discovery/plugin.xml6
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java27
2 files changed, 33 insertions, 0 deletions
diff --git a/org.eclipse.m2e.discovery/plugin.xml b/org.eclipse.m2e.discovery/plugin.xml
index ed8c5a2f..04b83705 100644
--- a/org.eclipse.m2e.discovery/plugin.xml
+++ b/org.eclipse.m2e.discovery/plugin.xml
@@ -49,4 +49,10 @@
</adapter>
</factory>
</extension>
+ <extension
+ point="org.eclipse.m2e.core.ui.discoveryLaunch">
+ <launcher
+ class="org.eclipse.m2e.internal.discovery.MavenDiscoveryLauncher">
+ </launcher>
+ </extension>
</plugin>
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java
new file mode 100644
index 00000000..5f896513
--- /dev/null
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Sonatype, Inc.
+ * 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:
+ * Sonatype, Inc. - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.m2e.internal.discovery;
+
+import org.eclipse.m2e.core.ui.internal.IMavenDiscovery;
+import org.eclipse.swt.widgets.Shell;
+
+
+@SuppressWarnings("restriction")
+public class MavenDiscoveryLauncher implements IMavenDiscovery {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.m2e.core.ui.internal.IMavenDiscovery#launch(org.eclipse.swt.widgets.Shell)
+ */
+ public void launch(Shell shell) {
+ MavenDiscovery.launchWizard(shell);
+ }
+
+}

Back to the top