* Ericsson - Modified for additional features in DSF Reference implementation
*******************************************************************************/
+/*
+ * 2016-07-07 Gun Kim gune.kim@samsung.com
+ * Modifications by S-Core Co., LTD.
+ * 1. Added a way of hiding warning messages in process of debugging a program.
+ */
+
package org.eclipse.cdt.dsf.mi.service.command;
import java.io.IOException;
private PipedOutputStream fMIOutLogPipe;
private boolean fDisposed = false;
+ /// Tizen
+ private static boolean canShowWarningMsg = false;
/**
* Counter for tracking console commands sent by services.
fMIOutConsolePipe = miOutConsolePipe;
fMIInConsolePipe = miInConsolePipe;
fMIOutLogPipe = miOutLogPipe;
- fMIInLogPipe = miInLogPipe;
+ fMIInLogPipe = miInLogPipe;
}
protected DsfSession getSession() { return fSession; }
} catch (IOException e) {
}
} else if (oobr instanceof MILogStreamOutput) {
- MILogStreamOutput out = (MILogStreamOutput) oobr;
- String str = out.getString();
- if (str != null) {
- try {
- if (fMIOutLogPipe != null) {
- fMIOutLogPipe.write(str.getBytes());
- fMIOutLogPipe.flush();
- }
- } catch (IOException e) {
+ /* Tizen */
+// MILogStreamOutput out = (MILogStreamOutput) oobr;
+// String str = out.getString();
+// if (str != null) {
+// try {
+// if (fMIOutLogPipe != null) {
+// fMIOutLogPipe.write(str.getBytes());
+// fMIOutLogPipe.flush();
+// }
+// } catch (IOException e) {
+// }
+// }
+ if (canShowWarningMsg) {
+ MILogStreamOutput out = (MILogStreamOutput) oobr;
+ String str = out.getString();
+ if (str != null) {
+ try {
+ if (fMIOutLogPipe != null) {
+ fMIOutLogPipe.write(str.getBytes());
+ fMIOutLogPipe.flush();
+ }
+ } catch (IOException e) {
+ }
}
}
+ /* ===== */
}
}
}
+
+ /* Tizen */
+ public static void setShowWarningMsg(boolean canShowWarningMsg) {
+ AbstractCLIProcess.canShowWarningMsg = canShowWarningMsg;
+ }
+ /* ===== */
@Override
public void commandQueued(ICommandToken token) {