Package org.cfeclipse.cfml.views.browser

Examples of org.cfeclipse.cfml.views.browser.BrowserView


      String url = ResourceUtils.getURL(input.getFile());
           
      // String calculatedURL = URLpath + "/" + currentpath;

      BrowserView browser = (BrowserView) page
          .showView(BrowserView.ID_BROWSER);
      browser.setUrl(url);
      browser.setFocus();
      // browser.refresh();

      editor.setFocus();

    } catch (Exception e) {
View Full Code Here


         
          //String projectURL = propertyManager.projectURL(input.getFile().getProject());
     
     
      // System.out.println("currentpath: " + currentpath + "; currentfile: " + currentfile + "; URLpath: " + URLpath);
          BrowserView browser = (BrowserView)page.showView(BrowserView.ID_BROWSER);
          browser.setUrl(url);
          browser.setFocus();
          // browser.refresh();
         
          editor.setFocus();
         
      }
View Full Code Here

          helpsys.search(keyword);
        }
        else{
            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
            try {
               BrowserView browser = (BrowserView)page.showView(BrowserView.ID_BROWSER);
               browser.setUrl(theFullURL, BrowserView.HELP_TAB);
               browser.setFocus(BrowserView.HELP_TAB);
            }
            catch(Exception e) {
                e.printStackTrace();
            }
        }
View Full Code Here

                CFMLPropertyManager propMan = new CFMLPropertyManager();

                try
                {
                    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                    BrowserView browser = (BrowserView) page.showView(BrowserView.ID_BROWSER);
                    String rootURL = propMan.defaultProjectURL();

                    URL projURL = new URL(rootURL);

                    //todo
View Full Code Here

                .getEditorInput()).getFile()).getName();

            if (currentFile
                .equalsIgnoreCase(scribbleFile.getName())) {
              editor.doSave(new NullProgressMonitor());
              BrowserView browser = (BrowserView) page
                  .showView(BrowserView.ID_BROWSER);
              browser.setUrl(scribbleURL);
              browser.setFocus();
            } else {
              // IEditorPart editorPart =
              // IDE.openEditor(page,scribbleFile,true);
              IDE.openEditor(page, scribbleFile, true);

              if (clearOnLoad) {
                editor.getDocumentProvider().getDocument(
                    editor.getEditorInput()).set("");
              }
              if (loadBrowser) {

                BrowserView browser = (BrowserView) page
                    .showView(BrowserView.ID_BROWSER);
                browser.setUrl(scribbleURL);
                // browser.refresh();
              }
            }
            editor.setFocus();
          }
View Full Code Here

      try {
         
          //IDocument doc =  editor.getDocumentProvider().getDocument(editor.getEditorInput());
      //ISelection sel = editor.getSelectionProvider().getSelection();
         
          BrowserView browser = (BrowserView)page.showView(BrowserView.ID_BROWSER);
          browser.refresh();
         
          editor.setFocus();
         
      }
      catch (Exception e) {
View Full Code Here

            String primaryBrowserPath = fStore.getString(BrowserPreferenceConstants.P_PRIMARY_BROWSER_PATH);
            externalBrowserAction.openUrl(theFullURL, primaryBrowserPath);

          } else {
            BrowserView browser = (BrowserView) page.showView(BrowserView.ID_BROWSER);
            browser.setUrl(theFullURL, BrowserView.HELP_TAB);
            browser.setFocus(BrowserView.HELP_TAB);
          }

        } catch (Exception e) {
          e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.views.browser.BrowserView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.