Package editor

Class EditorTabHistoryHandler.EditorTabContext

    • Field Detail

      • _contentId

        private java.nio.file.Path _contentId
    • Constructor Detail

      • EditorTabContext

        public EditorTabContext​(EditorHost editor)
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: ILabel
        A human readable name, typically displayed as a caption.
        Specified by:
        getDisplayName in interface ILabel
      • getIcon

        public javax.swing.Icon getIcon​(int iTypeFlags)
        Description copied from interface: ILabel
        Supplies an icon for this label
        Specified by:
        getIcon in interface ILabel
        Parameters:
        iTypeFlags - one flag specifying the requested icon's type
        Returns:
        an icon for this label
        See Also:
        BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_16x16, BeanInfo.ICON_COLOR_32x32, BeanInfo.ICON_MONO_32x32, ILabel.OPEN
      • represents

        public boolean represents​(EditorHost editor)
        Specified by:
        represents in interface ITabHistoryContext
        Returns:
        true if this history context represents the given view, false otherwise
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface ITabHistoryContext
        Overrides:
        hashCode in class java.lang.Object