Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-05-23 09:19:07 +0000
committerLars Vogel2020-05-23 09:19:09 +0000
commitd6e4fc87c218d454dc1e5f39270ab1cd9451cbce (patch)
tree2f9a374aa95b10a92f3c3310464c4b2c6e87e5a1
parent8f2790c5fafaf3571d9a2815d3bf7543f1361776 (diff)
downloadeclipse.platform.ua-d6e4fc87c218d454dc1e5f39270ab1cd9451cbce.tar.gz
eclipse.platform.ua-d6e4fc87c218d454dc1e5f39270ab1cd9451cbce.tar.xz
eclipse.platform.ua-d6e4fc87c218d454dc1e5f39270ab1cd9451cbce.zip
Bug 560168 - Removes unnecessary log methods from help.ui activatorI20200524-0600I20200524-0220I20200523-1800
help.ui Change-Id: I003d7609d6628d2cb2ff2f08f03c0e5f0554bdc1 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.help.ui/src/org/eclipse/help/ui/internal/HelpUIPlugin.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/HelpUIPlugin.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/HelpUIPlugin.java
index c5aefe4aa..844a6e276 100644
--- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/HelpUIPlugin.java
+++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/HelpUIPlugin.java
@@ -14,9 +14,7 @@
*******************************************************************************/
package org.eclipse.help.ui.internal;
-import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.help.internal.base.BaseHelpSystem;
import org.eclipse.help.internal.base.HelpBasePlugin;
@@ -25,7 +23,6 @@ import org.eclipse.help.internal.dynamic.FilterResolver;
import org.eclipse.help.internal.search.federated.IndexerJob;
import org.eclipse.help.ui.internal.dynamic.FilterResolverExtension;
import org.eclipse.help.ui.internal.util.ErrorUtil;
-import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -44,23 +41,6 @@ public class HelpUIPlugin extends AbstractUIPlugin {
private static HelpUIPlugin plugin;
/**
- * Logs an Error message with an exception. Note that the message should already be localized to
- * proper locale. ie: Resources.getString() should already have been called
- */
- public static synchronized void logError(String message, Throwable ex) {
- logError(message, ex, true, false);
- }
-
- public static synchronized void logError(String message, Throwable ex, boolean log, boolean openDialog) {
- if (message == null)
- message = ""; //$NON-NLS-1$
- Status errorStatus = new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, ex);
- Platform.getLog(HelpUIPlugin.class).log(errorStatus);
- if (openDialog)
- ErrorDialog.openError(null, null, null, errorStatus);
- }
-
- /**
* Provides access to singleton
*
* @return HelpUIPlugin

Back to the top