Class CopyPublicationAction
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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
runWithEvent
(org.eclipse.swt.widgets.Event event) void
selectionChanged
(IStructuredSelection selection) 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 com._1c.g5.v8.dt.internal.platform.services.ui.DeferredSelectionProviderAction
dispose, getSelection, getSelectionProvider, getStructuredSelection, selectionChanged, selectionChanged, setSelectionProvider
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
-
Constructor Details
-
CopyPublicationAction
public CopyPublicationAction()Creates an instance ofCopyPublicationAction
.
-
-
Method Details
-
runWithEvent
public void runWithEvent(org.eclipse.swt.widgets.Event event) - Specified by:
runWithEvent
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
runWithEvent
in classorg.eclipse.jface.action.Action
-
selectionChanged
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 classDeferredSelectionProviderAction
- Parameters:
selection
- the new selection, cannot benull
-
setPasteAction
Sets paste publication action.- Parameters:
paste
- the paste publication action, cannot benull
-
setClipboard
public void setClipboard(org.eclipse.swt.dnd.Clipboard clipboard) Sets clipboard for the action.- Parameters:
clipboard
- clipboard for the action to set, cannot benull
-