- change http.agent of jMonkeyEngine SDK to something more useful

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

@ -34,8 +34,11 @@ package com.jme3.gde.core;
import com.jme3.gde.core.scene.SceneApplication;
import java.io.File;
import javax.swing.JPopupMenu;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.filesystems.FileChooserBuilder;
import org.openide.modules.ModuleInstall;
import org.openide.util.NbBundle;
import org.openide.util.NbPreferences;
/**
@ -64,8 +67,9 @@ public class Installer extends ModuleInstall {
// myProjectsDir.mkdirs();
// }
//Fixes online urls in panels
System.setProperty("http.agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2");
//Set http agent
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") + ")");
//select project folder
String projectDir = NbPreferences.forModule(Installer.class).get("projects_path", null);

Loading…
Cancel
Save