java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
com._1c.g5.v8.dt.internal.platform.services.ui.DeferredSelectionProviderAction
com._1c.g5.v8.dt.internal.platform.services.ui.webservers.actions.CopyPublicationAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction, ISelectionChangedListener

public class CopyPublicationAction extends DeferredSelectionProviderAction
Copy publication action. Supports 2 type of copy/pasting:
  • Copy publication to the same/other web server (if paste target is web server or publication)
  • Copy publication URL as test (otherwise)
See Also:
  • Field Summary

    Fields inherited from interface org.eclipse.jface.action.IAction

    AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of CopyPublicationAction.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    runWithEvent(org.eclipse.swt.widgets.Event event)
     
    void
    Notifies this action that the given structured selection has changed in the selection provider.
    void
    setClipboard(org.eclipse.swt.dnd.Clipboard clipboard)
    Sets clipboard for the action.
    void
    Sets paste publication action.

    Methods inherited from class org.eclipse.jface.action.Action

    convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText

    Methods inherited from class org.eclipse.jface.action.AbstractAction

    addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • runWithEvent

      public void runWithEvent(org.eclipse.swt.widgets.Event event)
      Specified by:
      runWithEvent in interface org.eclipse.jface.action.IAction
      Overrides:
      runWithEvent in class org.eclipse.jface.action.Action
    • selectionChanged

      public void selectionChanged(IStructuredSelection selection)
      Description copied from class: DeferredSelectionProviderAction
      Notifies this action that the given structured selection has changed in the selection provider.

      The SelectionProviderAction implementation of this method does nothing. Subclasses may reimplement to react to this selection change.

      Overrides:
      selectionChanged in class DeferredSelectionProviderAction
      Parameters:
      selection - the new selection, cannot be null
    • setPasteAction

      public void setPasteAction(PastePublicationAction paste)
      Sets paste publication action.
      Parameters:
      paste - the paste publication action, cannot be null
    • setClipboard

      public void setClipboard(org.eclipse.swt.dnd.Clipboard clipboard)
      Sets clipboard for the action.
      Parameters:
      clipboard - clipboard for the action to set, cannot be null