diff --git a/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java b/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java index 5c7e4724459..1b24728d2d4 100644 --- a/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java +++ b/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java @@ -37,6 +37,7 @@ import org.eclipse.core.runtime.IExtension; import org.eclipse.core.runtime.IExtensionPoint; import org.eclipse.core.runtime.IExtensionRegistry; +import org.eclipse.core.runtime.ILog; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.RegistryFactory; @@ -431,7 +432,7 @@ public void setTheme(String themeId, boolean restore) { } } // Theme not found (e.g. it was uninstalled); fall back to default - Platform.getLog(ThemeEngine.class) + ILog.of(ThemeEngine.class) .warn("Theme '" + themeId + "' not found; falling back to default theme."); //$NON-NLS-1$ //$NON-NLS-2$ if (!E4_DEFAULT_THEME_ID.equals(themeId)) { setTheme(E4_DEFAULT_THEME_ID, restore); diff --git a/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/preferences/GenericEditorPreferencePage.java b/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/preferences/GenericEditorPreferencePage.java index 5680eb73f05..489e806d8a4 100644 --- a/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/preferences/GenericEditorPreferencePage.java +++ b/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/preferences/GenericEditorPreferencePage.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -import org.eclipse.core.runtime.Platform; +import org.eclipse.core.runtime.ILog; import org.eclipse.core.runtime.preferences.PreferenceMetadata; import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.dialogs.IMessageProvider; @@ -75,7 +75,7 @@ public boolean performOk() { try { scopedStore.save(); } catch (IOException e) { - Platform.getLog(getClass()).error("Cannot to save preferences.", e); //$NON-NLS-1$ + ILog.of(getClass()).error("Cannot save preferences.", e); //$NON-NLS-1$ return false; } }