@Override public void update(ILaunchConfigurationWorkingCopy launchConfig,IJavaProject javaProject,List<String> programArgs,List<String> vmArgs) throws CoreException {
  if (!GWTNature.isGWTProject(javaProject.getProject())) {
    return;
  }
  if (!GwtLaunchConfigurationProcessorUtilities.isSuperDevModeCodeServer(launchConfig)) {
    return;
  }
  int srcArgIndex=getArgIndex(programArgs);
  String srcDirs=null;
  if (srcArgIndex >= 0) {
    srcDirs=LaunchConfigurationProcessorUtilities.getArgValue(programArgs,srcArgIndex + 1);
  }
  if (StringUtilities.isEmpty(srcDirs)) {
    srcDirs=getSrcDirectories(javaProject);
  }
  int insertionIndex=LaunchConfigurationProcessorUtilities.removeArgsAndReturnInsertionIndex(programArgs,srcArgIndex,true);
  programArgs.add(insertionIndex,SRC_ARG);
  programArgs.add(insertionIndex + 1,srcDirs);
}

@ Override public void update ( ILaunchConfigurationWorkingCopy launchConfig , IJavaProject javaProject , List < String > programArgs , List < String > vmArgs ) throws CoreException { if ( ! GWTNature . isGWTProject ( javaProject . getProject ( ) ) ) { return ; } if ( ! GwtLaunchConfigurationProcessorUtilities . isSuperDevModeCodeServer ( launchConfig ) ) { return ; } int srcArgIndex = getArgIndex ( programArgs ) ; String srcDirs = null ; if ( srcArgIndex >= 0 ) { srcDirs = LaunchConfigurationProcessorUtilities . getArgValue ( programArgs , srcArgIndex + 1 ) ; } if ( StringUtilities . isEmpty ( srcDirs ) ) { srcDirs = getSrcDirectories ( javaProject ) ; } int insertionIndex = LaunchConfigurationProcessorUtilities . removeArgsAndReturnInsertionIndex ( programArgs , srcArgIndex , true ) ; programArgs . add ( insertionIndex , SRC_ARG ) ; programArgs . add ( insertionIndex + 1 , srcDirs ) ; }
only update this argument when in gwt sdm mode .
