- cleanup SDK initialization class

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8440 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 3bfcc5cd7f
commit b953e037bc
  1. 24
      sdk/jme3-core/src/com/jme3/gde/core/Installer.java

@ -34,8 +34,6 @@ package com.jme3.gde.core;
import com.jme3.gde.core.scene.SceneApplication; import com.jme3.gde.core.scene.SceneApplication;
import java.io.File; import java.io.File;
import javax.swing.JPopupMenu; import javax.swing.JPopupMenu;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.filesystems.FileChooserBuilder; import org.openide.filesystems.FileChooserBuilder;
import org.openide.modules.ModuleInstall; import org.openide.modules.ModuleInstall;
import org.openide.util.NbBundle; import org.openide.util.NbBundle;
@ -60,14 +58,7 @@ public class Installer extends ModuleInstall {
} }
static { static {
//set default projects directory //set http agent
// File userDir = new File(System.getProperty("user.home"));
// File myProjectsDir = new File(userDir, "jMonkeyProjects");
// if (!myProjectsDir.exists()) {
// myProjectsDir.mkdirs();
// }
//Set http agent
System.setProperty("http.agent", NbBundle.getBundle("org.netbeans.core.windows.view.ui.Bundle").getString("CTL_MainWindow_Title") System.setProperty("http.agent", NbBundle.getBundle("org.netbeans.core.windows.view.ui.Bundle").getString("CTL_MainWindow_Title")
+ " (" + System.getProperty("os.name") + "/" + System.getProperty("os.version") + ")"); + " (" + System.getProperty("os.name") + "/" + System.getProperty("os.version") + ")");
@ -77,7 +68,6 @@ public class Installer extends ModuleInstall {
//set extraction dir for platform natives //set extraction dir for platform natives
javax.swing.JFileChooser fr = new javax.swing.JFileChooser(); javax.swing.JFileChooser fr = new javax.swing.JFileChooser();
javax.swing.filechooser.FileSystemView fw = fr.getFileSystemView(); javax.swing.filechooser.FileSystemView fw = fr.getFileSystemView();
// File myProjectsDir = new File(fw.getDefaultDirectory().getPath() + File.separator + "jMonkeyProjects");
projectDir = fw.getDefaultDirectory().getAbsolutePath(); projectDir = fw.getDefaultDirectory().getAbsolutePath();
FileChooserBuilder builder = new FileChooserBuilder(projectDir); FileChooserBuilder builder = new FileChooserBuilder(projectDir);
builder.setApproveText("Set Project Folder"); builder.setApproveText("Set Project Folder");
@ -99,18 +89,6 @@ public class Installer extends ModuleInstall {
} }
com.jme3.system.Natives.setExtractionDir(jmpDir); com.jme3.system.Natives.setExtractionDir(jmpDir);
// if (Utilities.isMac()) {
// String jmpDir = System.getProperty("user.home") + "/Library/Application Support/jmonkeyplatform/";
// File file = new File(jmpDir);
// file.mkdirs();
// com.jme3.system.Natives.setExtractionDir(jmpDir);
// } else {
// String jmpDir = System.getProperty("user.home") + File.separator + ".jmonkeyplatform" + File.separator;
// File file = new File(jmpDir);
// file.mkdirs();
// com.jme3.system.Natives.setExtractionDir(jmpDir);
// }
//avoid problems with lightweight popups //avoid problems with lightweight popups
JPopupMenu.setDefaultLightWeightPopupEnabled(false); JPopupMenu.setDefaultLightWeightPopupEnabled(false);
} }

Loading…
Cancel
Save