org.eclipse.viatra.query.tooling.ui.queryexplorer.util

## Class AttachFileEditorPartListener

- java.lang.Object
- - org.eclipse.viatra.query.tooling.ui.queryexplorer.util.BasePartListener
  - - org.eclipse.viatra.query.tooling.ui.queryexplorer.util.AttachFileEditorPartListener

- All Implemented Interfaces:
    org.eclipse.ui.IPartListener

      public class AttachFileEditorPartListener
      extends BasePartListener

  The PartListener is used to observe EditorPart close actions. The main functionality is that if an VQL editor is being closed while "attached" to the QE, the attachment must be eliminated.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AttachFileEditorPartListener(AttachVqlEditorRegistrationHandler h)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `partClosed(org.eclipse.ui.IWorkbenchPart part)`

    - ### Methods inherited from class org.eclipse.viatra.query.tooling.ui.queryexplorer.util.BasePartListener

      `partActivated, partBroughtToTop, partDeactivated, partOpened`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AttachFileEditorPartListener

          public AttachFileEditorPartListener(AttachVqlEditorRegistrationHandler h)

  - ### Method Detail

    - #### partClosed

          public void partClosed(org.eclipse.ui.IWorkbenchPart part)

      Specified by:
        `partClosed` in interface `org.eclipse.ui.IPartListener`
      Overrides:
        `partClosed` in class `BasePartListener`