Skip to content

Commit 8bf2fc0

Browse files
committed
removed debug, incremented version.
1 parent 4d04bf4 commit 8bf2fc0

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# jMonkeyBuilder 1.6.0 #
1+
# jMonkeyBuilder 1.6.1 #
22
### It's 3D Editor to prepare/work/create graphics content for jMonkeyEngine 3.2 ###
33

44
[![Join the chat at https://gitter.im/jME3-SpaceShift-Editor/Lobby](https://badges.gitter.im/jME3-SpaceShift-Editor/Lobby.svg)](https://gitter.im/jME3-SpaceShift-Editor/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

app.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply plugin: 'idea'
1313
apply plugin: 'org.junit.platform.gradle.plugin'
1414

1515
group = 'com.spaceshift'
16-
version = '1.6.0'
16+
version = '1.6.1'
1717

1818
sourceCompatibility = 1.8
1919
targetCompatibility = 1.8

src/main/java/com/ss/editor/config/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class Config {
4242
* The editor's version.
4343
*/
4444
@NotNull
45-
public static final Version APP_VERSION = new Version("1.6.0");
45+
public static final Version APP_VERSION = new Version("1.6.1");
4646

4747
/**
4848
* The string version.

src/main/java/com/ss/editor/ui/component/asset/tree/ResourceTree.java

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import static com.ss.editor.ui.util.UiUtils.hasFileInClipboard;
66
import static com.ss.rlib.util.ObjectUtils.notNull;
77
import com.ss.editor.annotation.BackgroundThread;
8-
import com.ss.editor.annotation.FxThread;
98
import com.ss.editor.annotation.FromAnyThread;
9+
import com.ss.editor.annotation.FxThread;
1010
import com.ss.editor.config.EditorConfig;
1111
import com.ss.editor.manager.ExecutorManager;
1212
import com.ss.editor.ui.FXConstants;
@@ -21,7 +21,6 @@
2121
import com.ss.rlib.util.array.ArrayComparator;
2222
import com.ss.rlib.util.array.ArrayFactory;
2323
import com.ss.rlib.util.array.ConcurrentArray;
24-
import javafx.application.Platform;
2524
import javafx.collections.FXCollections;
2625
import javafx.collections.ObservableList;
2726
import javafx.event.ActionEvent;
@@ -403,7 +402,10 @@ private boolean isReadOnly() {
403402
*/
404403
@FxThread
405404
protected @Nullable ContextMenu getContextMenu(@NotNull final ResourceElement element) {
406-
if (isReadOnly()) return null;
405+
406+
if (isReadOnly()) {
407+
return null;
408+
}
407409

408410
final ContextMenu contextMenu = new ContextMenu();
409411
final ObservableList<MenuItem> items = contextMenu.getItems();
@@ -438,7 +440,9 @@ private boolean isReadOnly() {
438440
}
439441
}
440442

441-
if (items.isEmpty()) return null;
443+
if (items.isEmpty()) {
444+
return null;
445+
}
442446

443447
return contextMenu;
444448
}
@@ -629,7 +633,7 @@ private void startBackgroundFill(@NotNull final Array<Path> paths) {
629633
setRoot(newRoot);
630634
final Consumer<Boolean> onLoadHandler = getOnLoadHandler();
631635
if (onLoadHandler != null) {
632-
Platform.runLater(() -> onLoadHandler.accept(Boolean.TRUE));
636+
onLoadHandler.accept(Boolean.TRUE);
633637
}
634638
});
635639
}
@@ -654,7 +658,9 @@ private void startBackgroundRefresh(@NotNull final Path assetFolder) {
654658
expandedElements.forEach(element -> {
655659

656660
final TreeItem<ResourceElement> item = findItemForValue(newRoot, element);
657-
if (item == null) return;
661+
if (item == null) {
662+
return;
663+
}
658664

659665
item.setExpanded(true);
660666
});
@@ -670,7 +676,9 @@ private void startBackgroundRefresh(@NotNull final Path assetFolder) {
670676
restoreSelection();
671677

672678
final Consumer<Boolean> onLoadHandler = getOnLoadHandler();
673-
if (onLoadHandler != null) onLoadHandler.accept(Boolean.TRUE);
679+
if (onLoadHandler != null) {
680+
onLoadHandler.accept(Boolean.TRUE);
681+
}
674682
});
675683
}
676684

src/main/java/com/ss/editor/ui/util/UiUtils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ public static void overrideTooltipBehavior(int openDelayInMillis, int visibleDur
384384

385385
final ObservableList<TreeItem<T>> children = root.getChildren();
386386

387-
System.out.println(root + ":" + children);
388-
389387
if (!children.isEmpty()) {
390388
for (final TreeItem<T> treeItem : children) {
391389
final TreeItem<T> result = findItemForValue(treeItem, object);

0 commit comments

Comments
 (0)