Skip navigation links
JavaScript Development Tools
Release 3.2
org.eclipse.wst.jsdt.ui.actions

Class FormatAllAction

    • Constructor Detail

      • FormatAllAction

        public FormatAllAction(IWorkbenchSite site)
        Creates a new FormatAllAction. 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
    • Method Detail

      • run

        public void run(ITextSelection selection)
        Description copied from class: SelectionDispatchAction
        Executes this actions with the given selection. This default implementation does nothing.
        Overrides:
        run in class SelectionDispatchAction
        Parameters:
        selection - the selection
      • run

        public void run(IStructuredSelection selection)
        Description copied from class: SelectionDispatchAction
        Executes this actions with the given selection. This default implementation does nothing.
        Overrides:
        run in class SelectionDispatchAction
        Parameters:
        selection - the selection
      • runOnMultiple

        public void runOnMultiple(IJavaScriptUnit[] cus)
        Perform format all on the given compilation units.
        Parameters:
        cus - The compilation units to format.
JavaScript Development Tools
Release 3.2

Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.