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

public class DeleteWebServerOrPublicationAction extends DeferredSelectionProviderAction
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 Type
    Method
    Description
    protected String
    getName(Object object)
    Get name of given input object.
    protected boolean
    Returns whether the given web server is deletable.
    void
    runWithEvent(org.eclipse.swt.widgets.Event event)
     
    void
    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 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
    • setCommonViewer

      public void setCommonViewer(org.eclipse.ui.navigator.CommonViewer viewer)
      Set common viewer for the action.
      Parameters:
      viewer - the common viewer for the action, cannot be null
    • isDeletable

      protected boolean isDeletable(WebServer webServer)
      Returns whether the given web server is deletable.
      Parameters:
      webServer - the web server to check, cannot be null
      Returns:
      whether the given web server is deletable
    • getName

      protected String getName(Object object)
      Get name of given input object.
      Parameters:
      object - input object to get name for, cannot be null
      Returns:
      input object name, never null
      Throws:
      IllegalArgumentException - if given object is illegal, not server or publication