public void init() {}
@Override
public void execute(IAction action) {
VisualForceMultiPageEditor multiPageEditor = getSControlMultiPageEditor();
SnippetDialog snippetDialog =
new SnippetDialog(multiPageEditor.getTextEditor().getSite().getShell(), multiPageEditor.getTextEditor());
try {
snippetDialog.setSnippetDialogController(new SnippetDialogController());
} catch (ForceProjectException e) {
logger.warn("Unable to get snippet controller", e);
Utils.openError("Action Error", "Unable to open Merge Field: " + e.getMessage());
return;
}
IFile file = multiPageEditor.getEditorInputFile();
snippetDialog.setProject(file.getProject());
snippetDialog.open();
}