* Creates a <code>CloseEditorAction</code> that attempts to close the given <code>Editor</code>
* when invoked. The action is given a default name and icon.
*/
public CloseEditorAction(Editor editor) {
this.editor = editor;
ActionDictionary dict = WindowActionDictionary.DICTIONARY;
String id = CloseActiveEditorAction.ID;
putValue(NAME, dict.getName(id).getRaw());
putValue(SMALL_ICON, CommonIcons.CLOSE_16);
}