| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.sensorframework.visualisation.tabs; |
| 5 | |
| 6 | import org.eclipse.jface.viewers.LabelProvider; |
| 7 | import org.eclipse.ui.IEditorPart; |
| 8 | |
| 9 | import de.uka.ipd.sdq.sensorframework.visualisation.VisualisationPlugin; |
| 10 | |
| 11 | /** |
| 12 | * @author admin |
| 13 | * |
| 14 | */ |
| 15 | public class TabbedLabelProvider extends LabelProvider { |
| 16 | |
| 17 | /* (non-Javadoc) |
| 18 | * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) |
| 19 | */ |
| 20 | @Override |
| 21 | public String getText(Object element) { |
| 22 | IEditorPart editor = VisualisationPlugin.getDefault().getWorkbench() |
| 23 | .getActiveWorkbenchWindow().getActivePage().getActiveEditor(); |
| 24 | return editor.getTitle(); |
| 25 | } |
| 26 | } |