Example #1
0
  /* (non-Javadoc)
   * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(Composite)
   */
  public void createControl(Composite parent) {
    Composite comp = new Composite(parent, SWT.NONE);
    setControl(comp);
    GridLayout gridLayout = new GridLayout();
    comp.setLayout(gridLayout);

    programArgumentsBlock.createControl(comp);
    vmArgumentsBlock.createControl(comp);
    workingDirectoryBlock.createControl(comp);
  }
Example #2
0
  /* (non-Javadoc)
   * @see org.eclipse.debug.ui.ILaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
   */
  public boolean isValid(ILaunchConfiguration launchConfig) {
    setErrorMessage(null);
    setMessage(null);

    if (!programArgumentsBlock.isValid(launchConfig)) {
      return false;
    }

    if (!vmArgumentsBlock.isValid(launchConfig)) {
      return false;
    }

    if (!workingDirectoryBlock.isValid(launchConfig)) {
      return false;
    }

    return true;
  }
Example #3
0
  /*
   * (non-Javadoc)
   * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#getMessage()
   */
  @Override
  public String getMessage() {
    String result = super.getMessage();

    if (result == null) {
      result = programArgumentsBlock.getMessage();
    }

    if (result == null) {
      result = workingDirectoryBlock.getMessage();
    }

    if (result == null) {
      result = vmArgumentsBlock.getMessage();
    }

    return result;
  }
Example #4
0
 /* (non-Javadoc)
  * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setLaunchConfigurationDialog(ILaunchConfigurationDialog)
  */
 public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog) {
   super.setLaunchConfigurationDialog(dialog);
   programArgumentsBlock.setLaunchConfigurationDialog(dialog);
   workingDirectoryBlock.setLaunchConfigurationDialog(dialog);
   vmArgumentsBlock.setLaunchConfigurationDialog(dialog);
 }
Example #5
0
 /* (non-Javadoc)
  * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
  */
 public void performApply(ILaunchConfigurationWorkingCopy configuration) {
   programArgumentsBlock.performApply(configuration);
   vmArgumentsBlock.performApply(configuration);
   workingDirectoryBlock.performApply(configuration);
 }
Example #6
0
 /* (non-Javadoc)
  * @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
  */
 public void initializeFrom(ILaunchConfiguration configuration) {
   programArgumentsBlock.initializeFrom(configuration);
   vmArgumentsBlock.initializeFrom(configuration);
   workingDirectoryBlock.initializeFrom(configuration);
 }