Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public EditorInputGraphProvider(EditorTopComponent editor) {

@Override
public InputGraph getGraph() {
if (editor != null && editor.isOpened()) {
if (editor != null) {
return editor.getModel().getGraphToView();
} else {
return null;
Expand All @@ -58,14 +58,14 @@ public InputGraph getGraph() {

@Override
public void setSelectedNodes(Set<InputNode> nodes) {
if (editor != null && editor.isOpened()) {
if (editor != null) {
editor.setSelectedNodes(nodes);
}
}

@Override
public Iterable<InputGraph> searchBackward() {
if (editor != null && editor.isOpened()) {
if (editor != null) {
return editor.getModel().getGraphsBackward();
} else {
return null;
Expand All @@ -74,7 +74,7 @@ public Iterable<InputGraph> searchBackward() {

@Override
public Iterable<InputGraph> searchForward() {
if (editor != null && editor.isOpened()) {
if (editor != null) {
return editor.getModel().getGraphsForward();
} else {
return null;
Expand Down