Esempio n. 1
0
  @Override
  public void performApply(ILaunchConfigurationWorkingCopy configuration) {
    SDBGLaunchConfigWrapper dartLauncher = new SDBGLaunchConfigWrapper(configuration);
    dartLauncher.setShouldLaunchFile(true);

    String fileUrl = htmlText.getText().trim();

    if (fileUrl.indexOf('?') == -1) {
      dartLauncher.setApplicationName(fileUrl);
      dartLauncher.setUrlQueryParams("");
    } else {
      int index = fileUrl.indexOf('?');

      dartLauncher.setApplicationName(fileUrl.substring(0, index));
      dartLauncher.setUrlQueryParams(fileUrl.substring(index + 1));
    }
    dartLauncher.setArguments(argumentText.getText().trim());
  }
Esempio n. 2
0
 @Override
 public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
   SDBGLaunchConfigWrapper dartLauncher = new SDBGLaunchConfigWrapper(configuration);
   dartLauncher.setShouldLaunchFile(true);
   dartLauncher.setApplicationName(""); // $NON-NLS-1$
 }