Java Doc for BytecodeClassFileEditor.java in  » Byte-Code » asm » de » loskutov » bco » editors » 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 » Byte Code » asm » de.loskutov.bco.editors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.loskutov.bco.editors.BytecodeClassFileEditor

BytecodeClassFileEditor
public class BytecodeClassFileEditor extends JavaEditor implements ClassFileDocumentProvider.InputChangeListener(Code)
A "better" way to hook into JDT...
author:
   Eugene Kuleshov, V. Grishchenko, Jochen Klein, Andrei Loskutov


Field Summary
final public static  StringID
    
final public static  StringMARK
    

Constructor Summary
public  BytecodeClassFileEditor()
     Constructor for JadclipseClassFileEditor.

Method Summary
protected  voidadjustHighlightRange(int offset, int length)
    
public static  IRegioncheckForInnerClass(int sourceLine, IClassFile parent)
     Check if we can show an inner class, which was declared in the source code of the given parent class and which could have the bytecode for the given source line.
protected  ISourceReferencecomputeHighlightRangeSourceReference()
    
public  ITextSelectionconvertLine(int sourceLine)
    
public  ITextSelectionconvertSelection(ITextSelection textSelection, boolean toDecompiled)
    
public  voidcreatePartControl(Composite parent)
    
public  voiddispose()
    
public  voiddoSetInput(boolean force, boolean reuseSource)
     Sets editor input only if buffer was actually opened.
protected  voiddoSetInput(IEditorInput input)
    
public  ObjectgetAdapter(Class required)
    
public  intgetBytecodeInstructionAtLine(int line)
    
public  IClassFilegetClassFile()
    
protected  IJavaElementgetCorrespondingElement(IJavaElement element)
    
public  booleangetDecompilerFlag(int flag)
    
protected  IJavaElementgetElementAt(int offset)
    
public  intgetSourceLine(ITextSelection bytecodeSelection)
    
public static  BytecodeSourceMappergetSourceMapper()
    
protected  booleanhasMappedSource()
    
public  voidinit(IEditorSite site, IEditorInput input)
    
public  voidinputChanged(IClassFileEditorInput input)
    
public  booleanisDecompiled()
    
public  booleanisEditable()
    
public  booleanisEditorInputModifiable()
    
public  booleanisEditorInputReadOnly()
    
public  booleanisSaveAsAllowed()
    
public  voidsetDecompilerFlag(int flag, boolean value)
    
protected  voidsetHasMappedSource(boolean hasMappedSource)
    
protected  voidsetSelection(ISourceReference reference, boolean moveCursor)
    
public  voidshowHighlightRangeOnly(boolean showHighlightRangeOnly)
    
protected  IClassFileEditorInputtransformEditorInput(Object input)
    
protected  voidupdateOccurrenceAnnotations(ITextSelection selection, CompilationUnit astRoot)
    

Field Detail
ID
final public static String ID(Code)



MARK
final public static String MARK(Code)




Constructor Detail
BytecodeClassFileEditor
public BytecodeClassFileEditor()(Code)
Constructor for JadclipseClassFileEditor.




Method Detail
adjustHighlightRange
protected void adjustHighlightRange(int offset, int length)(Code)



checkForInnerClass
public static IRegion checkForInnerClass(int sourceLine, IClassFile parent)(Code)
Check if we can show an inner class, which was declared in the source code of the given parent class and which could have the bytecode for the given source line. If both are true, then this method changes the input of the bytecode editor with the given class file (if any) to the inner class, or opens a new editor with the inner class.
Parameters:
  sourceLine - requested source line (from debugger)
Parameters:
  parent - expected parent class file The region in the inner class (if inner class could be found), or an emptyzero-based region.



computeHighlightRangeSourceReference
protected ISourceReference computeHighlightRangeSourceReference()(Code)



convertLine
public ITextSelection convertLine(int sourceLine)(Code)



convertSelection
public ITextSelection convertSelection(ITextSelection textSelection, boolean toDecompiled)(Code)



createPartControl
public void createPartControl(Composite parent)(Code)



dispose
public void dispose()(Code)



doSetInput
public void doSetInput(boolean force, boolean reuseSource)(Code)
Sets editor input only if buffer was actually opened.
Parameters:
  force - if true initialize no matter what
Parameters:
  reuseSource - true to show source code if available



doSetInput
protected void doSetInput(IEditorInput input) throws CoreException(Code)



getAdapter
public Object getAdapter(Class required)(Code)



getBytecodeInstructionAtLine
public int getBytecodeInstructionAtLine(int line)(Code)



getClassFile
public IClassFile getClassFile()(Code)



getCorrespondingElement
protected IJavaElement getCorrespondingElement(IJavaElement element)(Code)



getDecompilerFlag
public boolean getDecompilerFlag(int flag)(Code)



getElementAt
protected IJavaElement getElementAt(int offset)(Code)



getSourceLine
public int getSourceLine(ITextSelection bytecodeSelection)(Code)



getSourceMapper
public static BytecodeSourceMapper getSourceMapper()(Code)



hasMappedSource
protected boolean hasMappedSource()(Code)
the hasMappedSource



init
public void init(IEditorSite site, IEditorInput input) throws PartInitException(Code)



inputChanged
public void inputChanged(IClassFileEditorInput input)(Code)



isDecompiled
public boolean isDecompiled()(Code)
true if this editor displays decompiled source,false otherwise



isEditable
public boolean isEditable()(Code)



isEditorInputModifiable
public boolean isEditorInputModifiable()(Code)



isEditorInputReadOnly
public boolean isEditorInputReadOnly()(Code)



isSaveAsAllowed
public boolean isSaveAsAllowed()(Code)



setDecompilerFlag
public void setDecompilerFlag(int flag, boolean value)(Code)



setHasMappedSource
protected void setHasMappedSource(boolean hasMappedSource)(Code)

Parameters:
  hasMappedSource - the hasMappedSource to set



setSelection
protected void setSelection(ISourceReference reference, boolean moveCursor)(Code)



showHighlightRangeOnly
public void showHighlightRangeOnly(boolean showHighlightRangeOnly)(Code)



transformEditorInput
protected IClassFileEditorInput transformEditorInput(Object input)(Code)
Translates the given object into an IClassFileEditorInput
Parameters:
  input - the object to be transformed if necessary the transformed editor input



updateOccurrenceAnnotations
protected void updateOccurrenceAnnotations(ITextSelection selection, CompilationUnit astRoot)(Code)



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