Commit 03bb3a25 authored by Simon Barner's avatar Simon Barner
Browse files

Multi Page Editor: Prevent icon from disappearing when tab is moved

* Add work-around in setFocus() override
* Property change is also issued in WorkbenchPart.setTitleImage()
  (ancestor class)

Issue-Ref: 3433
Issue-Url: https://af3-developer.fortiss.org/issues/3433

Signed-off-by: Simon Barner's avatarSimon Barner <barner@fortiss.org>
parent 0249b63c
ActionBarContributor.java 18d9db3744c5381cca8b6823b5f7bc18183a1cfa GREEN
ExtendableMultiPageEditor.java 968540e08143a77e8233bb8a7d8af6bd90b6b12e GREEN
ExtendableMultiPageEditor.java e2907990cfcc5ba4c2fc3d689ab3258e8014c79a YELLOW
IActionContributingEditor.java 4aa7496d67822de919a8cf0af0ddaafc61bf2919 GREEN
ModelElementEditorInput.java 7edf3d4955c55ee595fdcd097ce9a7050ff1b383 GREEN
TutorialStepUIEditor.java 9eadc96c302b5131ff4cc3715777718fa06ec7e8 GREEN
......
......@@ -34,6 +34,7 @@ import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.ISaveablePart;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartConstants;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.part.MultiPageEditorPart;
......@@ -109,6 +110,14 @@ public class ExtendableMultiPageEditor extends MultiPageEditorPart implements
}
}
/** {@inheritDoc} */
@Override
public void setFocus() {
super.setFocus();
// Workaround to prevent tab icons from disappearing when tabs are reordered
firePropertyChange(IWorkbenchPart.PROP_TITLE);
}
/**
* This is called whenever something about the currently edited object
* changes. This is used to update the part name and to close the editor if
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment