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, waitcanCloseProject, projectClosingBeforeSave, projectOpenedcontentAdded, selectionChangedpublic void contentRemoved(ContentManagerEvent event)
contentRemoved in interface ContentManagerListenerpublic void dispose()
protected abstract void disposeContent(Content content)
public void contentRemoveQuery(ContentManagerEvent event)
contentRemoveQuery in interface ContentManagerListenerpublic void projectClosed(Project project)
ProjectManagerListenerprojectClosed in interface ProjectManagerListenerproject - closing projectpublic void projectClosing(Project project)
ProjectManagerListenerprojectClosing in interface ProjectManagerListenerpublic boolean canClose(Project project)
VetoableProjectManagerListenercanClose in interface VetoableProjectManagerListenerproject - 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