Class TemplatePersistenceData

java.lang.Object
org.eclipse.text.templates.TemplatePersistenceData
org.eclipse.jface.text.templates.persistence.TemplatePersistenceData

@Deprecated public class TemplatePersistenceData extends TemplatePersistenceData
Deprecated.
TemplatePersistenceData stores information about a template. It uniquely references contributed templates via their id. Contributed templates may be deleted or modified. All template may be enabled or not.

Clients may use this class, although this is not usually needed except when implementing a custom template preference page or template store. This class is not intended to be subclassed.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TemplatePersistenceData(Template template, boolean enabled)
    Deprecated.
     
    TemplatePersistenceData(Template template, boolean enabled, String id)
    Deprecated.
     
    Deprecated.
    In some cases, we must continue to respect the deprecated TemplatePresistenceData even though we are given TemplatePersistenceData.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Deprecated.
     
    Deprecated.
    Returns the id of this template store, or null if there is none.
    Deprecated.
    Returns the template encapsulated by the receiver.
    protected UUID
    Deprecated.
    Required to support equals() with deprecated type org.eclipse.jface.text.templates.persistence.TemplatePersistenceData.
    int
    Deprecated.
     
    boolean
    Deprecated.
    Returns whether the receiver represents a custom template, i.e. is either a user-added template or a contributed template that has been modified.
    boolean
    Deprecated.
    Returns the deletion state of the stored template.
    boolean
    Deprecated.
    Returns the enablement state of the contained template.
    boolean
    Deprecated.
    Returns whether the receiver represents a modified template, i.e. a contributed template that has been changed.
    boolean
    Deprecated.
    Returns true if the contained template was added by a user, i.e. does not reference a contributed template.
    void
    Deprecated.
    Reverts the template to its original setting.
    void
    setDeleted(boolean isDeleted)
    Deprecated.
    Sets the deletion state of the stored template.
    void
    setEnabled(boolean isEnabled)
    Deprecated.
    Sets the enablement state of the contained template.
    void
    Deprecated.
    Sets the template encapsulated by the receiver.

    Methods inherited from class org.eclipse.text.templates.TemplatePersistenceData

    getUniqueIdForEquals

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TemplatePersistenceData

      public TemplatePersistenceData(TemplatePersistenceData data)
      Deprecated.
      In some cases, we must continue to respect the deprecated TemplatePresistenceData even though we are given TemplatePersistenceData.
      Parameters:
      data - The TemplatePersistenceData that will underlie this object.
      Since:
      3.14
    • TemplatePersistenceData

      public TemplatePersistenceData(Template template, boolean enabled)
      Deprecated.
    • TemplatePersistenceData

      public TemplatePersistenceData(Template template, boolean enabled, String id)
      Deprecated.
  • Method Details