Class DeleteWebServerOrPublicationAction
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.DeleteWebServerOrPublicationAction
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
,ISelectionChangedListener
Delete current selected Web Server action.
-
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 TypeMethodDescriptionprotected String
Get name of given input object.protected boolean
isDeletable
(WebServer webServer) Returns whether the given web server is deletable.void
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
setCommonViewer
(org.eclipse.ui.navigator.CommonViewer viewer) Set common viewer for the 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
-
DeleteWebServerOrPublicationAction
public DeleteWebServerOrPublicationAction()Constructor ofDeleteWebServerOrPublicationAction
.
-
-
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
-
isDeletable
Returns whether the given web server is deletable.- Parameters:
webServer
- the web server to check, cannot benull
- Returns:
- whether the given web server is deletable
-
getName
Get name of given input object.- Parameters:
object
- input object to get name for, cannot benull
- Returns:
- input object name, never null
- Throws:
IllegalArgumentException
- if given object is illegal, not server or publication
-