public void run(IAction action) {
IDocumentProvider dp = editor.getDocumentProvider();
IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput());
TextSelectionNavigationLocation navloc = (TextSelectionNavigationLocation) editor.createNavigationLocation();
TextSelection selection=(TextSelection) editor.getSelectionProvider().getSelection();
int line=selection.getStartLine();
try {
String text=document.get(document.getLineOffset(line),document.getLineLength(line));
org.jbehave.plugin.eclipse.model.StoryLine storyLine = StoryLine.parseLine(text);
if (storyLine!=null){
findAndOpenClass(storyLine);