Java Doc for JdtUtils.java in  » Net » Terracotta » org » terracotta » dso » 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 » Net » Terracotta » org.terracotta.dso 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.terracotta.dso.JdtUtils

JdtUtils
public class JdtUtils (Code)




Method Summary
public static  IJavaElement[]codeResolve(ITextEditor editor)
    
public static  IJavaElement[]codeResolve(ITextEditor editor, boolean primaryOnly)
    
public static  IJavaElement[]codeResolve(IJavaElement input, ITextSelection selection)
    
public static  StringconcatenateName(String name1, String name2)
     Concatenates two names.
public static  IMethod[]findMethods(IType type, String name)
    
public static  ITypefindType(IJavaProject jproject, String fullyQualifiedName)
     Finds a type by its qualified type name (dot separated).
public static  IJavaElementgetEditorInputJavaElement(IEditorPart editor, boolean primaryOnly)
     Returns the given editor's input as Java element.
public static  IJavaElementgetEditorInputJavaElement(IEditorInput editorInput)
     Returns the Java element wrapped by the given editor input.
public static  IJavaElementgetElementAtOffset(ITextEditor editor)
    
public static  IJavaElementgetElementAtOffset(IJavaElement input, ITextSelection selection)
    
public static  StringgetFullyQualifiedName(IType type)
     Returns the fully qualified name of the given type using '.' as separators. This is a replace for IType.getFullyQualifiedTypeName which uses '$' as separators.
public static  IJavaElementgetInput(IEditorPart editor)
    
public static  ICompilationUnitgetInputAsCompilationUnit(ITextEditor editor)
    
public static  IPackageFragmentRootgetPackageFragmentRoot(IJavaElement element)
     Returns the package fragment root of IJavaElement.
public static  StringgetResolvedTypeFileName(String refTypeSig, IType declaringType)
    
public static  StringgetResolvedTypeName(String refTypeSig, IType declaringType)
     Resolves a type name in the context of the declaring type.
Parameters:
  refTypeSig - the type name in signature notation (for example 'QVector') this can also be an array type, but dimensions will be ignored.
Parameters:
  declaringType - the context for resolving (type where the reference was made in) returns the fully qualified type name or build-in-type name.
public static  booleanisTypeNameUnresolved(String refTypeSig)
     Determine if refTypeSig is unresolved.
public static  voidreconcile(ICompilationUnit unit)
     Force a reconcile of a compilation unit.
public static  StringresolveTypeName(String refTypeSig, IType declaringType)
     Resolve refTypeSig in context of declaringType.
public static  voidresolveTypeName(String refTypeSig, IType declaringType, StringBuffer sb)
     Resolve refTypeSig in context of declaringType into sb.



Method Detail
codeResolve
public static IJavaElement[] codeResolve(ITextEditor editor) throws JavaModelException(Code)



codeResolve
public static IJavaElement[] codeResolve(ITextEditor editor, boolean primaryOnly) throws JavaModelException(Code)

Parameters:
  primaryOnly - if true only primary working copies will be returned
since:
   3.2



codeResolve
public static IJavaElement[] codeResolve(IJavaElement input, ITextSelection selection) throws JavaModelException(Code)



concatenateName
public static String concatenateName(String name1, String name2)(Code)
Concatenates two names. Uses a dot for separation. Both strings can be empty or null.



findMethods
public static IMethod[] findMethods(IType type, String name) throws JavaModelException(Code)



findType
public static IType findType(IJavaProject jproject, String fullyQualifiedName) throws JavaModelException(Code)
Finds a type by its qualified type name (dot separated).
Parameters:
  jproject - The java project to search in
Parameters:
  fullyQualifiedName - The fully qualified name (type name with enclosing type names and package (all separated by dots)) The type found, or null if not existing



getEditorInputJavaElement
public static IJavaElement getEditorInputJavaElement(IEditorPart editor, boolean primaryOnly)(Code)
Returns the given editor's input as Java element.
Parameters:
  editor - the editor
Parameters:
  primaryOnly - if true only primary working copies will be returned the given editor's input as Java element or null if none
since:
   3.2



getEditorInputJavaElement
public static IJavaElement getEditorInputJavaElement(IEditorInput editorInput)(Code)
Returns the Java element wrapped by the given editor input.
Parameters:
  editorInput - the editor input the Java element wrapped by editorInput or null if none
since:
   3.2



getElementAtOffset
public static IJavaElement getElementAtOffset(ITextEditor editor) throws JavaModelException(Code)



getElementAtOffset
public static IJavaElement getElementAtOffset(IJavaElement input, ITextSelection selection) throws JavaModelException(Code)



getFullyQualifiedName
public static String getFullyQualifiedName(IType type)(Code)
Returns the fully qualified name of the given type using '.' as separators. This is a replace for IType.getFullyQualifiedTypeName which uses '$' as separators. As '$' is also a valid character in an id this is ambiguous. JavaCore PR: 1GCFUNT



getInput
public static IJavaElement getInput(IEditorPart editor)(Code)



getInputAsCompilationUnit
public static ICompilationUnit getInputAsCompilationUnit(ITextEditor editor)(Code)



getPackageFragmentRoot
public static IPackageFragmentRoot getPackageFragmentRoot(IJavaElement element)(Code)
Returns the package fragment root of IJavaElement. If the given element is already a package fragment root, the element itself is returned.



getResolvedTypeFileName
public static String getResolvedTypeFileName(String refTypeSig, IType declaringType) throws JavaModelException(Code)



getResolvedTypeName
public static String getResolvedTypeName(String refTypeSig, IType declaringType) throws JavaModelException(Code)
Resolves a type name in the context of the declaring type.
Parameters:
  refTypeSig - the type name in signature notation (for example 'QVector') this can also be an array type, but dimensions will be ignored.
Parameters:
  declaringType - the context for resolving (type where the reference was made in) returns the fully qualified type name or build-in-type name. if a unresolved type couldn't be resolved null is returned



isTypeNameUnresolved
public static boolean isTypeNameUnresolved(String refTypeSig)(Code)
Determine if refTypeSig is unresolved.



reconcile
public static void reconcile(ICompilationUnit unit) throws JavaModelException(Code)
Force a reconcile of a compilation unit.
Parameters:
  unit -



resolveTypeName
public static String resolveTypeName(String refTypeSig, IType declaringType)(Code)
Resolve refTypeSig in context of declaringType.



resolveTypeName
public static void resolveTypeName(String refTypeSig, IType declaringType, StringBuffer sb)(Code)
Resolve refTypeSig in context of declaringType into sb.



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.