public class PreviewManagerImpl extends java.lang.Object implements PreviewManager, PersistentStateComponent<PreviewManagerState>
PreviewManager.SERVICE
Constructor and Description |
---|
PreviewManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkGlobalState() |
<V,C> void |
close(PreviewProviderId<V,C> id,
V data) |
PreviewManagerState |
getState() |
void |
loadState(PreviewManagerState state)
This method is called when new component state is loaded.
|
<V,C> void |
moveToStandardPlaceImpl(PreviewProviderId<V,C> id,
V data) |
<V,C> C |
preview(PreviewProviderId<V,C> id,
V data,
boolean requestFocus) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public PreviewManagerImpl(Project project)
public PreviewManagerState getState()
getState
in interface PersistentStateComponent<PreviewManagerState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(PreviewManagerState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<PreviewManagerState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
protected void checkGlobalState()
public <V,C> C preview(PreviewProviderId<V,C> id, V data, boolean requestFocus)
preview
in interface PreviewManager
null
if provider is not available / not active or if it forces to use standard view instead of preview at the momentpublic <V,C> void close(PreviewProviderId<V,C> id, V data)
close
in interface PreviewManager
public <V,C> void moveToStandardPlaceImpl(PreviewProviderId<V,C> id, V data)
moveToStandardPlaceImpl
in interface PreviewManager