Skip to content

Commit 7798fdc

Browse files
committed
Finish 1.3.1
2 parents 6bd26fa + 238fe4e commit 7798fdc

File tree

9 files changed

+878
-216
lines changed

9 files changed

+878
-216
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
/bin/
22
*.so
3+
*.dll
34
*.log
45
/build/
56
/native-build/
67
/.gradle/
78
/.idea/
89
/out/
10+
.classpath
11+
.project
12+
/.settings/

app.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.0
1+
1.3.1

build-native.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project name="jMonkeyBuilder" default="do-deploy" basedir="native-build"
33
xmlns:fx="javafx:com.sun.javafx.tools.ant">
44

5-
<property name="editor.version" value="1.3.0"/>
5+
<property name="editor.version" value="1.3.1"/>
66
<property environment="env"/>
77

88
<condition property="gradle.executable" value="${basedir}/../gradlew.bat"

build.gradle

Lines changed: 2 additions & 2 deletions
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.3.0'
16+
version = '1.3.1'
1717

1818
sourceCompatibility = 1.8
1919
targetCompatibility = 1.8
@@ -24,7 +24,7 @@ compileTestJava {
2424
options.compilerArgs += '-parameters'
2525
}
2626

27-
ext.jmeVersion = "3.2-SNAPSHOT"
27+
ext.jmeVersion = "3.2_branch-SNAPSHOT"
2828
ext.jme3_xbuf_version = '0.9.1'
2929
ext.lwjglVersion = "3.1.2"
3030
ext.junitPlatformVersion = "1.0.0"

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.3.0");
45+
public static final Version APP_VERSION = new Version("1.3.1");
4646

4747
/**
4848
* The string version.

src/main/java/com/ss/editor/file/converter/impl/AbstractModelFileConverter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static com.ss.editor.extension.property.EditablePropertyType.*;
44
import static com.ss.editor.util.EditorUtil.getAssetFile;
5+
import static com.ss.editor.util.EditorUtil.getRealFile;
56
import static com.ss.editor.util.EditorUtil.toAssetPath;
67
import static com.ss.rlib.util.FileUtils.containsExtensions;
78
import static com.ss.rlib.util.ObjectUtils.notNull;
@@ -71,7 +72,7 @@ public void convert(@NotNull final Path source, @NotNull final Path destination)
7172
}
7273

7374
final String resultName = FileUtils.getNameWithoutExtension(source);
74-
final Path assetDestination = EditorUtil.getAssetFile(destination);
75+
final Path assetDestination = getAssetFile(destination.getParent());
7576

7677
final Array<PropertyDefinition> definitions = ArrayFactory.newArray(PropertyDefinition.class);
7778
definitions.add(new PropertyDefinition(STRING, Messages.MODEL_CONVERTER_DIALOG_RESULT_NAME, PROP_RESULT_NAME, resultName));
@@ -135,7 +136,7 @@ private void convert(@NotNull final Path source, @NotNull final VarTable vars) {
135136
private void convertImpl(@NotNull final Path source, @NotNull final VarTable vars) throws IOException {
136137

137138
final String filename = vars.getString(PROP_RESULT_NAME);
138-
final Path destinationFolder = vars.get(PROP_DESTINATION);
139+
final Path destinationFolder = notNull(getRealFile(vars.get(PROP_DESTINATION, Path.class)));
139140
final Path destination = destinationFolder.resolve(filename + "." + FileExtensions.JME_OBJECT);
140141
final boolean isOverwrite = Files.exists(destination);
141142

src/main/java/com/ss/editor/plugin/api/property/control/FolderAssetResourcePropertyControl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.ss.editor.plugin.api.property.PropertyDefinition;
99
import com.ss.editor.ui.component.asset.tree.context.menu.action.NewFileAction;
1010
import com.ss.editor.ui.util.UIUtils;
11+
import com.ss.rlib.util.StringUtils;
1112
import com.ss.rlib.util.VarTable;
1213
import javafx.scene.control.Label;
1314
import org.jetbrains.annotations.NotNull;
@@ -55,9 +56,10 @@ protected void processSelect(@NotNull final Path file) {
5556
protected void reload() {
5657

5758
final Path file = getPropertyValue();
59+
final String assetPath = file == null ? NOT_SELECTED : toAssetPath(file);
5860

5961
final Label resourceLabel = getResourceLabel();
60-
resourceLabel.setText(file == null ? NOT_SELECTED : toAssetPath(file));
62+
resourceLabel.setText(StringUtils.isEmpty(assetPath) ? "/" : assetPath);
6163

6264
super.reload();
6365
}

0 commit comments

Comments
 (0)