Skip to content

Commit ee67bdd

Browse files
committed
реформат кода
1 parent b21f9fb commit ee67bdd

File tree

5 files changed

+17
-19
lines changed

5 files changed

+17
-19
lines changed

src/com/ss/editor/Editor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void simpleInitApp() {
249249
postProcessor = new FilterPostProcessor(this.assetManager);
250250
postProcessor.initialize(renderManager, viewPort);
251251

252-
if(editorConfig.isFXAA()) {
252+
if (editorConfig.isFXAA()) {
253253

254254
final FXAAFilter filter = new FXAAFilter();
255255
filter.setEnabled(true);
@@ -308,9 +308,9 @@ public void update() {
308308
final EditorFXScene scene = getScene();
309309
final Parent root = scene.getRoot();
310310

311-
if(inputManager.isCursorVisible() && root.isMouseTransparent()) {
311+
if (inputManager.isCursorVisible() && root.isMouseTransparent()) {
312312
executorManager.addFXTask(() -> root.setMouseTransparent(false));
313-
} else if(!inputManager.isCursorVisible() && !root.isMouseTransparent()) {
313+
} else if (!inputManager.isCursorVisible() && !root.isMouseTransparent()) {
314314
executorManager.addFXTask(() -> root.setMouseTransparent(true));
315315
}
316316

src/com/ss/editor/manager/FileIconManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public Image getIcon(final Path path, int size) {
9999
LOGGER.warning(e);
100100
}
101101

102-
if(Files.isDirectory(path)) {
102+
if (Files.isDirectory(path)) {
103103
contentType = "folder";
104-
} else if(contentType == null) {
104+
} else if (contentType == null) {
105105
final String extension = FileUtils.getExtension(path);
106106
contentType = EXTENSION_TO_CONTENT_TYPE.get(extension);
107107
}

src/com/ss/editor/ui/component/asset/AssetComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private void processEvent(final CreatedFileEvent event) {
5555
final ResourceTree resourceTree = getResourceTree();
5656
resourceTree.notifyCreated(file);
5757

58-
if(event.isNeedSelect()) {
58+
if (event.isNeedSelect()) {
5959
resourceTree.expandTo(file, true);
6060
}
6161
}

src/com/ss/editor/ui/component/creator/impl/MaterialFileCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ protected void createSettings(final VBox root) {
8484

8585
final SingleSelectionModel<String> selectionModel = materialTypeComboBox.getSelectionModel();
8686

87-
if(definitions.contains("Common/MatDefs/Light/PBRLighting.j3md")) {
87+
if (definitions.contains("Common/MatDefs/Light/PBRLighting.j3md")) {
8888
selectionModel.select("Common/MatDefs/Light/PBRLighting.j3md");
89-
} else if(definitions.contains("Common/MatDefs/Light/Lighting.j3md")) {
89+
} else if (definitions.contains("Common/MatDefs/Light/Lighting.j3md")) {
9090
selectionModel.select("Common/MatDefs/Light/Lighting.j3md");
9191
} else {
9292
selectionModel.select(definitions.first());

src/com/ss/editor/ui/dialog/GraphicsDialog.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,13 @@ public void show(final Window owner) {
9393
}
9494

9595
/**
96-
*
9796
* @param ignoreListeners Игнорировать ли слушателей.
9897
*/
9998
private void setIgnoreListeners(boolean ignoreListeners) {
10099
this.ignoreListeners = ignoreListeners;
101100
}
102101

103102
/**
104-
*
105103
* @return Игнорировать ли слушателей.
106104
*/
107105
private boolean isIgnoreListeners() {
@@ -235,7 +233,7 @@ public Label getMessageLabel() {
235233
*/
236234
private void validate() {
237235

238-
if(isIgnoreListeners()) {
236+
if (isIgnoreListeners()) {
239237
return;
240238
}
241239

@@ -257,19 +255,19 @@ private void validate() {
257255
final CheckBox fxaaFilterCheckBox = getFXAAFilterCheckBox();
258256
final boolean fxaa = fxaaFilterCheckBox.isSelected();
259257

260-
if(currentScreenSize != screenSize) {
258+
if (currentScreenSize != screenSize) {
261259
needRestart++;
262260
}
263261

264-
if(currentFXAA != fxaa) {
262+
if (currentFXAA != fxaa) {
265263
needRestart++;
266264
}
267265

268-
if(anisotropy != currentAnisotropy) {
266+
if (anisotropy != currentAnisotropy) {
269267
needRestart++;
270268
}
271269

272-
if(needRestart > 0) {
270+
if (needRestart > 0) {
273271
messageLabel.setText(Messages.GRAPHICS_DIALOG_MESSAGE);
274272
} else {
275273
messageLabel.setText(StringUtils.EMPTY);
@@ -339,15 +337,15 @@ private void processOk() {
339337
final CheckBox fxaaFilterCheckBox = getFXAAFilterCheckBox();
340338
final boolean fxaa = fxaaFilterCheckBox.isSelected();
341339

342-
if(currentScreenSize != screenSize) {
340+
if (currentScreenSize != screenSize) {
343341
needRestart++;
344342
}
345343

346-
if(currentFXAA != fxaa) {
344+
if (currentFXAA != fxaa) {
347345
needRestart++;
348346
}
349347

350-
if(anisotropy != currentAnisotropy) {
348+
if (anisotropy != currentAnisotropy) {
351349
needRestart++;
352350
}
353351

@@ -356,7 +354,7 @@ private void processOk() {
356354
editorConfig.setScreenSize(screenSize);
357355
editorConfig.save();
358356

359-
if(needRestart > 0) {
357+
if (needRestart > 0) {
360358
System.exit(2);
361359
}
362360
}

0 commit comments

Comments
 (0)