Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-08-19 06:55:47 -0400
committerGerrit Code Review @ Eclipse.org2013-10-05 22:57:49 -0400
commitc42142e719054260af4d46e05f05c47536539bce (patch)
tree797072cfd898a9077e7e4cc7f8068e01e36f6870 /org.eclipse.mylyn.tasks.ui
parentcc756f38df59eea2345f9ea9f09346ca4a08c24c (diff)
downloadorg.eclipse.mylyn.tasks-c42142e719054260af4d46e05f05c47536539bce.tar.gz
org.eclipse.mylyn.tasks-c42142e719054260af4d46e05f05c47536539bce.tar.xz
org.eclipse.mylyn.tasks-c42142e719054260af4d46e05f05c47536539bce.zip
414461: improve warning logged when expected RichTextAttributeEditor was
not found Bug: 414461 Change-Id: Icd68efd4826808f4b45b9580645be2b75a637c8c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=414461 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
index 1969bbd74..225ef0072 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
@@ -25,6 +25,7 @@ import org.eclipse.mylyn.internal.tasks.ui.editors.RichTextEditor.StateChangedLi
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.widgets.Composite;
@@ -104,8 +105,9 @@ public class TaskEditorRichTextPart extends AbstractTaskEditorPart {
} else {
clazz = "<null>"; //$NON-NLS-1$
}
- StatusHandler.log(new Status(IStatus.WARNING, TasksUiPlugin.ID_PLUGIN,
- "Expected an instance of RichTextAttributeEditor, got \"" + clazz + "\"")); //$NON-NLS-1$ //$NON-NLS-2$
+ StatusHandler.log(new Status(IStatus.WARNING, TasksUiPlugin.ID_PLUGIN, NLS.bind(
+ "Expected an instance of RichTextAttributeEditor, got \"{0}\"", clazz), //$NON-NLS-1$
+ new IllegalArgumentException()));
return;
}

Back to the top