Mercurial > hg > de.codedo.java.editor
view src/de/codedo/java/editor/ToggleEditorIconHandler.java @ 3:ad16ec6d6284
ignore files in the bin folder
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 15 Dec 2014 06:31:20 +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; } }