Class PersistTableStateServiceImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.view.table.ui.swt.persistedstate.PersistTableStateServiceImpl
-
- All Implemented Interfaces:
PersistTableStateService
public class PersistTableStateServiceImpl extends java.lang.Object implements PersistTableStateService
Implementation of thePersistTableStateService
.- Author:
- Johannes Faltermeier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.spi.view.table.ui.swt.persistedstate.PersistTableStateService
PersistTableStateService.PersistTableStateServiceVAttachment
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<VAttachment>
getPersistedState(VControl control)
This methods gives access to previsouly persisted state attachments.void
registerAdditionalControls(VControl... controls)
Use this method if a nonVTableControl
VControl
renders a table and wishes to persist the state.
-
-
-
Method Detail
-
registerAdditionalControls
public void registerAdditionalControls(VControl... controls)
Description copied from interface:PersistTableStateService
Use this method if a non
VTableControl
VControl
renders a table and wishes to persist the state. The service will look for anVAttachment
with thePersistTableStateService.PersistTableStateServiceVAttachment
marker interface and will persist this attachment for the given control.This method may be called multiple times.
- Specified by:
registerAdditionalControls
in interfacePersistTableStateService
- Parameters:
controls
- the additional controls to registers.
-
getPersistedState
public Optional<VAttachment> getPersistedState(VControl control)
Description copied from interface:PersistTableStateService
This methods gives access to previsouly persisted state attachments.- Specified by:
getPersistedState
in interfacePersistTableStateService
- Parameters:
control
- the control- Returns:
- the attachment, if present
-
-