mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -190,16 +190,16 @@ public abstract class ToolbarDecorator implements CommonActionsPanel.ListenerFac
|
||||
return setToolbarBorder(new CustomLineBorder(top, left, bottom, right));
|
||||
}
|
||||
|
||||
public ToolbarDecorator addExtraAction(AnActionButton action) {
|
||||
if (action != null) {
|
||||
myExtraActions.add(action);
|
||||
}
|
||||
public ToolbarDecorator addExtraAction(@NotNull AnActionButton action) {
|
||||
myExtraActions.add(action);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ToolbarDecorator addExtraActions(AnActionButton... actions) {
|
||||
for (AnActionButton action : actions) {
|
||||
addExtraAction(action);
|
||||
if (action != null) {
|
||||
addExtraAction(action);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
+1
-1
@@ -317,7 +317,7 @@ public class JavaFxArtifactPropertiesEditor extends ArtifactPropertiesEditor {
|
||||
|
||||
@Override
|
||||
protected boolean isEmpty(JavaFxManifestAttribute element) {
|
||||
return element.getName().isEmpty() && element.getValue().isEmpty();
|
||||
return StringUtil.isEmpty(element.getName()) && StringUtil.isEmpty(element.getValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@ package com.intellij.tasks.generic;
|
||||
|
||||
import com.intellij.execution.util.ListTableWithButtons;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.util.ui.AbstractTableCellEditor;
|
||||
import com.intellij.util.ui.ColumnInfo;
|
||||
import com.intellij.util.ui.ListTableModel;
|
||||
@@ -208,7 +209,7 @@ public class ManageTemplateVariablesDialog extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
protected boolean isEmpty(TemplateVariable element) {
|
||||
return element.getName().isEmpty() && element.getValue().isEmpty();
|
||||
return StringUtil.isEmpty(element.getName()) && StringUtil.isEmpty(element.getValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -109,7 +109,11 @@ public class RemoteDebugger implements ProcessDebugger {
|
||||
public String handshake() throws PyDebuggerException {
|
||||
final VersionCommand command = new VersionCommand(this, LOCAL_VERSION, SystemInfo.isUnix ? "UNIX" : "WIN");
|
||||
command.execute();
|
||||
return command.getRemoteVersion();
|
||||
String version = command.getRemoteVersion();
|
||||
if (version != null) {
|
||||
version = version.trim();
|
||||
}
|
||||
return version;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user