Java Doc for FileSystemElement.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » dialogs » 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 » ui workbench » org.eclipse.ui.dialogs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.dialogs.FileSystemElement

FileSystemElement
public class FileSystemElement implements IAdaptable(Code)
Instances of this class represent files or file-like entities (eg.- zip file entries) on the local file system. They do not represent resources within the workbench. This distinction is made because the representation of a file system resource is significantly different from that of a workbench resource. If self represents a collection (eg.- file system directory, zip directory) then its icon will be the folderIcon static field. Otherwise (ie.- self represents a file system file) self's icon is stored in field "icon", and is determined by the extension of the file that self represents. This class is adaptable, and implements one adapter itself, namely the IWorkbenchAdapter adapter used for navigation and display in the workbench.



Constructor Summary
public  FileSystemElement(String name, FileSystemElement parent, boolean isDirectory)
     Creates a new FileSystemElement and initializes it and its parent if applicable.
Parameters:
  name - The name of the element
Parameters:
  parent - The parent element.

Method Summary
public  voidaddChild(FileSystemElement child)
     Adds the passed child to this object's collection of children.
public  ObjectgetAdapter(Class adapter)
    
public  StringgetFileNameExtension()
     Returns the extension of this element's filename.
public  ObjectgetFileSystemObject()
    
public  AdaptableListgetFiles()
     Answer the files property of this element.
public  AdaptableListgetFolders()
     Returns a list of the folders that are immediate children of this folder. Answer an empty list if the folders property is null.
public  FileSystemElementgetParent()
     Return the parent of this element.
public  booleanisDirectory()
    
public  voidremoveFolder(FileSystemElement child)
     Removes a sub-folder from this file system element.
public  voidsetFileSystemObject(Object value)
    
public  voidsetParent(FileSystemElement element)
     Sets the parent of this file system element.
public  StringtoString()
     For debugging purposes only.


Constructor Detail
FileSystemElement
public FileSystemElement(String name, FileSystemElement parent, boolean isDirectory)(Code)
Creates a new FileSystemElement and initializes it and its parent if applicable.
Parameters:
  name - The name of the element
Parameters:
  parent - The parent element. May be null
Parameters:
  isDirectory - if true this is representing a directory,otherwise it is a file.




Method Detail
addChild
public void addChild(FileSystemElement child)(Code)
Adds the passed child to this object's collection of children.
Parameters:
  child - FileSystemElement



getAdapter
public Object getAdapter(Class adapter)(Code)
Returns the adapter



getFileNameExtension
public String getFileNameExtension()(Code)
Returns the extension of this element's filename. The extension or an empty string if there is no extension.



getFileSystemObject
public Object getFileSystemObject()(Code)
Returns the file system object property of this element the file system object



getFiles
public AdaptableList getFiles()(Code)
Answer the files property of this element. Answer an empty list if the files property is null. This method should not be used to add children to the receiver. Use addChild(FileSystemElement) instead. AdaptableList The list of files parented by the receiver.



getFolders
public AdaptableList getFolders()(Code)
Returns a list of the folders that are immediate children of this folder. Answer an empty list if the folders property is null. This method should not be used to add children to the receiver. Use addChild(FileSystemElement) instead. AdapatableList The list of folders parented by the receiver.



getParent
public FileSystemElement getParent()(Code)
Return the parent of this element. the parent file system element, or null if this isthe root



isDirectory
public boolean isDirectory()(Code)
boolean true if this element represents adirectory, and false otherwise.



removeFolder
public void removeFolder(FileSystemElement child)(Code)
Removes a sub-folder from this file system element.
Parameters:
  child - The child to remove.



setFileSystemObject
public void setFileSystemObject(Object value)(Code)
Set the file system object property of this element
Parameters:
  value - the file system object



setParent
public void setParent(FileSystemElement element)(Code)
Sets the parent of this file system element.
Parameters:
  element - The new parent.



toString
public String toString()(Code)
For debugging purposes only.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.