Class ExternalizeStringsAction

  • All Implemented Interfaces:
    IAction, ISelectionChangedListener

    public class ExternalizeStringsAction
    extends SelectionDispatchAction
    Externalizes the strings of a compilation unit or find all strings in a package or project that are not externalized yet. Opens a wizard that gathers additional information to externalize the strings.

    The action is applicable to structured selections containing elements of type ICompilationUnit, IType, IJavaProject, IPackageFragment, and IPackageFragmentRoot

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

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

      • ExternalizeStringsAction

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

        public ExternalizeStringsAction​(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor)
        Note: This constructor is for internal use only. Clients should not call this constructor.
        editor - the compilation unit editor
        This constructor is not intended to be referenced by clients.
    • Method Detail

      • run

        public void run​(ICompilationUnit unit)
        Note: this method is for internal use only. Clients should not call this method.
        unit - the compilation unit
        This method is not intended to be referenced by clients.