Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IPresentationSerializer

public interface IPresentationSerializer

This interface is given to a StackPresentation when it is loading or saving its state. Not intended to be implemented by clients

This interface is not intended to be implemented by clients.

Method Summary
  String getId ( IPresentablePart part)
          Returns a unique identifier for the given part.
  IPresentablePart getPart ( String id)
          Returns a presentable part, given an id that was generated when the presentation was saved.

Method Detail


String getId(
IPresentablePart part)
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.

part - a part to be identified (not null)
a unique identifier for the part (not null)


IPresentablePart getPart(
String id)
Returns a presentable part, given an id that was generated when the presentation was saved.

id - an ID that was generated by getId(IPresentablePart) when the presentation was saved
the presentable part associated with the given id, or null if none. Note that even if the ID was valid when the presentation was saved, it may not be valid when the presentation is restored. Callers must be prepared to handle a null result.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire