Author: yzhishko
Date: 2009-12-04 10:43:20 -0500 (Fri, 04 Dec 2009)
New Revision: 19056
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-527 Next Annotation and Previous Annotation were
added.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java 2009-12-04
15:38:50 UTC (rev 19055)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java 2009-12-04
15:43:20 UTC (rev 19056)
@@ -14,6 +14,7 @@
import org.jboss.tools.common.model.ui.texteditors.AbstractMultiPageContributor;
import org.eclipse.jem.internal.java.adapters.nls.ResourceHandler;
+import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorPart;
@@ -90,6 +91,14 @@
slm.setErrorMessage(null);
slm.setMessage(null);
}
+ ITextEditor textEditor= null;
+ if (part instanceof ITextEditor)
+ textEditor= (ITextEditor)part;
+ /** The global actions to be connected with editor actions */
+ IAction action= getAction(textEditor, ITextEditorActionConstants.NEXT);
+ actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_NEXT_ANNOTATION,
action);
+ action= getAction(textEditor, ITextEditorActionConstants.PREVIOUS);
+ actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_PREVIOUS_ANNOTATION,
action);
}
}