1 19 20 package org.netbeans.modules.tasklist.bugs.javanet; 21 22 import org.netbeans.modules.tasklist.bugs.issuezilla.IZBugEngine; 23 import org.netbeans.modules.tasklist.bugs.BugQuery; 24 import org.netbeans.modules.tasklist.bugs.BugList; 25 import org.netbeans.modules.tasklist.bugs.bugzilla.SourcePanel; 26 27 import javax.swing.*; 28 29 34 public class JavaNetEngine extends IZBugEngine { 35 36 public JComponent getQueryCustomizer(BugQuery query, boolean edit) { 37 return new SourcePanel(false); 38 } 39 40 public void refresh(BugQuery query, BugList list) { 41 42 44 String httpProxyHost = System.getProperty("http.proxyHost"); String httpProxyPort = System.getProperty("http.proxyPort"); 47 String httpsProxyHost = System.getProperty("https.proxyHost", null); 49 if (httpsProxyHost == null && httpProxyHost != null) { 50 System.out.println("Inheriting HTTPS proxy settings from HTTP proxy settings..."); 51 System.setProperty("https.proxyHost", httpProxyHost); System.out.print("-J-Dhttps.proxyHost=" + httpProxyHost); 53 if (httpProxyPort != null) { 54 System.setProperty("https.proxyPort", httpProxyPort); System.out.print(" -J-Dhttps.proxyPort=" + httpProxyPort); 56 } 57 System.out.println(); 58 } 59 60 super.refresh(query, list); 61 } 62 63 } 64 | Popular Tags |