This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 29621 - Spellchecking support for property files
Summary: Spellchecking support for property files
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Spellchecker (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-12-18 16:17 UTC by _ pkuzel
Modified: 2010-09-06 11:25 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2002-12-18 16:17:23 UTC
Property files typically holds localized texts.
Therefore their spellchecking makes big sense.
There is one common pattern used for them:
everything in '{}' brackets can mean MessageFormat
formating templates.

How can I call spellchecking API? I'm looking for
something like:

  Iterator wordsIterator = <create iterator of
                           Words to check>
  SpellChecker spell = <get spell checked for
                       a locale>
  // show UI and iterates over replacing mispelled
  spell.spell(wordsIterator);  // SpellChecker API

where interface Word can look like:

// SpellChecker API
public interface Word {
  // show word in editor (to get a context to user)
  showWord();

  // replace by corrected value
  replaceBy(String replacement)
}

Could you introduce org.netbeans.api.spellchecker
API, please?
Comment 1 Maros Sandor 2010-09-06 11:25:28 UTC
Spell checking now works in properties files.