Java Doc for TemplateProposal.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » ui » text » template » contentassist » 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.ui.text.template.contentassist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateProposal

All known Subclasses:   org.eclipse.jdt.internal.ui.text.template.contentassist.SurroundWithTemplateProposal,
TemplateProposal
public class TemplateProposal implements IJavaCompletionProposal,ICompletionProposalExtension2,ICompletionProposalExtension3,ICompletionProposalExtension4(Code)
A template proposal.



Constructor Summary
public  TemplateProposal(Template template, TemplateContext context, IRegion region, Image image)
     Creates a template proposal with a template and its context.

Method Summary
final public  voidapply(IDocument document)
    
public  voidapply(ITextViewer viewer, char trigger, int stateMask, int offset)
    
public  StringgetAdditionalProposalInfo()
    
final protected  TemplateContextgetContext()
     Returns the context in which the template was requested.
public  IContextInformationgetContextInformation()
    
public  StringgetDisplayString()
    
public  ImagegetImage()
    
public  IInformationControlCreatorgetInformationControlCreator()
    
public  intgetPrefixCompletionStart(IDocument document, int completionOffset)
    
public  CharSequencegetPrefixCompletionText(IDocument document, int completionOffset)
    
public  intgetRelevance()
    
final protected  intgetReplaceEndOffset()
     Returns the end offset of the range in the document that will be replaced by applying this template.
final protected  intgetReplaceOffset()
     Returns the offset of the range in the document that will be replaced by applying this template.
public  PointgetSelection(IDocument document)
    
final public  TemplategetTemplate()
     Returns the template of this proposal.
public  booleanisAutoInsertable()
    
public  voidselected(ITextViewer viewer, boolean smartToggle)
    
public  voidsetDisplayString(String displayString)
    
public  voidsetRelevance(int relevance)
    
public  voidunselected(ITextViewer viewer)
    
public  booleanvalidate(IDocument document, int offset, DocumentEvent event)
    


Constructor Detail
TemplateProposal
public TemplateProposal(Template template, TemplateContext context, IRegion region, Image image)(Code)
Creates a template proposal with a template and its context.
Parameters:
  template - the template
Parameters:
  context - the context in which the template was requested.
Parameters:
  region - the region this proposal is applied to
Parameters:
  image - the icon of the proposal.




Method Detail
apply
final public void apply(IDocument document)(Code)



apply
public void apply(ITextViewer viewer, char trigger, int stateMask, int offset)(Code)



getAdditionalProposalInfo
public String getAdditionalProposalInfo()(Code)



getContext
final protected TemplateContext getContext()(Code)
Returns the context in which the template was requested. the context in which the template was requested
since:
   3.1



getContextInformation
public IContextInformation getContextInformation()(Code)



getDisplayString
public String getDisplayString()(Code)



getImage
public Image getImage()(Code)



getInformationControlCreator
public IInformationControlCreator getInformationControlCreator()(Code)



getPrefixCompletionStart
public int getPrefixCompletionStart(IDocument document, int completionOffset)(Code)



getPrefixCompletionText
public CharSequence getPrefixCompletionText(IDocument document, int completionOffset)(Code)



getRelevance
public int getRelevance()(Code)



getReplaceEndOffset
final protected int getReplaceEndOffset()(Code)
Returns the end offset of the range in the document that will be replaced by applying this template. the end offset of the range in the document that will be replacedby applying this template



getReplaceOffset
final protected int getReplaceOffset()(Code)
Returns the offset of the range in the document that will be replaced by applying this template. the offset of the range in the document that will be replaced byapplying this template



getSelection
public Point getSelection(IDocument document)(Code)



getTemplate
final public Template getTemplate()(Code)
Returns the template of this proposal. the template of this proposal
since:
   3.1



isAutoInsertable
public boolean isAutoInsertable()(Code)



selected
public void selected(ITextViewer viewer, boolean smartToggle)(Code)



setDisplayString
public void setDisplayString(String displayString)(Code)



setRelevance
public void setRelevance(int relevance)(Code)



unselected
public void unselected(ITextViewer viewer)(Code)



validate
public boolean validate(IDocument document, int offset, DocumentEvent event)(Code)



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)

w___ww___.___ja_v__a___2_s__._c__o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.