Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-07 14:56:23 +0000
committerMilos Kleint2011-01-07 14:56:23 +0000
commitf7ddfed7c5f5a0fb72ddfb27db020886cad22110 (patch)
treee9fc8775d32124a0f48847460961de6558bb52a0 /org.eclipse.m2e.editor
parent2fd5c40f2634bed1124144b653a195b1e3c48972 (diff)
downloadm2e-core-f7ddfed7c5f5a0fb72ddfb27db020886cad22110.tar.gz
m2e-core-f7ddfed7c5f5a0fb72ddfb27db020886cad22110.tar.xz
m2e-core-f7ddfed7c5f5a0fb72ddfb27db020886cad22110.zip
add hint about where to visually edit dependency exclusions
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java2
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/messages.properties1
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java12
3 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
index 7fe40fed..e334694c 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
@@ -145,6 +145,8 @@ public class Messages extends NLS {
public static String DependenciesComposite_sectionExclusions;
+ public static String DependenciesPage_exclusions_link;
+
public static String DependenciesPage_find;
public static String DependenciesPage_form;
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/messages.properties b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/messages.properties
index 56b944e8..4dc50bf1 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/messages.properties
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/messages.properties
@@ -62,6 +62,7 @@ DependenciesComposite_section_ExclusionDetails=Exclusion Details
DependenciesComposite_sectionDependencies=Dependencies
DependenciesComposite_sectionDependencyManagement=Dependency Management
DependenciesComposite_sectionExclusions=Exclusions
+DependenciesPage_exclusions_link=To manage your transitive dependency exclusions, please use the <a>Dependency Hierarchy</a> page.
DependenciesPage_find=Find
DependenciesPage_form=Dependencies
DependenciesPage_title=Dependencies
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
index 08347b0c..f07b8241 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
@@ -24,9 +24,13 @@ import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.m2e.model.edit.pom.DependencyManagement;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Link;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
@@ -69,6 +73,14 @@ public class DependenciesPage extends MavenPomEditorPage {
dependenciesComposite = new DependenciesComposite(form.getBody(), this, SWT.NONE, pomEditor);
dependenciesComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
toolkit.adapt(dependenciesComposite);
+ Link link = new Link(managedForm.getForm().getBody(), SWT.NONE);
+ toolkit.adapt(link, true, true);
+ link.setText(Messages.DependenciesPage_exclusions_link);
+ link.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ pomEditor.setActivePage(IMavenConstants.PLUGIN_ID + ".pom.dependencyTree"); //$NON-NLS-1$
+ }
+ });
searchControl = new SearchControl(Messages.DependenciesPage_find, managedForm);

Back to the top