1 11 package org.eclipse.debug.core; 12 13 14 import java.util.List ; 15 import java.util.Map ; 16 import java.util.Set ; 17 18 import org.eclipse.core.resources.IFile; 19 import org.eclipse.core.resources.IResource; 20 import org.eclipse.core.runtime.CoreException; 21 import org.eclipse.core.runtime.IAdaptable; 22 import org.eclipse.core.runtime.IPath; 23 import org.eclipse.core.runtime.IProgressMonitor; 24 25 61 public interface ILaunchConfiguration extends IAdaptable { 62 63 67 public static final String LAUNCH_CONFIGURATION_FILE_EXTENSION = "launch"; 69 77 public static final String ATTR_SOURCE_LOCATOR_ID = DebugPlugin.getUniqueIdentifier() + ".source_locator_id"; 79 89 public static final String ATTR_SOURCE_LOCATOR_MEMENTO = DebugPlugin.getUniqueIdentifier() + ".source_locator_memento"; 91 99 public boolean contentsEqual(ILaunchConfiguration configuration); 100 101 119 public ILaunchConfigurationWorkingCopy copy(String name) throws CoreException; 120 121 132 public void delete() throws CoreException; 133 134 141 public boolean exists(); 142 143 158 public boolean getAttribute(String attributeName, boolean defaultValue) throws CoreException; 159 160 175 public int getAttribute(String attributeName, int defaultValue) throws CoreException; 176 177 192 public List getAttribute(String attributeName, List defaultValue) throws CoreException; 193 194 211 public Set getAttribute(String attributeName, Set defaultValue) throws CoreException; 212 213 228 public Map getAttribute(String attributeName, Map defaultValue) throws CoreException; 229 230 245 public String getAttribute(String attributeName, String defaultValue) throws CoreException; 246 247 260 public Map getAttributes() throws CoreException; 261 262 273 public String getCategory() throws CoreException; 274 275 284 public IFile getFile(); 285 286 293 public IPath getLocation(); 294 295 304 public IResource[] getMappedResources() throws CoreException; 305 306 317 public String getMemento() throws CoreException; 318 319 325 public String getName(); 326 327 340 public Set getModes() throws CoreException; 341 342 352 public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException; 353 354 365 public ILaunchConfigurationType getType() throws CoreException; 366 367 392 public ILaunchConfigurationWorkingCopy getWorkingCopy() throws CoreException; 393 394 401 public boolean isLocal(); 402 403 411 public boolean isMigrationCandidate() throws CoreException ; 412 413 423 public boolean isWorkingCopy(); 424 425 444 public ILaunch launch(String mode, IProgressMonitor monitor) throws CoreException; 445 446 486 public ILaunch launch(String mode, IProgressMonitor monitor, boolean build) throws CoreException; 487 488 533 public ILaunch launch(String mode, IProgressMonitor monitor, boolean build, boolean register) throws CoreException; 534 535 543 public void migrate() throws CoreException; 544 545 559 public boolean supportsMode(String mode) throws CoreException; 560 561 569 public boolean isReadOnly(); 570 } 571 | Popular Tags |