Skip to content

Commit

Permalink
checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crissNb committed Feb 12, 2024
1 parent 2094392 commit 8ffc9e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import org.gecko.view.inspector.element.label.InspectorLabel;
import org.gecko.viewmodel.PortViewModel;

/** Represents a type of {@link LabeledInspectorElement}. Contains an {@link InspectorLabel} and an {@link InspectorVisibilityComboBox}. */
/**
* Represents a type of {@link LabeledInspectorElement}. Contains an {@link InspectorLabel} and an
* {@link InspectorVisibilityComboBox}.
*/
public class InspectorVisibilityPicker extends LabeledInspectorElement {

public InspectorVisibilityPicker(ActionManager actionManager, PortViewModel viewModel) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/gecko/view/views/EditorView.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public EditorView(
this.currentView = new Tab("Error_Name", currentViewPane);
currentView.textProperty().bind(Bindings.createStringBinding(() -> {
String name = viewModel.getCurrentSystem().getName();
return name + (viewModel.isAutomatonEditor() ? " (" + ResourceHandler.getString("View", "automaton") + ")" :
" (" + ResourceHandler.getString("View", "system") + ")");
return name + (viewModel.isAutomatonEditor() ? " (" + ResourceHandler.getString("View", "automaton") + ")"
: " (" + ResourceHandler.getString("View", "system") + ")");
}, viewModel.getCurrentSystem().getNameProperty()));

this.worldSizeUpdateListener = (observable, oldValue, newValue) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ private void addNavigateSystemShortcuts() {
try {
SystemViewModel systemViewModel = (SystemViewModel) focusedElement;
actionManager.run(actionFactory.createViewSwitchAction(systemViewModel, false));
} catch (ClassCastException ignored) {
} catch (ClassCastException e) {
e.printStackTrace();
}
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/gecko/viewmodel/GeckoViewModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private void setupNewEditorViewModel(SystemViewModel nextSystemViewModel, boolea
if (nextSystemViewModel.getTarget().getParent() != null) {
parent = (SystemViewModel) getViewModelElement(nextSystemViewModel.getTarget().getParent());
}
EditorViewModel editorViewModel = viewModelFactory.createEditorViewModel(nextSystemViewModel, parent, isAutomatonEditor);
EditorViewModel editorViewModel =
viewModelFactory.createEditorViewModel(nextSystemViewModel, parent, isAutomatonEditor);
openedEditorsProperty.add(editorViewModel);
setCurrentEditor(editorViewModel);
}
Expand Down

0 comments on commit 8ffc9e9

Please sign in to comment.