Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2009-09-07 20:34:11 -0400
committerDarin Wright2009-09-07 20:34:11 -0400
commit7f4eb22641e61c695c204f8e87a73b1156741679 (patch)
tree1f9bb047c33e3237a153d4444246099d9cced5b8 /org.eclipse.ui.console
parent3032ffd71a57d1818a759fa1fb21788fd1ad8381 (diff)
downloadeclipse.platform.debug-7f4eb22641e61c695c204f8e87a73b1156741679.tar.gz
eclipse.platform.debug-7f4eb22641e61c695c204f8e87a73b1156741679.tar.xz
eclipse.platform.debug-7f4eb22641e61c695c204f8e87a73b1156741679.zip
Bug 214425 - MessageConsole should have a constructor for setting the text encoding
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsole.java20
2 files changed, 19 insertions, 3 deletions
diff --git a/org.eclipse.ui.console/META-INF/MANIFEST.MF b/org.eclipse.ui.console/META-INF/MANIFEST.MF
index dbf3349cd..55ce4373d 100644
--- a/org.eclipse.ui.console/META-INF/MANIFEST.MF
+++ b/org.eclipse.ui.console/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.ui.console; singleton:=true
-Bundle-Version: 3.4.0.qualifier
+Bundle-Version: 3.5.0.qualifier
Bundle-Activator: org.eclipse.ui.console.ConsolePlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsole.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsole.java
index 9aa419935..b9f3071bf 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsole.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/MessageConsole.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -90,7 +90,23 @@ public class MessageConsole extends IOConsole {
* @since 3.4
*/
public MessageConsole(String name, String consoleType, ImageDescriptor imageDescriptor, boolean autoLifecycle) {
- super(name, consoleType, imageDescriptor, autoLifecycle);
+ this(name, consoleType, imageDescriptor, null, autoLifecycle);
+ }
+
+ /**
+ * Constructs a message console with the given name, type, image, encoding, and lifecycle specification.
+ *
+ * @param name the name to display for this console
+ * @param consoleType console type identifier or <code>null</code>
+ * @param imageDescriptor console image descriptor or <code>null</code>
+ * @param encoding the encoding that should be used to render the text, or <code>null</code>
+ * if the system default encoding should be used
+ * @param autoLifecycle whether lifecycle methods should be called automatically
+ * when added and removed from the console manager
+ * @since 3.5
+ */
+ public MessageConsole(String name, String consoleType, ImageDescriptor imageDescriptor, String encoding, boolean autoLifecycle) {
+ super(name, consoleType, imageDescriptor, encoding, autoLifecycle);
}
/**

Back to the top