Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-04-06 13:12:08 -0400
committerIgor Fedorenko2011-04-06 13:12:29 -0400
commit0f43bd7699a6efb6b9cf10384ec0c5729fb32761 (patch)
treee55ceb44b3ead3f98eff60126382765bef21ed38 /org.eclipse.m2e.editor
parent115790c06bd53ab6f8a2a002a18065191116ea98 (diff)
downloadm2e-core-0f43bd7699a6efb6b9cf10384ec0c5729fb32761.tar.gz
m2e-core-0f43bd7699a6efb6b9cf10384ec0c5729fb32761.tar.xz
m2e-core-0f43bd7699a6efb6b9cf10384ec0c5729fb32761.zip
do not expose internal classes through public MavenPlugin
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java7
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java1
2 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
index 0803243b..012121ed 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
@@ -45,6 +45,7 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.ui.internal.dialogs.AbstractMavenDialog;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.CompoundOperation;
@@ -406,9 +407,9 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
model = MavenPlugin.getDefault().getMavenModelManager().readMavenModel(facade.getPom());
} catch(CoreException e) {
Object[] arguments = {facade.getPom(), e.getLocalizedMessage()};
- Status status = new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, NLS.bind(
- Messages.ManageDependenciesDialog_pomReadingError, arguments));
- MavenPlugin.getDefault().getLog().log(status);
+ String message = NLS.bind(Messages.ManageDependenciesDialog_pomReadingError, arguments);
+ Status status = new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, message);
+ LOG.info(message, e);
updateStatus(status);
error = true;
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
index f100b7b9..623b2057 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
@@ -55,6 +55,7 @@ import org.eclipse.jface.text.source.IVerticalRuler;
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.core.IMavenConstants;
import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.MavenProjectChangedEvent;

Back to the top