public class DomFileEditor<T extends BasicDomElementComponent> extends PerspectiveFileEditor implements CommittablePanel, Highlightable
Disposable.Parent
PROP_MODIFIED, PROP_VALID
Constructor and Description |
---|
DomFileEditor(DomElement element,
java.lang.String name,
T component) |
DomFileEditor(Project project,
VirtualFile file,
java.lang.String name,
Factory<? extends T> component) |
DomFileEditor(Project project,
VirtualFile file,
java.lang.String name,
T component) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
static BasicDomElementComponent |
createComponentWithCaption(CommittablePanel committablePanel,
CaptionComponent captionComponent,
DomElement element) |
protected javax.swing.JComponent |
createCustomComponent() |
static DomFileEditor |
createDomFileEditor(java.lang.String name,
javax.swing.Icon icon,
DomElement element,
Factory<? extends CommittablePanel> committablePanel) |
BackgroundEditorHighlighter |
getBackgroundHighlighter() |
protected T |
getDomComponent() |
java.lang.String |
getName() |
javax.swing.JComponent |
getPreferredFocusedComponent()
Returns component to be focused when editor is opened.
|
protected DomElement |
getSelectedDomElement() |
boolean |
isValid() |
void |
reset() |
protected void |
setSelectedDomElement(DomElement domElement) |
void |
updateHighlighting() |
addPropertyChangeListener, addWatchedElement, checkIsValid, deselectNotify, dispose, ensureInitialized, getComponent, getCurrentLocation, getDocumentManager, getDocuments, getProject, getPsiFile, getStructureViewBuilder, getVirtualFile, getWrapper, isInitialised, isModified, removePropertyChangeListener, selectNotify, setShowing, setState
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
dispose
getFile, getState, setState
getUserData, putUserData
public DomFileEditor(DomElement element, java.lang.String name, T component)
public DomFileEditor(Project project, VirtualFile file, java.lang.String name, T component)
public DomFileEditor(Project project, VirtualFile file, java.lang.String name, Factory<? extends T> component)
public void updateHighlighting()
updateHighlighting
in interface Highlightable
public void commit()
commit
in interface Committable
public javax.swing.JComponent getPreferredFocusedComponent()
FileEditor
getPreferredFocusedComponent
in interface FileEditor
protected final T getDomComponent()
protected javax.swing.JComponent createCustomComponent()
createCustomComponent
in class PerspectiveFileEditor
public final java.lang.String getName()
getName
in interface FileEditor
null
.protected DomElement getSelectedDomElement()
getSelectedDomElement
in class PerspectiveFileEditor
protected void setSelectedDomElement(DomElement domElement)
setSelectedDomElement
in class PerspectiveFileEditor
public BackgroundEditorHighlighter getBackgroundHighlighter()
getBackgroundHighlighter
in interface FileEditor
getBackgroundHighlighter
in class PerspectiveFileEditor
null
if no background highlighting activity necessary for this file editor.public boolean isValid()
isValid
in interface FileEditor
isValid
in class PerspectiveFileEditor
public void reset()
reset
in interface Committable
public static DomFileEditor createDomFileEditor(java.lang.String name, javax.swing.Icon icon, DomElement element, Factory<? extends CommittablePanel> committablePanel)
public static BasicDomElementComponent createComponentWithCaption(CommittablePanel committablePanel, CaptionComponent captionComponent, DomElement element)