public abstract class BaseContentCloseListener extends java.lang.Object implements VetoableProjectManagerListener, ContentManagerListener
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseContentCloseListener.WaitForProcessTask |
EMPTY_ARRAY
Constructor and Description |
---|
BaseContentCloseListener(Content content,
Project project) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
askUserAndWait(ProcessHandler processHandler,
java.lang.String sessionName,
BaseContentCloseListener.WaitForProcessTask task) |
boolean |
canClose(Project project)
Checks whether the project can be closed.
|
protected abstract boolean |
closeQuery(Content content,
boolean projectClosing)
Checks if the specified
Content instance can be closed/removed. |
void |
contentRemoved(ContentManagerEvent event) |
void |
contentRemoveQuery(ContentManagerEvent event) |
void |
dispose() |
protected abstract void |
disposeContent(Content content) |
void |
projectClosed(Project project)
Invoked on project close.
|
void |
projectClosing(Project project)
Invoked on project close before any closing activities
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canCloseProject, projectClosingBeforeSave, projectOpened
contentAdded, selectionChanged
public void contentRemoved(ContentManagerEvent event)
contentRemoved
in interface ContentManagerListener
public void dispose()
protected abstract void disposeContent(Content content)
public void contentRemoveQuery(ContentManagerEvent event)
contentRemoveQuery
in interface ContentManagerListener
public void projectClosed(Project project)
ProjectManagerListener
projectClosed
in interface ProjectManagerListener
project
- closing projectpublic void projectClosing(Project project)
ProjectManagerListener
projectClosing
in interface ProjectManagerListener
public boolean canClose(Project project)
VetoableProjectManagerListener
canClose
in interface VetoableProjectManagerListener
project
- project to checkprotected boolean askUserAndWait(ProcessHandler processHandler, java.lang.String sessionName, BaseContentCloseListener.WaitForProcessTask task)
protected abstract boolean closeQuery(Content content, boolean projectClosing)
Content
instance can be closed/removed.content
- Content
instance the closing operation was requested forprojectClosing
- true if the content's project is being closed