Class ImportResourcesAction

All Implemented Interfaces:
IAction, ISelectionChangedListener, ActionFactory.IWorkbenchAction

public class ImportResourcesAction extends BaseSelectionListenerAction implements ActionFactory.IWorkbenchAction
Action representing a generic import operation.

This class may be instantiated. It is not intended to be subclassed.

This method automatically registers listeners so that it can keep its enablement state up to date. Ordinarily, the window's references to these listeners will be dropped automatically when the window closes. However, if the client needs to get rid of an action while the window is still open, the client must call IWorkbenchAction#dispose to give the action an opportunity to deregister its listeners and to perform any other cleanup.

Note: Despite the name, an import operation can deal with things other than resources; the current name was retained for historical reasons.

This class is not intended to be subclassed by clients.
  • Constructor Details

    • ImportResourcesAction

      public ImportResourcesAction(IWorkbenchWindow window)
      Create a new instance of this class.
      window - the window
    • ImportResourcesAction

      @Deprecated public ImportResourcesAction(IWorkbench workbench)
      use the constructor ImportResourcesAction(IWorkbenchWindow)
      Create a new instance of this class
      workbench - the workbench
  • Method Details