Mercurial > hg > de.codedo.java.editor
view src/de/codedo/java/editor/ToggleEditorIconHandler.java @ 5:dd4ab3c8d143
Use the same contributorClass as the JDT editor. This brings back the functionality of displaying the current line/column number in the status bar.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 16 Dec 2014 07:38:49 +0100 |
parents | f7d908568cfc |
children |
line wrap: on
line source
package de.codedo.java.editor; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.handlers.HandlerUtil; public class ToggleEditorIconHandler extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { IEditorPart editorPart = HandlerUtil.getActiveEditor(event); if (editorPart instanceof CodedoJavaEditor) { CodedoJavaEditor editor = (CodedoJavaEditor)editorPart; editor.toggleTitleImage(); } return null; } }