Adopting 3.4 mechanisms and APIs

This section describes changes that are required if you are trying to change your 3.3 plug-in to adopt the 3.4 mechanisms and APIs.

  1. Quick Fix command moved to Dialogs and Windows context
  2. IFile.getCharset() caches character set values

1. Quick Fix command moved to Dialogs and Windows context

In order to enable Quick Fix in dialogs we moved the org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals command to the Dialogs and Windows context. Clients who registered that command for the Dialogs or Dialogs and Windows context can now remove their contribution from their plugin.xml.

2. IFile.getCharset() caches character set values

The method IFile.getCharset returns a cached value for the file's encoding. If the file's encoding has been changed externally, and has not since been synchronized with the workspace using IResource.refreshLocal, it may return a stale result. Clients that call this method should revisit their usage to determine if a cached result is acceptable. While using a cached encoding has better performance, it could lead to data corruption if the wrong encoding is used to write a file.