Class ContentPartPool

java.lang.Object
org.eclipse.gef.mvc.fx.behaviors.ContentPartPool
All Implemented Interfaces:
IDisposable

public class ContentPartPool extends Object implements IDisposable
A temporary store for IContentParts that is used by ContentBehaviors. They will add IContentParts, which are removed from the viewer during content synchronization (e.g. because the related content element was deleted), to be re-used (i.e. removed again and restored within the viewer) when the content element re-appears during synchronization, e.g. because of an undo of a delete operation. The motivation behind recycling IContentParts is that after an undo the viewer is in the exact same state as before the execution of an operation (which may be important for feedback or handles).
  • Constructor Details

    • ContentPartPool

      public ContentPartPool()
  • Method Details