Java Doc for Openable.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.internal.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.internal.core.JavaElement
   org.eclipse.jdt.internal.core.Openable

All known Subclasses:   org.eclipse.jdt.internal.core.CompilationUnit,  org.eclipse.jdt.internal.core.JavaProject,  org.eclipse.jdt.internal.core.JavaModel,  org.eclipse.jdt.internal.core.ClassFile,  org.eclipse.jdt.internal.core.PackageFragment,  org.eclipse.jdt.internal.core.PackageFragmentRoot,
Openable
abstract public class Openable extends JavaElement implements IOpenable,IBufferChangedListener(Code)
Abstract class for implementations of java elements which are IOpenable.
See Also:   IJavaElement
See Also:   IOpenable



Constructor Summary
protected  Openable(JavaElement parent)
    

Method Summary
public  voidbufferChanged(BufferChangedEvent event)
     The buffer associated with this element has changed.
abstract protected  booleanbuildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
     Builds this element's structure and properties in the given info object, based on this element's current contents (reuse buffer contents if this element has an open buffer, or resource contents if this element does not have an open buffer).
public  booleancanBeRemovedFromCache()
    
public  booleancanBufferBeRemovedFromCache(IBuffer buffer)
    
protected  voidcloseBuffer()
     Close the buffer associated with this element, if any.
protected  voidclosing(Object info)
     This element is being closed.
protected  voidcodeComplete(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, org.eclipse.jdt.internal.compiler.env.ICompilationUnit unitToSkip, int position, CompletionRequestor requestor, WorkingCopyOwner owner)
    
protected  IJavaElement[]codeSelect(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, int offset, int length, WorkingCopyOwner owner)
    
protected  ObjectcreateElementInfo()
    
public  booleanexists()
    
public  StringfindRecommendedLineSeparator()
    
protected  voidgenerateInfos(Object info, HashMap newElements, IProgressMonitor monitor)
    
public  IBuffergetBuffer()
     Note: a buffer with no unsaved changes can be closed by the Java Model since it has a finite number of buffers allowed open at one time.
public  IBufferFactorygetBufferFactory()
    
protected  BufferManagergetBufferManager()
     Returns the buffer manager for this element.
public  IResourcegetCorrespondingResource()
     Return my underlying resource.
public  IOpenablegetOpenable()
    
public  PackageFragmentRootgetPackageFragmentRoot()
    
public  IResourcegetUnderlyingResource()
    
protected  booleanhasBuffer()
     Returns true if this element may have an associated source buffer, otherwise false.
public  booleanhasUnsavedChanges()
    
public  booleanisConsistent()
     Subclasses must override as required.
public  booleanisOpen()
    
protected  booleanisSourceElement()
     Returns true if this represents a source element.
public  booleanisStructureKnown()
    
public  voidmakeConsistent(IProgressMonitor monitor)
    
public  voidopen(IProgressMonitor pm)
    
protected  IBufferopenBuffer(IProgressMonitor pm, Object info)
     Opens a buffer on the contents of this element, and returns the buffer, or returns null if opening fails.
protected  voidopenParent(Object childInfo, HashMap newElements, IProgressMonitor pm)
     Open the parent element if necessary.
protected  booleanparentExists()
    
protected  booleanresourceExists()
    
public  voidsave(IProgressMonitor pm, boolean force)
    


Constructor Detail
Openable
protected Openable(JavaElement parent)(Code)




Method Detail
bufferChanged
public void bufferChanged(BufferChangedEvent event)(Code)
The buffer associated with this element has changed. Registers this element as being out of synch with its buffer's contents. If the buffer has been closed, this element is set as NOT out of synch with the contents.
See Also:   IBufferChangedListener



buildStructure
abstract protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException(Code)
Builds this element's structure and properties in the given info object, based on this element's current contents (reuse buffer contents if this element has an open buffer, or resource contents if this element does not have an open buffer). Children are placed in the given newElements table (note, this element has already been placed in the newElements table). Returns true if successful, or false if an error is encountered while determining the structure of this element.



canBeRemovedFromCache
public boolean canBeRemovedFromCache()(Code)



canBufferBeRemovedFromCache
public boolean canBufferBeRemovedFromCache(IBuffer buffer)(Code)



closeBuffer
protected void closeBuffer()(Code)
Close the buffer associated with this element, if any.



closing
protected void closing(Object info)(Code)
This element is being closed. Do any necessary cleanup.



codeComplete
protected void codeComplete(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, org.eclipse.jdt.internal.compiler.env.ICompilationUnit unitToSkip, int position, CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException(Code)



codeSelect
protected IJavaElement[] codeSelect(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, int offset, int length, WorkingCopyOwner owner) throws JavaModelException(Code)



createElementInfo
protected Object createElementInfo()(Code)



exists
public boolean exists()(Code)

See Also:   IJavaElement



findRecommendedLineSeparator
public String findRecommendedLineSeparator() throws JavaModelException(Code)



generateInfos
protected void generateInfos(Object info, HashMap newElements, IProgressMonitor monitor) throws JavaModelException(Code)



getBuffer
public IBuffer getBuffer() throws JavaModelException(Code)
Note: a buffer with no unsaved changes can be closed by the Java Model since it has a finite number of buffers allowed open at one time. If this is the first time a request is being made for the buffer, an attempt is made to create and fill this element's buffer. If the buffer has been closed since it was first opened, the buffer is re-created.
See Also:   IOpenable



getBufferFactory
public IBufferFactory getBufferFactory()(Code)
Answers the buffer factory to use for creating new buffers



getBufferManager
protected BufferManager getBufferManager()(Code)
Returns the buffer manager for this element.



getCorrespondingResource
public IResource getCorrespondingResource() throws JavaModelException(Code)
Return my underlying resource. Elements that may not have a corresponding resource must override this method.
See Also:   IJavaElement



getOpenable
public IOpenable getOpenable()(Code)



getPackageFragmentRoot
public PackageFragmentRoot getPackageFragmentRoot()(Code)
Find enclosing package fragment root if any



getUnderlyingResource
public IResource getUnderlyingResource() throws JavaModelException(Code)

See Also:   IJavaElement



hasBuffer
protected boolean hasBuffer()(Code)
Returns true if this element may have an associated source buffer, otherwise false. Subclasses must override as required.



hasUnsavedChanges
public boolean hasUnsavedChanges() throws JavaModelException(Code)

See Also:   IOpenable



isConsistent
public boolean isConsistent()(Code)
Subclasses must override as required.
See Also:   IOpenable



isOpen
public boolean isOpen()(Code)

See Also:   IOpenable



isSourceElement
protected boolean isSourceElement()(Code)
Returns true if this represents a source element. Openable source elements have an associated buffer created when they are opened.



isStructureKnown
public boolean isStructureKnown() throws JavaModelException(Code)

See Also:   IJavaElement



makeConsistent
public void makeConsistent(IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IOpenable



open
public void open(IProgressMonitor pm) throws JavaModelException(Code)

See Also:   IOpenable



openBuffer
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException(Code)
Opens a buffer on the contents of this element, and returns the buffer, or returns null if opening fails. By default, do nothing - subclasses that have buffers must override as required.



openParent
protected void openParent(Object childInfo, HashMap newElements, IProgressMonitor pm) throws JavaModelException(Code)
Open the parent element if necessary.



parentExists
protected boolean parentExists()(Code)
Answers true if the parent exists (null parent is answering true)



resourceExists
protected boolean resourceExists()(Code)
Returns whether the corresponding resource or associated file exists



save
public void save(IProgressMonitor pm, boolean force) throws JavaModelException(Code)

See Also:   IOpenable



Fields inherited from org.eclipse.jdt.internal.core.JavaElement
final public static char JEM_CLASSFILE(Code)(Java Doc)
final public static char JEM_COMPILATIONUNIT(Code)(Java Doc)
final public static char JEM_COUNT(Code)(Java Doc)
final public static char JEM_ESCAPE(Code)(Java Doc)
final public static char JEM_FIELD(Code)(Java Doc)
final public static char JEM_IMPORTDECLARATION(Code)(Java Doc)
final public static char JEM_INITIALIZER(Code)(Java Doc)
final public static char JEM_JAVAPROJECT(Code)(Java Doc)
final public static char JEM_LOCALVARIABLE(Code)(Java Doc)
final public static char JEM_METHOD(Code)(Java Doc)
final public static char JEM_PACKAGEDECLARATION(Code)(Java Doc)
final public static char JEM_PACKAGEFRAGMENT(Code)(Java Doc)
final public static char JEM_PACKAGEFRAGMENTROOT(Code)(Java Doc)
final public static char JEM_TYPE(Code)(Java Doc)
final public static char JEM_TYPE_PARAMETER(Code)(Java Doc)
final protected static JavaElement[] NO_ELEMENTS(Code)(Java Doc)
final protected static Object NO_INFO(Code)(Java Doc)
protected JavaElement parent(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.internal.core.JavaElement
public void close() throws JavaModelException(Code)(Java Doc)
abstract protected void closing(Object info) throws JavaModelException(Code)(Java Doc)
abstract protected Object createElementInfo()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void escapeMementoName(StringBuffer buffer, String mementoName)(Code)(Java Doc)
public boolean exists()(Code)(Java Doc)
public ASTNode findNode(CompilationUnit ast)(Code)(Java Doc)
abstract protected void generateInfos(Object info, HashMap newElements, IProgressMonitor pm) throws JavaModelException(Code)(Java Doc)
public IJavaElement getAncestor(int ancestorType)(Code)(Java Doc)
public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public IJavaElement[] getChildren() throws JavaModelException(Code)(Java Doc)
public ArrayList getChildrenOfType(int type) throws JavaModelException(Code)(Java Doc)
public IClassFile getClassFile()(Code)(Java Doc)
public ICompilationUnit getCompilationUnit()(Code)(Java Doc)
public Object getElementInfo() throws JavaModelException(Code)(Java Doc)
public Object getElementInfo(IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public String getElementName()(Code)(Java Doc)
abstract public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner owner)(Code)(Java Doc)
public IJavaElement getHandleFromMemento(MementoTokenizer memento, WorkingCopyOwner owner)(Code)(Java Doc)
public String getHandleIdentifier()(Code)(Java Doc)
public String getHandleMemento()(Code)(Java Doc)
protected void getHandleMemento(StringBuffer buff)(Code)(Java Doc)
abstract protected char getHandleMementoDelimiter()(Code)(Java Doc)
int getIndexOf(byte[] array, byte[] toBeFound, int start)(Code)(Java Doc)
public IJavaModel getJavaModel()(Code)(Java Doc)
public IJavaProject getJavaProject()(Code)(Java Doc)
protected URL getJavadocBaseLocation() throws JavaModelException(Code)(Java Doc)
protected static URL getLibraryJavadocLocation(IClasspathEntry entry) throws JavaModelException(Code)(Java Doc)
public IOpenable getOpenable()(Code)(Java Doc)
public IOpenable getOpenableParent()(Code)(Java Doc)
public IJavaElement getParent()(Code)(Java Doc)
public IJavaElement getPrimaryElement()(Code)(Java Doc)
public IJavaElement getPrimaryElement(boolean checkOwner)(Code)(Java Doc)
public ISchedulingRule getSchedulingRule()(Code)(Java Doc)
protected IJavaElement getSourceElementAt(int position) throws JavaModelException(Code)(Java Doc)
public SourceMapper getSourceMapper()(Code)(Java Doc)
protected String getURLContents(String docUrlValue) throws JavaModelException(Code)(Java Doc)
public boolean hasChildren() throws JavaModelException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isAncestorOf(IJavaElement e)(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public JavaModelException newJavaModelException(IStatus status)(Code)(Java Doc)
public JavaModelException newNotPresentException()(Code)(Java Doc)
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public String readableName()(Code)(Java Doc)
public JavaElement resolved(Binding binding)(Code)(Java Doc)
protected String tabString(int tab)(Code)(Java Doc)
public String toDebugString()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void toString(int tab, StringBuffer buffer)(Code)(Java Doc)
protected void toStringAncestors(StringBuffer buffer)(Code)(Java Doc)
protected void toStringChildren(int tab, StringBuffer buffer, Object info)(Code)(Java Doc)
public Object toStringInfo(int tab, StringBuffer buffer)(Code)(Java Doc)
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)(Code)(Java Doc)
protected void toStringName(StringBuffer buffer)(Code)(Java Doc)
public String toStringWithAncestors()(Code)(Java Doc)
public String toStringWithAncestors(boolean showResolvedInfo)(Code)(Java Doc)
public JavaElement unresolved()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.