Packagecom.adobe.xmp.utils
Classpublic class MRUManager

Maintains the most-recently-used (MRU) preferences. When the File Info dialog is initialized, the MRU values are loaded from this file in the user directory: .../Application Data/Adobe/XMP/File Info/3.0/work/FileInfoMRU.xml MRUs are managed in memory until the dialog is closed. The updated MRU preferences are then stored in this file.

MRU lists are stored separately for each XMP component and are recognized by the xmpPath attribute. Existing values are offered to the user, new values are remembered.

Settings for the MRUManager and for each MRU list:



Public Properties
 PropertyDefined by
  caseSensitive : Boolean
Whether value recognition should be case sensitive by default
MRUManager
  closedList : Boolean
Whether MRU values can be added to lists by default
MRUManager
  enabled : Boolean
Flag if the MRU functionality is enabled or disabled
MRUManager
  instance : MRUManager
[static] The singleton instance of the MRUManager
MRUManager
  maxEntries : int
Getter and setter for the default maximum number of entries of a MRU list.
MRUManager
  maxEntryLength : int
[read-only] Getter for the default maximum length of an MRU entry.
MRUManager
  minEntryLength : int
[read-only] Getter for the default minimum length of an MRU entry
MRUManager
Public Methods
 MethodDefined by
  
MRUManager
  
getMRUList(mruKey:String):MRUList
Loads an MRU list for a certain key, or creates a new one if the specified key does not exist.
MRUManager
  
loadMRUTable():void
MRUManager
Public Constants
 ConstantDefined by
  CASE_SENSITIVE : Boolean = false
[static] Constant for the default case sensitive flag.
MRUManager
  CLOSED_LIST : Boolean = false
[static] Constant for the default closed list flag.
MRUManager
  MAX_ENTRIES : int = 20
[static] Constant for the default maximum of entries in the MRU list.
MRUManager
  MAX_ENTRY_LENGTH : int = 1024
[static] Constant for the default maximum length of a single MRU entry.
MRUManager
  MIN_ENTRY_LENGTH : int = 3
[static] Constant for the default minimum length of a single MRU entry.
MRUManager
Property detail
caseSensitiveproperty
caseSensitive:Boolean  [read-write]

Whether value recognition should be case sensitive by default

Implementation
    public function get caseSensitive():Boolean
    public function set caseSensitive(value:Boolean):void
closedListproperty 
closedList:Boolean  [read-write]

Whether MRU values can be added to lists by default

Implementation
    public function get closedList():Boolean
    public function set closedList(value:Boolean):void
enabledproperty 
enabled:Boolean  [read-write]

Flag if the MRU functionality is enabled or disabled

Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void
instanceproperty 
public static var instance:MRUManager

The singleton instance of the MRUManager

maxEntriesproperty 
maxEntries:int  [read-write]

Getter and setter for the default maximum number of entries of a MRU list.

Implementation
    public function get maxEntries():int
    public function set maxEntries(value:int):void
maxEntryLengthproperty 
maxEntryLength:int  [read-only]

Getter for the default maximum length of an MRU entry.

Implementation
    public function get maxEntryLength():int
minEntryLengthproperty 
minEntryLength:int  [read-only]

Getter for the default minimum length of an MRU entry

Implementation
    public function get minEntryLength():int
Method detail
deleteMRUTable()method
public function deleteMRUTable():void
getMRUList()method 
public function getMRUList(mruKey:String):MRUList

Loads an MRU list for a certain key, or creates a new one if the specified key does not exist. This list is only parsed when it is requested for the first time; it is cached in memory until the dialog is closed, or until the list is serialized using serializeModifiedLists(), which writes it back into the XML file.

Parameters
mruKey:String — The key.

Returns
MRUList — The MRU list.
loadMRUTable()method 
public function loadMRUTable():void
Constant detail
CASE_SENSITIVEconstant
public static const CASE_SENSITIVE:Boolean = false

Constant for the default case sensitive flag.

CLOSED_LISTconstant 
public static const CLOSED_LIST:Boolean = false

Constant for the default closed list flag.

MAX_ENTRIESconstant 
public static const MAX_ENTRIES:int = 20

Constant for the default maximum of entries in the MRU list.

MAX_ENTRY_LENGTHconstant 
public static const MAX_ENTRY_LENGTH:int = 1024

Constant for the default maximum length of a single MRU entry.

MIN_ENTRY_LENGTHconstant 
public static const MIN_ENTRY_LENGTH:int = 3

Constant for the default minimum length of a single MRU entry.