Package com.intellij.ide.browsers

Examples of com.intellij.ide.browsers.WebBrowser


            new XDebugProcessStarter() {
              @Override
              @NotNull
              public XDebugProcess start(@NotNull final XDebugSession session) {
                JavaScriptDebugEngine debugEngine = debuggableWebBrowser.getDebugEngine();
                WebBrowser browser = debuggableWebBrowser.getWebBrowser();
                JSDebugProcess<?> debugProcess = debugEngine.createDebugProcess(session, browser, fileFinder, url, executionResult, true);
                debugProcess.setElementsInspectorEnabled(false);
                debugProcess.setLayouter(consoleView.createDebugLayouter(debugProcess));
                return debugProcess;
              }
View Full Code Here


      return AsyncResult.done(starter);
    }
    else {
      final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
      JavaScriptDebugEngine debugEngine = debuggableWebBrowser.getDebugEngine();
      WebBrowser browser = debuggableWebBrowser.getWebBrowser();
      debugEngine.prepareDebugger(project, browser).notifyWhenRejected(result).doWhenDone(new Runnable() {
        @Override
        public void run() {
          result.setDone(starter);
        }
View Full Code Here

      return sdk.getGlobalLibName();
    }
    else if (DartSdkUtil.isDartSdkHome(oldDartSdkPath)) {
      if (DartiumUtil.getDartiumBrowser() == null) {
        // configure even if getDartiumPathForSdk() returns null
        final WebBrowser browser = DartiumUtil.ensureDartiumBrowserConfigured(DartiumUtil.getDartiumPathForSdk(oldDartSdkPath));
        final BrowserSpecificSettings browserSpecificSettings = browser.getSpecificSettings();
        if (browserSpecificSettings instanceof ChromeSettings) {
          DartiumUtil.setCheckedMode(browserSpecificSettings.getEnvironmentVariables(), true);
        }
      }
View Full Code Here

    if (PropertiesComponent.getInstance().getBoolean(DARTIUM_CHECKED_MODE_INITIALLY_ENABLED_KEY, false)) {
      return;
    }
    PropertiesComponent.getInstance().setValue(DARTIUM_CHECKED_MODE_INITIALLY_ENABLED_KEY, "true");

    final WebBrowser dartium = DartiumUtil.getDartiumBrowser();
    final BrowserSpecificSettings browserSpecificSettings = dartium == null ? null : dartium.getSpecificSettings();
    if (browserSpecificSettings instanceof ChromeSettings) {
      DartiumUtil.setCheckedMode(browserSpecificSettings.getEnvironmentVariables(), true);
    }
  }
View Full Code Here

    myBrowserSelector.setSelected(runSettings.getPreferredDebugBrowser());
  }

  @Override
  public void applyTo(@NotNull JstdRunSettings.Builder runSettingsBuilder) {
    WebBrowser selectedBrowser = myBrowserSelector.getSelected();
    if (selectedBrowser != null) {
      runSettingsBuilder.setPreferredDebugBrowser(selectedBrowser);
    }
  }
View Full Code Here

    }

    @Nullable
    @Override
    public RunContentDescriptor execute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
      final WebBrowser browser = myDebugBrowserInfo.getBrowser();
      final Url url;
      if (browser.getFamily().equals(BrowserFamily.CHROME)) {
        url = Urls.newHttpUrl("127.0.0.1:" + myDebugBrowserInfo.getServerSettings().getPort(), myDebugBrowserInfo.getPath());
      }
      else {
        url = null;
      }
View Full Code Here

    }
    if (debugBrowserInfos.size() == 1) {
      return debugBrowserInfos.get(0);
    }
    if (debugBrowserInfos.size() > 1) {
      WebBrowser preferredBrowser = runSettings.getPreferredDebugBrowser();
      for (JstdDebugBrowserInfo info : debugBrowserInfos) {
        if (preferredBrowser.equals(info.getBrowser())) {
          return info;
        }
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of com.intellij.ide.browsers.WebBrowser

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.