From 3bfcc5cd7fd2907ae0b7508f29d937fceb5974e9 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 18 Oct 2011 01:13:33 +0000 Subject: [PATCH] - 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 --- sdk/jme3-core/src/com/jme3/gde/core/Installer.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/Installer.java b/sdk/jme3-core/src/com/jme3/gde/core/Installer.java index 4bff52e1f..f328e23d4 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/Installer.java +++ b/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);