Moved Google and Koders Search to the wiki plugin
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / httpquery / HTTPQueryAction.java
index 0cdfd38..1c41e37 100644 (file)
@@ -19,13 +19,13 @@ public class HTTPQueryAction extends AbstractHTTPQueryAction {
     super();
   }
 
-  protected String getUrl(String selection) {
+  protected IConfiguration getUrl() {
     String selectedURL = null;
-    
+
     List allConfigsList = ConfigurationManager.getInstance().getConfigurations();
     ArrayList configsList = new ArrayList();
-    for (int i=0;i<allConfigsList.size();i++) {
-      IConfiguration temp = (IConfiguration)allConfigsList.get(i);
+    for (int i = 0; i < allConfigsList.size(); i++) {
+      IConfiguration temp = (IConfiguration) allConfigsList.get(i);
       if (temp.getType().equals(WikiEditorPlugin.HTTP_QUERY)) {
         configsList.add(temp);
       }
@@ -33,19 +33,17 @@ public class HTTPQueryAction extends AbstractHTTPQueryAction {
     Collections.sort(configsList);
 
     ListSelectionDialog listSelectionDialog = new ListSelectionDialog(WikiEditorPlugin.getDefault().getWorkbench()
-        .getActiveWorkbenchWindow().getShell(), configsList, new ListContentProvider(), new LabelProvider(),
-        "Select URL");
+        .getActiveWorkbenchWindow().getShell(), configsList, new ListContentProvider(), new LabelProvider(), "Select URL");
     listSelectionDialog.setTitle("Multiple configuration found");
     if (listSelectionDialog.open() == Window.OK) {
       Object[] configurations = listSelectionDialog.getResult();
       if (configurations != null) {
         for (int i = 0; i < configurations.length; i++) {
-          selectedURL = ((IConfiguration) configurations[i]).getURL();
-          break;
+          return ((IConfiguration) configurations[i]); // .getURL();
         }
       }
     }
-    return selectedURL;
+    return null;
   }
 
 }
\ No newline at end of file