|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.adobe.flexbuilder.codemodel.common.CMFactory
The Code Model Factory where you get most of the singletons for the Code Model
| Constructor Summary | |
CMFactory()
|
|
| Method Summary | |
static boolean |
canParseFile(java.lang.String absFilePath)
Determines if this file is one that is parseable by Code Model |
static IASIdentifierAnalyzer |
getASIdentifierAnalyzer()
Get the ActionScript identifier analyzer, which can be used to test for legal file names and knows all of the ActionScript keywords. |
static ICodeChangeProxy |
getCodeChangeProxy()
Get the code change proxy (used to let code model listen to document changes) |
static java.lang.Object |
getLockObject()
Get the code model's lock object. |
static IProjectManager |
getManager()
Get the project manager |
static IRegistrar |
getRegistrar()
Get the registrar, which allows clients to register files and projects with the code model |
static org.eclipse.core.resources.IResource |
getResourceFromAbsolutePath(java.lang.String absolutePath)
Returns the IResource |
static ISwcManager |
getSwcManager()
Get the swc manager (used to get icons and swfs embedded in a swc) |
static boolean |
hasLockObject()
Determine whether the current thread holds a lock on the code model's lock object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMFactory()
| Method Detail |
public static IProjectManager getManager()
public static java.lang.Object getLockObject()
synchronized (CMFactory.getLockObject())
{
// code model queries go here.
}
WARNING: The block should not do anything other than query the code model. In particular, it should not call any code that might want to run an IWorkspaceRunnable job. (An assertion will fail in FlexWorkspaceRunner if you try this).
public static boolean hasLockObject()
public static IASIdentifierAnalyzer getASIdentifierAnalyzer()
public static ICodeChangeProxy getCodeChangeProxy()
public static ISwcManager getSwcManager()
public static IRegistrar getRegistrar()
public static boolean canParseFile(java.lang.String absFilePath)
absFilePath -
public static org.eclipse.core.resources.IResource getResourceFromAbsolutePath(java.lang.String absolutePath)
IResource
absolutePath - the absolute path on the file system
IResource or null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||