org.eclipse.cdt.internal.ui.dialogs.cpaths
Class SourceAttachmentBlock

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.dialogs.cpaths.SourceAttachmentBlock

public class SourceAttachmentBlock
extends java.lang.Object

UI to set the source attachment archive and root. Same implementation for both setting attachments for libraries from variable entries and for normal (internal or external) jar. SourceAttachmentBlock


Constructor Summary
SourceAttachmentBlock(IStatusChangeListener context, org.eclipse.cdt.core.model.ILibraryEntry entry, org.eclipse.cdt.core.model.ICProject project)
           
SourceAttachmentBlock(org.eclipse.core.resources.IWorkspaceRoot root, IStatusChangeListener context, org.eclipse.cdt.core.model.ILibraryEntry oldEntry)
          Deprecated.  
 
Method Summary
 org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the control
 org.eclipse.jface.operation.IRunnableWithProgress getRunnable(org.eclipse.cdt.core.model.ICProject jproject, org.eclipse.swt.widgets.Shell shell)
          Creates a runnable that sets the source attachment by modifying the project's classpath.
 org.eclipse.jface.operation.IRunnableWithProgress getRunnable(org.eclipse.swt.widgets.Shell shell)
          Creates a runnable that sets the source attachment by modifying the project's classpath or updating a container.
 org.eclipse.core.runtime.IPath getSourceAttachmentPath()
          Gets the source attachment path chosen by the user
 org.eclipse.core.runtime.IPath getSourceAttachmentPrefixMapping()
          Null for now
 org.eclipse.core.runtime.IPath getSourceAttachmentRootPath()
          Gets the source attachment root chosen by the user Returns null to let JCore automatically detect the root.
 void setDefaults()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceAttachmentBlock

public SourceAttachmentBlock(org.eclipse.core.resources.IWorkspaceRoot root,
                             IStatusChangeListener context,
                             org.eclipse.cdt.core.model.ILibraryEntry oldEntry)
Deprecated. 


SourceAttachmentBlock

public SourceAttachmentBlock(IStatusChangeListener context,
                             org.eclipse.cdt.core.model.ILibraryEntry entry,
                             org.eclipse.cdt.core.model.ICProject project)
Parameters:
context - listeners for status updates
entry - The entry to edit
project - Project to which the entry belongs. Can be null if getRunnable is not run and the entry does not belong to a container.
Method Detail

setDefaults

public void setDefaults()

getSourceAttachmentPath

public org.eclipse.core.runtime.IPath getSourceAttachmentPath()
Gets the source attachment path chosen by the user


getSourceAttachmentRootPath

public org.eclipse.core.runtime.IPath getSourceAttachmentRootPath()
Gets the source attachment root chosen by the user Returns null to let JCore automatically detect the root.


getSourceAttachmentPrefixMapping

public org.eclipse.core.runtime.IPath getSourceAttachmentPrefixMapping()
Null for now


createControl

public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
Creates the control


getRunnable

public org.eclipse.jface.operation.IRunnableWithProgress getRunnable(org.eclipse.cdt.core.model.ICProject jproject,
                                                                     org.eclipse.swt.widgets.Shell shell)
Creates a runnable that sets the source attachment by modifying the project's classpath.


getRunnable

public org.eclipse.jface.operation.IRunnableWithProgress getRunnable(org.eclipse.swt.widgets.Shell shell)
Creates a runnable that sets the source attachment by modifying the project's classpath or updating a container.