1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 470854 - Making the getTabCommandFieldHandler method of

TabFolderManager override-able
This commit is contained in:
Uwe Stieber 2015-06-24 09:50:39 +02:00
parent 6683690349
commit 6684fa8364

View file

@ -685,12 +685,25 @@ public class TabFolderManager extends PlatformObject implements ISelectionProvid
TabCommandFieldHandler handler = commandFieldHandler.get(item);
if (handler == null) {
handler = new TabCommandFieldHandler(this, item);
handler = createTabCommandFieldHandler(this, item);
Assert.isNotNull(handler);
commandFieldHandler.put(item, handler);
}
return handler;
}
/**
* Create the command input field handler for the given tab item.
*
* @param tabFolderManager The parent tab folder manager. Must not be <code>null</code>
* @param item The associated tab item. Must not be <code>null</code>.
*
* @return The command input field handler. Must not be <code>null</code>.
*/
protected TabCommandFieldHandler createTabCommandFieldHandler(TabFolderManager tabFolderManager, CTabItem item) {
return new TabCommandFieldHandler(tabFolderManager, item);
}
/**
* Dispose the command input field handler for the given tab item.
*