public void run(IAction action) {
//We open a dialog, with a tree
GetterAndSetterDialog dialog = new GetterAndSetterDialog(editor.getSite().getShell());
dialog.open();
int startpos = docselection.getOffset();
int len = Math.max(docselection.getLength(),1);
//check what type of document this is