java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.pf.registry.Item
de.grogra.pf.registry.ObjectItem
de.grogra.pf.registry.LazyObjectItem
de.grogra.pf.ui.registry.FileObjectItem
de.grogra.pf.ui.registry.ProjectFileObjectItem
- All Implemented Interfaces:
Manageable,PersistenceCapable,Shareable,SharedObjectProvider,RegistryContext,UserFields,XObject,Described,Map,Serializable
This class add an additional wrapping around FileObjectItem. FileObjectItem
are files that are added to a project and most of the time loaded when the
explorer are loaded (to get description). FileObjectItem also have the
mimeType of the File they load.
ProjectFileObjectItem has mimetype another type of object managed by groimp.
The fileMimeType still represent the mimeType of the file to be loaded.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NTypeNested classes/interfaces inherited from interface de.grogra.persistence.SharedObjectProvider
SharedObjectProvider.Binding -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NTypestatic FilterSource.MetaDataKey<MimeType> static final Node.NType.FieldFields inherited from class de.grogra.pf.ui.registry.FileObjectItem
mimeType$FIELDFields inherited from class de.grogra.pf.registry.LazyObjectItem
fetch$FIELDFields inherited from class de.grogra.pf.registry.ObjectItem
objDescribes$FIELD, type$FIELD, USED_BITSFields inherited from class de.grogra.pf.registry.Item
systemId, systemId$FIELDFields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELDFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidIf the file do not exist.protected Objectprotected ObjectgetDerivedDescription(String type) Change the way description are loaded so the object do NOT get loaded before useprotected Node.NTypeThis method returns theNode.NTypewhich describes the managed fields of the class of this node.protected NodeThis method returns a new instance of the class of this node.Methods inherited from class de.grogra.pf.ui.registry.FileObjectItem
addRequiredFiles, createFileSource, delete, getDescriptionImpl, getMimeType, hasNullValueMethods inherited from class de.grogra.pf.registry.LazyObjectItem
addPluginPrerequisites, getBaseObjectImpl, getObject, getTypeFromObject, isObjectFetched, readAttribute, setBaseObjectMethods inherited from class de.grogra.pf.registry.ObjectItem
addToRegistry, createReference, getObjectType, getProviderName, isInstance, isInstance, isInstance, readReference, setObjDescribes, setType, writeObjectMethods inherited from class de.grogra.pf.registry.Item
activate, add, add, addPluginPrerequisite, addUserItem, addUserItemWithUniqueName, addWithUniqueName, beginXA, classForName, commitXA, copy, createItem, deactivate, deactivateImpl, deriveItems, dupUnmanagedFields, equals, findAll, findAll, findAll, findFirst, findFirst, findFirst, findMax, findMax, findMax, forAll, forAll, forAll, get, getAbsoluteName, getAccessor, getAccessor, getAttributes, getAttributes, getClassLoader, getDefaultDescription, getDefaultValue, getDescription, getFromResource, getI18NBundle, getItem, getLock, getParentMap, getPath, getPluginDescriptor, getRegistry, getRoot, getSystemId, getTransaction, getUniqueName, getWriteLock, hasEditableOptions, initPluginDescriptor, isActivated, isDirectory, isEditable, isOptionCategory, isPluginItem, isUserItem, makeUserItem, paramString, remove, removeDerivedItems, resolveItem, resolveLink, set, setDefaultDescription, setDescription, setDescription, setDirectory, setName, setNameIfNull, setOption, substitute, validateMethods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, edgeChanged, fieldModified, findAdjacent, findRefinementType, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceMethods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
FILE_MIMETYPE
-
$TYPE
-
fileMimeType$FIELD
-
-
Constructor Details
-
ProjectFileObjectItem
protected ProjectFileObjectItem() -
ProjectFileObjectItem
-
-
Method Details
-
getNTypeImpl
Description copied from class:NodeThis method returns theNode.NTypewhich describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImplin classFileObjectItem- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:NodeThis method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstancein classFileObjectItem- Returns:
- new instance of class of this node
-
getFileMimeType
-
fetchBaseObject
- Overrides:
fetchBaseObjectin classFileObjectItem
-
activateImpl
protected void activateImpl()If the file do not exist. Raise an error when the project is loaded. (the object is not loaded at this point). This troubleshoot most fileobject error whithin the project loading. The check is perform when the project is loaded because the actual object fetching is only done when the object is used - thus could happen after many executions.- Overrides:
activateImplin classFileObjectItem
-
getDerivedDescription
Change the way description are loaded so the object do NOT get loaded before use- Overrides:
getDerivedDescriptionin classObjectItem
-