| org.eclipse.ui.presentations.IPresentationSerializer
All known Subclasses: org.eclipse.ui.internal.presentations.PresentationSerializer,
IPresentationSerializer | public interface IPresentationSerializer (Code) | | This interface is given to a StackPresentation when it is loading or saving
its state.
Not intended to be implemented by clients
since: 3.0 |
Method Summary | |
public String | getId(IPresentablePart part) Returns a unique identifier for the given part. | public IPresentablePart | getPart(String id) Returns a presentable part, given an id that was generated when the presentation
was saved.
Parameters: id - an ID that was generated by getId(IPresentablePart) when the presentationwas saved the presentable part associated with the given id, or null if none. |
getId | public String getId(IPresentablePart part)(Code) | | Returns a unique identifier for the given part. The identifier can later
be used to restore the original part by calling getPart(...). This identifier
is guaranteed to be unique within a particular StackPresentation. However,
the same part may be assigned a different ID each time the presentation is saved.
Parameters: part - a part to be identified (not null) a unique identifier for the part (not null) |
getPart | public IPresentablePart getPart(String id)(Code) | | Returns a presentable part, given an id that was generated when the presentation
was saved.
Parameters: id - an ID that was generated by getId(IPresentablePart) when the presentationwas saved the presentable part associated with the given id, or null if none. Notethat even if the ID was valid when the presentation was saved, it may notbe valid when the presentation is restored. Callers must be preparedto handle a null result. |
|
|