public interface ILogicalModelExtender
Modifier and Type | Method and Description |
---|---|
boolean |
canParseSubUnitReferences()
Determines whethere this extender can extract the subnit file references
from the model file content.
|
org.eclipse.core.resources.IFile |
findCorrespondingRootModelFile(org.eclipse.core.resources.IFile localRootModelFile,
IFileStorage storage)
Finds the corresponding root model file from the given file system
storage.
|
org.eclipse.core.resources.IFile |
findRootModelFileFromSubUnit(org.eclipse.core.resources.IFile localSubUnitFile,
IFileStorage storage)
Finds the root model file that reference the given subunit.
|
SubUnitFile[] |
getAllSubUnitFiles(org.eclipse.core.resources.IFile rootModelFile,
IFileStorage storage)
Computes list of subunit files from the given root model file.
|
java.lang.String |
getLogicalModelLabel(org.eclipse.core.resources.IFile rootModelFile)
Returns the label for decorate the logical model node.
|
java.lang.String |
getModelFileLabel(SubUnitFile modelFile)
Returns the label for decorate the model/subunit file node on the
synchronization diff tree
|
java.lang.String |
getModelId(java.io.InputStream fileContents)
Extracts the model id from the file content
|
java.lang.String[] |
getRootModelFileExtensions()
Returns list of subunit file extensions
|
java.lang.String[] |
getSubUnitFileExtensions()
Returns list of subunit file extensions
|
boolean |
isModelHasUniqueId()
Determines whether the logical model store unique id in its file content
or not.
|
boolean |
isRootModelFile(org.eclipse.core.resources.IFile file,
IFileStorage storage)
Returns true if the given file is a root model file.
|
boolean |
isRootModelFileExtension(java.lang.String fileExtension)
Determines if the given file extension is the root model file extension
|
boolean |
isSubUnitFile(org.eclipse.core.resources.IFile file,
IFileStorage storage)
Returns true if the given file is a subunit file.
|
boolean |
isSubUnitFileExtension(java.lang.String fileExtension)
Determines if the given file extension is the subunit file extension
|
SubUnitFile[] |
parseClosureSubUnitReferences(java.io.InputStream is,
org.eclipse.core.runtime.IPath parentPath)
Parses a closure manifest input stream and returns list of subunit file
references.
|
SubUnitFile[] |
parseSubUnitReferences(java.io.InputStream is,
org.eclipse.core.runtime.IPath parentFilePath)
Parses the parent file input stream and returns list of subunit file
references.
|
void |
setCustomData(java.lang.String customData)
Sets the custom Data from the extension declaration.
|
void |
setFileExtensions(java.lang.String rootModelFileExtensions,
java.lang.String subunitFileExtensions)
Sets the file extensions of root model files and subunit files from the
extension declaration.
|
void setCustomData(java.lang.String customData)
customData
- - String data from the extension declaration.void setFileExtensions(java.lang.String rootModelFileExtensions, java.lang.String subunitFileExtensions)
rootModelFileExtensions
- -
list of comma separated root model file extensions.subunitFileExtensions
- -
list of comma separated subunit file extensions.java.lang.String[] getSubUnitFileExtensions()
java.lang.String[] getRootModelFileExtensions()
boolean isSubUnitFileExtension(java.lang.String fileExtension)
fileExtension
- -
file extensionboolean isRootModelFileExtension(java.lang.String fileExtension)
fileExtension
- -
file extensionboolean isSubUnitFile(org.eclipse.core.resources.IFile file, IFileStorage storage)
file
- -
subunit file.storage
- -
storage that holds the file content.boolean isRootModelFile(org.eclipse.core.resources.IFile file, IFileStorage storage)
file
- -
subunit file.storage
- -
storage that holds the file content.SubUnitFile[] getAllSubUnitFiles(org.eclipse.core.resources.IFile rootModelFile, IFileStorage storage)
rootModelFile
- -
Root model file.storage
- -
storage that holds the file content and directory infoorg.eclipse.core.resources.IFile findCorrespondingRootModelFile(org.eclipse.core.resources.IFile localRootModelFile, IFileStorage storage)
localRootModelFile
- -
file in local workspace.storage
- -
storage that holds the file content and directory infoorg.eclipse.core.resources.IFile findRootModelFileFromSubUnit(org.eclipse.core.resources.IFile localSubUnitFile, IFileStorage storage)
localSubUnitFile
- -
The local subunit file.storage
- -
storage that holds the file content and directory info.boolean isModelHasUniqueId()
java.lang.String getModelId(java.io.InputStream fileContents)
fileContents
- java.lang.String getModelFileLabel(SubUnitFile modelFile)
modelFile
- -
model/subunit file.java.lang.String getLogicalModelLabel(org.eclipse.core.resources.IFile rootModelFile)
rootModelFile
- -
Root model file.boolean canParseSubUnitReferences()
SubUnitFile[] parseSubUnitReferences(java.io.InputStream is, org.eclipse.core.runtime.IPath parentFilePath)
is
- -
The model file input stream.parentFilePath
- -
path of model file which is parsing.SubUnitFile[] parseClosureSubUnitReferences(java.io.InputStream is, org.eclipse.core.runtime.IPath parentPath)
is
- -
The model file input stream.parentPath
- -
path of model file which is parsing.