|
Lines 12-17
Link Here
|
| 12 |
package org.eclipse.ui.externaltools.internal.launchConfigurations; |
12 |
package org.eclipse.ui.externaltools.internal.launchConfigurations; |
| 13 |
|
13 |
|
| 14 |
|
14 |
|
|
|
15 |
import java.util.HashSet; |
| 16 |
import java.util.Iterator; |
| 17 |
|
| 15 |
import org.eclipse.core.externaltools.internal.IExternalToolConstants; |
18 |
import org.eclipse.core.externaltools.internal.IExternalToolConstants; |
| 16 |
import org.eclipse.core.externaltools.internal.launchConfigurations.ExternalToolsCoreUtil; |
19 |
import org.eclipse.core.externaltools.internal.launchConfigurations.ExternalToolsCoreUtil; |
| 17 |
import org.eclipse.core.resources.IResource; |
20 |
import org.eclipse.core.resources.IResource; |
|
Lines 387-411
Link Here
|
| 387 |
fVariables.setEnabled(haveOutputFile); |
390 |
fVariables.setEnabled(haveOutputFile); |
| 388 |
fAppend.setEnabled(haveOutputFile); |
391 |
fAppend.setEnabled(haveOutputFile); |
| 389 |
} |
392 |
} |
| 390 |
|
393 |
|
| 391 |
/* (non-Javadoc) |
394 |
/* (non-Javadoc) |
| 392 |
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) |
395 |
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) |
| 393 |
*/ |
396 |
*/ |
| 394 |
public void performApply(ILaunchConfigurationWorkingCopy configuration) { |
397 |
public void performApply(ILaunchConfigurationWorkingCopy configuration) { |
| 395 |
if (fCreateBuildScheduleComponent) { |
398 |
if (fCreateBuildScheduleComponent) { |
| 396 |
StringBuffer buffer= new StringBuffer(); |
399 |
HashSet kinds = new HashSet(4); |
| 397 |
if (afterClean.getSelection()) { |
400 |
if (afterClean.getSelection()) { |
| 398 |
buffer.append(IExternalToolConstants.BUILD_TYPE_FULL).append(','); |
401 |
kinds.add(IExternalToolConstants.BUILD_TYPE_FULL); |
| 399 |
} |
402 |
} |
| 400 |
if (manualBuild.getSelection()){ |
403 |
if(manualBuild.getSelection()){ |
| 401 |
buffer.append(IExternalToolConstants.BUILD_TYPE_INCREMENTAL).append(','); |
404 |
kinds.add(IExternalToolConstants.BUILD_TYPE_FULL); |
|
|
405 |
kinds.add(IExternalToolConstants.BUILD_TYPE_INCREMENTAL); |
| 402 |
} |
406 |
} |
| 403 |
if (autoBuildButton.getSelection()) { |
407 |
if (autoBuildButton.getSelection()) { |
| 404 |
buffer.append(IExternalToolConstants.BUILD_TYPE_AUTO).append(','); |
408 |
kinds.add(IExternalToolConstants.BUILD_TYPE_AUTO); |
| 405 |
} |
409 |
} |
| 406 |
|
410 |
|
| 407 |
if (fDuringClean.getSelection()) { |
411 |
if (fDuringClean.getSelection()) { |
| 408 |
buffer.append(IExternalToolConstants.BUILD_TYPE_CLEAN); |
412 |
kinds.add(IExternalToolConstants.BUILD_TYPE_CLEAN); |
|
|
413 |
} |
| 414 |
StringBuffer buffer= new StringBuffer(); |
| 415 |
for(Iterator i = kinds.iterator(); i.hasNext();) { |
| 416 |
buffer.append(i.next()); |
| 417 |
if(i.hasNext()) { |
| 418 |
buffer.append(','); |
| 419 |
} |
| 409 |
} |
420 |
} |
| 410 |
configuration.setAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, buffer.toString()); |
421 |
configuration.setAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, buffer.toString()); |
| 411 |
} |
422 |
} |