Class AddToClasspathAction

  • All Implemented Interfaces:
    IAction, ISelectionChangedListener

    public class AddToClasspathAction
    extends SelectionDispatchAction
    Action to add a JAR to the classpath of its parent project. Action is applicable to selections containing archives (JAR or zip)

    This class may be instantiated; it is not intended to be subclassed.

    Since:
    2.1
    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • AddToClasspathAction

        public AddToClasspathAction​(IWorkbenchSite site)
        Creates a new AddToClasspathAction. The action requires that the selection provided by the site's selection provider is of type org.eclipse.jface.viewers.IStructuredSelection.
        Parameters:
        site - the site providing context information for this action