You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 573797: Refactor code to use Charset instead of passing around Strings
This simplifies error handling as once you have a Charset you don't
have to worry about whether or not an UnsupportedEncodingException can
be thrown anymore. In addition it is a little easier on type safety.
Change-Id: I4292878a7c621f9d05fdb98f5c26a0ae8bfec062
Copy file name to clipboardExpand all lines: terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/control/ITerminalViewControl.java
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
packageorg.eclipse.tm.internal.terminal.control;
18
18
19
19
importjava.io.UnsupportedEncodingException;
20
+
importjava.nio.charset.Charset;
20
21
21
22
importorg.eclipse.swt.dnd.Clipboard;
22
23
importorg.eclipse.swt.graphics.Font;
@@ -38,18 +39,38 @@ public interface ITerminalViewControl {
38
39
*
39
40
* @see ITerminalControl#setEncoding(String)
40
41
* @since org.eclipse.tm.terminal 2.0
42
+
* @deprecated Use {@link #setCharset(Charset)} and do the error handling in the UI code.
Copy file name to clipboardExpand all lines: terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java
+29-28Lines changed: 29 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -156,8 +156,7 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
Copy file name to clipboardExpand all lines: terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/provisional/api/ITerminalControl.java
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
importjava.io.OutputStream;
20
20
importjava.io.UnsupportedEncodingException;
21
+
importjava.nio.charset.Charset;
21
22
22
23
importorg.eclipse.swt.widgets.Composite;
23
24
importorg.eclipse.swt.widgets.Shell;
@@ -83,9 +84,39 @@ public interface ITerminalControl {
83
84
* LANG on UNIX systems.
84
85
*
85
86
* @since org.eclipse.tm.terminal 2.0
87
+
* @deprecated Use {@link #setCharset(Charset)} and do the error handling in the UI code.
0 commit comments