Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java8
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java4
2 files changed, 3 insertions, 9 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
index 085ea144..8bc99dbf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
@@ -25,7 +25,6 @@ import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.eclipse.core.resources.IProject;
-import org.eclipse.jface.text.IDocument;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -70,16 +69,12 @@ public class EditDependencyDialog extends AbstractMavenDialog {
protected Text systemPathText;
-// protected Button selectSystemPathButton;
-
protected Button optionalButton;
private Dependency dependency;
private final MavenProject mavenproject;
- private final IDocument document;
-
private final boolean dependencyManagement;
private Operation resultOperation;
@@ -91,11 +86,10 @@ public class EditDependencyDialog extends AbstractMavenDialog {
* @param project can be null, only used for indexer search as scope
* @param mavenProject
*/
- public EditDependencyDialog(Shell parent, boolean dependencyManagement, IProject project, MavenProject mavenProject, IDocument document) {
+ public EditDependencyDialog(Shell parent, boolean dependencyManagement, IProject project, MavenProject mavenProject) {
super(parent, EditDependencyDialog.class.getName());
this.project = project;
this.mavenproject = mavenProject;
- this.document = document;
setShellStyle(getShellStyle() | SWT.RESIZE);
setTitle(Messages.EditDependencyDialog_title);
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
index 739ddd30..df6cfd90 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
@@ -204,7 +204,7 @@ public class DependenciesComposite extends Composite {
if (selection instanceof Dependency) {
Dependency dependency = (Dependency) selection;
EditDependencyDialog d = new EditDependencyDialog(getShell(), false, editorPage
- .getProject(), editorPage.getPomEditor().getMavenProject(), editorPage.getPomEditor().getDocument());
+ .getProject(), editorPage.getPomEditor().getMavenProject());
d.setDependency(toApacheDependency(dependency));
if(d.open() == Window.OK) {
try {
@@ -409,7 +409,7 @@ public class DependenciesComposite extends Composite {
public void widgetSelected(SelectionEvent e) {
Dependency dependency = dependencyManagementEditor.getSelection().get(0);
EditDependencyDialog d = new EditDependencyDialog(getShell(), true, editorPage
- .getProject(), editorPage.getPomEditor().getMavenProject(), editorPage.getPomEditor().getDocument());
+ .getProject(), editorPage.getPomEditor().getMavenProject());
d.setDependency(toApacheDependency(dependency));
if(d.open() == Window.OK) {
try {

Back to the top