Class CheckoutProjectHandler


  • public class CheckoutProjectHandler
    extends java.lang.Object
    Handler to check out a ECPCheckoutSource.
    Author:
    Jonas
    • Constructor Detail

      • CheckoutProjectHandler

        public CheckoutProjectHandler()
    • Method Detail

      • execute

        @Execute
        public void execute​(org.eclipse.swt.widgets.Shell shell,
                            @Named("org.eclipse.ui.selection") @Optional
                            ECPCheckoutSource checkoutSource)
        checks out a ECPCheckoutSource.
        Parameters:
        shell - shell to display a dialog
        checkoutSource - the ECPCheckoutSource to be chcked out
      • canExecute

        @CanExecute
        public boolean canExecute​(@Named("org.eclipse.ui.selection") @Optional
                                  ECPCheckoutSource checkoutSource)
        checks if the current selection is an ECPCheckoutSource.
        Parameters:
        checkoutSource - the current selection, if it is an ECPCheckoutSource or null otherwise
        Returns:
        if the current selection is an ECPCheckoutSource