super.createActions();
// StructuredTextEditor Action - toggle breakpoints
IAction action = new ToggleBreakpointAction(this, getVerticalRuler()) {
protected String getContentType(IDocument document) {
ILocationProvider provider = (ILocationProvider) getEditorInput().getAdapter(ILocationProvider.class);
if (provider != null) {
IPath location = provider.getPath(getEditorInput());
return detectContentType(location).getId();
}
else if (getEditorInput() instanceof IPathEditorInput) {
IPath location = ((IPathEditorInput) getEditorInput()).getPath();
return detectContentType(location).getId();