/**
* Prompt for editor.
*/
public void promptForEditor() {
EditorSelectionDialog dialog = new EditorSelectionDialog(getControl()
.getShell());
dialog.setEditorsToFilter(getAssociatedEditors());
dialog
.setMessage(NLS.bind(WorkbenchMessages.Choose_the_editor_for_file,getSelectedResourceType().getLabel() ));
if (dialog.open() == Window.OK) {
EditorDescriptor editor = (EditorDescriptor) dialog
.getSelectedEditor();
if (editor != null) {
int i = editorTable.getItemCount();
boolean isEmpty = i < 1;
TableItem item = new TableItem(editorTable, SWT.NULL, i);