mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ public class ExternalSystemRunConfiguration extends LocatableConfigurationBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
super.notifyTextAvailable(text, attributes);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ public class CapturingAnsiEscapesAwareProcessHandler extends CapturingProcessHan
|
||||
}
|
||||
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
addToOutput(text, attributes);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ public class ColoredProcessHandler extends KillableProcessHandler implements Ans
|
||||
* override coloredChunksAvailable method.
|
||||
*/
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
textAvailable(text, attributes);
|
||||
notifyColoredListeners(text, attributes);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ColoredRemoteProcessHandler<T extends RemoteProcess> extends BaseRe
|
||||
}
|
||||
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
super.notifyTextAvailable(text, attributes);
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ public interface Printer {
|
||||
AnsiEscapeDecoder decoder = new AnsiEscapeDecoder();
|
||||
decoder.escapeText(text, ProcessOutputTypes.STDOUT, new AnsiEscapeDecoder.ColoredTextAcceptor() {
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
ConsoleViewContentType contentType = ConsoleViewContentType.getConsoleViewType(attributes);
|
||||
if (contentType == null || contentType == ConsoleViewContentType.NORMAL_OUTPUT) {
|
||||
contentType = ConsoleViewContentType.getConsoleViewType(processOutputType);
|
||||
@@ -46,7 +46,7 @@ public interface Printer {
|
||||
AnsiEscapeDecoder decoder = new AnsiEscapeDecoder();
|
||||
decoder.escapeText(text, ProcessOutputTypes.STDOUT, new AnsiEscapeDecoder.ColoredTextAcceptor() {
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
ConsoleViewContentType viewContentType = ConsoleViewContentType.getConsoleViewType(attributes);
|
||||
if (viewContentType == null) {
|
||||
viewContentType = contentType;
|
||||
|
||||
@@ -391,7 +391,7 @@ public final class IpnbConnectionManager implements ProjectComponent {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void coloredTextAvailable(@NonNls String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull @NonNls String text, @NotNull Key attributes) {
|
||||
super.coloredTextAvailable(text, attributes);
|
||||
if (text.toLowerCase().contains("active kernels")) {
|
||||
serverStarted[0] = true;
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.jetbrains.python.debugger.PositionConverterProvider;
|
||||
import com.jetbrains.python.debugger.PyDebugProcess;
|
||||
import com.jetbrains.python.debugger.PyLocalPositionConverter;
|
||||
import com.jetbrains.python.debugger.PyPositionConverter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.OutputStream;
|
||||
@@ -56,7 +57,7 @@ public class PyConsoleDebugProcessHandler extends ProcessHandler implements Posi
|
||||
|
||||
processHandler.addColoredTextListener(new AnsiEscapeDecoder.ColoredTextAcceptor() {
|
||||
@Override
|
||||
public void coloredTextAvailable(String text, Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull String text, @NotNull Key attributes) {
|
||||
PyConsoleDebugProcessHandler.this.notifyTextAvailable(text, attributes);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -52,7 +52,7 @@ public class PyConsoleProcessHandler extends PythonProcessHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void coloredTextAvailable(final String text, final Key attributes) {
|
||||
public void coloredTextAvailable(@NotNull final String text, @NotNull final Key attributes) {
|
||||
String string = PyConsoleUtil.processPrompts(myConsoleView, StringUtil.convertLineSeparators(text));
|
||||
|
||||
myConsoleView.print(string, attributes);
|
||||
|
||||
Reference in New Issue
Block a user