|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.java.provider.ProviderContext oracle.jdeveloper.java.provider.JdevProviderContext
public class JdevProviderContext
The BaseFileProvider
is an abstract starting point for
an implementation of the JavaFileProvider
interface that relies
on a JavaClassLocator
instance for locating Java class and
source files.
This implementation contains no caching.
Nested Class Summary | |
---|---|
protected class |
JdevProviderContext.NodeObserver
The NodeObserver attaches to nodes for which we have created SourceFile instances for, and tracks the given node until the node is closed, or renamed. |
Field Summary | |
---|---|
protected java.util.Map<java.net.URL,JdevProviderContext.NodeObserver> |
_urlToObserverMap
The set of URLs that we are currently tracking. |
protected static java.lang.Class |
JAVACLASSNODE_CLASS
The JavaClassNode class instance |
protected static java.lang.Class |
JAVASOURCENODE_CLASS
The JavaSourceNode class instance |
Fields inherited from class oracle.jdeveloper.java.provider.ProviderContext |
---|
CLASS_SUFFIX, provider, SOURCE_SUFFIX |
Fields inherited from interface oracle.jdeveloper.java.provider.ProviderConstants |
---|
CLASS_TYPE, EMPTY_COLLECTION, SOURCE_TYPE, UNKNOWN_TYPE |
Constructor Summary | |
---|---|
JdevProviderContext(boolean allowInMemoryIn)
|
Method Summary | |
---|---|
protected void |
clearTracking()
Utility routine to stop tracking all Nodes. |
SourceFile |
createSourceFile(java.net.URL sourceURL,
int j2se)
Instead of directly interacting with the filesystem, use the Ide's Node model. |
protected int |
getFileType(java.net.URL url)
Use the recognizer to check for source files and class files. |
SourceFile |
getSourceFile(java.net.URL url,
int j2se)
Gets a new SourceFile object for the (existing) file at the given URL. |
protected SourcePreferences |
getSourcePreferences()
Retrieve preferences options from the coding style manager. |
protected TextBuffer |
getTextBuffer(java.net.URL url)
Fetch the TextBuffer for the given URL. |
protected void |
startTracking(java.net.URL url)
Utility routine to start tracking the Node represented by the URL. |
protected void |
stopTracking(java.net.URL url)
Utility routine to stop tracking the Node represented by the URL. |
boolean |
writeSourceFile(SourceFile file)
Called when SourceTransaction.commit() is called for the given file. |
Methods inherited from class oracle.jdeveloper.java.provider.ProviderContext |
---|
getSourceFile, getSourceFileImpl, setProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.Class JAVACLASSNODE_CLASS
protected static final java.lang.Class JAVASOURCENODE_CLASS
protected java.util.Map<java.net.URL,JdevProviderContext.NodeObserver> _urlToObserverMap
Constructor Detail |
---|
public JdevProviderContext(boolean allowInMemoryIn)
Method Detail |
---|
protected final int getFileType(java.net.URL url)
getFileType
in class ProviderContext
protected final SourcePreferences getSourcePreferences()
getSourcePreferences
in class ProviderContext
public SourceFile createSourceFile(java.net.URL sourceURL, int j2se) throws java.io.IOException, java.lang.IllegalArgumentException
createSourceFile
in class ProviderContext
sourceURL
- The source URL to create a new Java file for.
java.io.IOException
- if the new file cannot be created.
java.lang.IllegalArgumentException
- if the URL is not recognized
as a Java source file.public SourceFile getSourceFile(java.net.URL url, int j2se)
ProviderContext
getSourceFile
in class ProviderContext
url
- The source URL to create a new Java file for.
public boolean writeSourceFile(SourceFile file)
ProviderContext
writeSourceFile
in class ProviderContext
protected TextBuffer getTextBuffer(java.net.URL url)
getTextBuffer
in class ProviderContext
protected void startTracking(java.net.URL url)
startTracking
in class ProviderContext
protected void stopTracking(java.net.URL url)
protected void clearTracking()
clearTracking
in class ProviderContext
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |