- avoid backslashes in Codeless Project wizard

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9478 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent b7b06266ed
commit 49f6e62048
  1. 8
      sdk/jme3-core/src/com/jme3/gde/core/codeless/CodelessProjectWizardVisualPanel1.form
  2. 4
      sdk/jme3-core/src/com/jme3/gde/core/codeless/CodelessProjectWizardVisualPanel1.java

@ -1,4 +1,4 @@
<?xml version="1.1" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> <Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<AuxValues> <AuxValues>
@ -21,9 +21,9 @@
<Group type="103" groupAlignment="1" attributes="0"> <Group type="103" groupAlignment="1" attributes="0">
<Component id="jPanel1" alignment="0" max="32767" attributes="0"/> <Component id="jPanel1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel3" alignment="0" min="-2" pref="447" max="-2" attributes="0"/> <Component id="jLabel3" alignment="0" min="-2" pref="447" max="-2" attributes="0"/>
<Component id="jToolBar1" alignment="0" pref="447" max="32767" attributes="0"/> <Component id="jToolBar1" alignment="0" max="32767" attributes="0"/>
<Component id="jLabel4" alignment="0" min="-2" pref="300" max="-2" attributes="0"/> <Component id="jLabel4" alignment="0" min="-2" pref="300" max="-2" attributes="0"/>
<Component id="jToolBar2" alignment="1" pref="447" max="32767" attributes="0"/> <Component id="jToolBar2" alignment="1" max="32767" attributes="0"/>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
</Group> </Group>
@ -70,7 +70,7 @@
<Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace pref="22" max="32767" attributes="0"/> <EmptySpace max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>

@ -235,13 +235,13 @@ public final class CodelessProjectWizardVisualPanel1 extends JPanel {
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
File path=new File(jTextField1.getText()); File path=new File(jTextField1.getText());
if(path.isDirectory()){ if(path.isDirectory()){
FileChooserBuilder builder = new FileChooserBuilder(path.getAbsolutePath()); FileChooserBuilder builder = new FileChooserBuilder(path.getAbsolutePath().replaceAll("\\","/"));
builder.setDirectoriesOnly(true); builder.setDirectoriesOnly(true);
builder.setTitle("Select Assets Folder"); builder.setTitle("Select Assets Folder");
File file = builder.showOpenDialog(); File file = builder.showOpenDialog();
if (file != null) { if (file != null) {
try { try {
jTextField2.setText(file.getAbsolutePath().substring(path.getAbsolutePath().length(), file.getAbsolutePath().length())); jTextField2.setText(file.getAbsolutePath().substring(path.getAbsolutePath().length(), file.getAbsolutePath().length()).replaceAll("\\","/"));
} catch (Exception e) { } catch (Exception e) {
} }
} }

Loading…
Cancel
Save