org.eclipse.jdt.internal.ui.text.spelling

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.spelling 
org.eclipse.jdt.internal.ui.text.spelling
Package-level Javadoc Provides facilities for spell-checking of comments and strings in Java source code.

Package Specification

The content of this package extends the base functionality of the spell-checking engine.

It contains a spell-check engine specialized in Javadoc comments. Several dictionaries with Java specific content like Javadoc keywords, HTML tags and Task tags are provided. Additionally, the engine contributes correction proposals to the QuickFix processor. For non Java specific content the engine also contributes word completion proposals to the content assist processor.

Spell-check engine

SpellCheckEngine is the default implementation of the interface ISpellCheckEngine. It provides a facade for dealing with the setup of a spell-checker. This class provides methods to retrieve the available dictionaries and is responsible for the registration of those with the spell-checker. SpellCheckEngine also has support for life-cycle management. Single dictionaries can be temporarily unloaded from memory or unregistered.
To contribute own dictionaries use the methods to register locale sensitive or insensitive dictionaries. A dictionary can be associated to a specified locale, but can also be available for spell-checking arbitrary text in arbitrary languages. The actual spell-checker for a specified language can then be obtained by calling createSpellChecker(Locale). This is the central point to working with the spell-checker. When requesting a spell-checker for a specified locale, the engine looks up the corresponding dictionary and registers it with the spell-checker. Note that the dictionaries are lazily loaded and can be further optimized by prefiltering the queried words.

Note: Locale sensitive dictionaries must be located in the "dictionaries/" subdirectory of the JDT UI plugin install location. The dictionaries are newline-separated word lists having the filename "language_country.dictionary", where "language" and "country" are the lowercase ISO-3166 language and country codes, respectively. The default dictionary is "en_us.dictionary". For correct behavior of the spell-check engine, at least the default dictionary must be installed. The default dictionary corresponds to the default locale of the spell-check engine.

Dictionaries

This implementation for a Javadoc comment spell-checker provides the following read-only dictionaries:
  • A dictionary for Javadoc tags: This dictionary contains the most commonly used Javadoc tags. When spell-checking Javadoc comments, this dictionary contributes correction proposals to the QuickFix processor to correct misspelt Javadoc tags.
  • A dictionary for HTML tags: This dictionary contains the most commonly used HTML tags for writing Javadoc comments. When spell-checking Javadoc- or multiline comments, this dictionary contributes correction proposals to the QuickFix processor as well as word completion proposals to the Content Assist processor.
  • A dictionary for Task tags: This dictionary reflects the currently available Java Task tags. When spell-checking arbitrary text in Java files, this dictionary contributes proposals both to the QuickFix processor and the Content Assist processor.

QuickFix processor

The comment spell-checker also contributes a quickfix processor as an extension. This implementation of a quickfix processor contributes the following correction proposals:
  • Proposals for correct spelling: A number of words considered most similar to the incorrectly spelt word.
  • The proposal to correct the sentence capitalization: This proposal is offered on incorrectly spelt words at the beginning of a sentence.
  • The proposal to add the unrecognized word to the locale-insensitive dictionaries
  • The proposal to ignore the word during the current editing session

Content Assist processor

The last contribution of the spell-checker is the support for word completion. The spell-checker provides a custom content assist processor to produce word completion proposals.
Word completion works on all non Java code content types and delivers a number of proposals based on the current caret position.
Java Source File NameTypeComment
AddWordProposal.javaClass Proposal to add the unknown word to the dictionaries.
ChangeCaseProposal.javaClass Proposal to change the letter case of a word.
CoreSpellingProblem.javaClass Spelling problem to be accepted by problem requesters.
DefaultSpellingEngine.javaClass Default spelling engine.

Internally this spelling engine uses a different spelling engine depending on the .

DisableSpellCheckingProposal.javaClass Proposal to disable spell checking.
HtmlTagDictionary.javaClass Dictionary for html tags.
JavaDocTagDictionary.javaClass Dictionary for Javadoc tags.
JavaSpellingEngine.javaClass
JavaSpellingProblem.javaClass A SpellingProblem that adapts a ISpellEvent .
JavaSpellingReconcileStrategy.javaClass Reconcile strategy for spell checking comments.
PropertiesFileSpellCheckIterator.javaClass Iterator to spell check Java properties files where '&' is ignored.
PropertiesFileSpellingEngine.javaClass
SpellCheckEngine.javaClass Spell check engine for Java source spell checking.
SpellCheckIterator.javaClass Iterator to spell check javadoc comment regions.
SpellingEngine.javaClass Internal abstract spelling engine, subclasses provide a content-type specific implementation.
TaskTagDictionary.javaClass Dictionary for task tags.
TextSpellingEngine.javaClass
WordCompletionProposalComputer.javaClass Content assist processor to complete words.
WordCorrectionProposal.javaClass Proposal to correct the incorrectly spelled word.
WordIgnoreProposal.javaClass Proposal to ignore the word during the current editing session.
WordQuickFixProcessor.javaClass Quick fix processor for incorrectly spelled words.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.