@@ -4806,47 +4806,7 @@ public void doFind(JEditTextArea text) {
48064806 }
48074807
48084808 public void doHelp () {
4809- final String workingId = startWorking ("Retrieving help URL..." );
4810-
4811- SwingWorker <String , Void > worker = new SwingWorker <String , Void >() {
4812- @ Override
4813- protected String doInBackground () throws Exception {
4814- return HttpUtil .executeGetRequest (BrandingConstants .HELP_URL_LOCATION , 30000 , true , PlatformUI .HTTPS_PROTOCOLS , PlatformUI .HTTPS_CIPHER_SUITES );
4815- }
4816-
4817- @ Override
4818- protected void done () {
4819- String url = userPreferences .get ("helpDefaultLocation" , BrandingConstants .HELP_DEFAULT_LOCATION );
4820-
4821- try {
4822- String webhelpJson = get ();
4823- ObjectNode webhelpObj = (ObjectNode ) new ObjectMapper ().readTree (webhelpJson );
4824-
4825- // Get version-specific node, or "default"
4826- JsonNode urlNode ;
4827- if (webhelpObj .has (Version .getLatest ().toString ())) {
4828- urlNode = webhelpObj .get (Version .getLatest ().toString ());
4829- } else {
4830- urlNode = webhelpObj .get ("default" );
4831- }
4832-
4833- String newUrl = urlNode .asText ();
4834-
4835- if (StringUtils .isNotBlank (newUrl )) {
4836- url = newUrl ;
4837- userPreferences .put ("helpDefaultLocation" , url );
4838- }
4839- } catch (Throwable t ) {
4840- logger .error ("Unable to retrieve help URL, using default." , t );
4841- } finally {
4842- stopWorking (workingId );
4843- }
4844-
4845- BareBonesBrowserLaunch .openURL (url );
4846- }
4847- };
4848-
4849- worker .execute ();
4809+ BareBonesBrowserLaunch .openURL (BrandingConstants .HELP_URL_LOCATION );
48504810 }
48514811
48524812 public void goToNotifications () {
0 commit comments