mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Bug 470854 - Making the getTabCommandFieldHandler method of
TabFolderManager override-able
This commit is contained in:
parent
6683690349
commit
6684fa8364
1 changed files with 14 additions and 1 deletions
|
@ -685,12 +685,25 @@ public class TabFolderManager extends PlatformObject implements ISelectionProvid
|
||||||
|
|
||||||
TabCommandFieldHandler handler = commandFieldHandler.get(item);
|
TabCommandFieldHandler handler = commandFieldHandler.get(item);
|
||||||
if (handler == null) {
|
if (handler == null) {
|
||||||
handler = new TabCommandFieldHandler(this, item);
|
handler = createTabCommandFieldHandler(this, item);
|
||||||
|
Assert.isNotNull(handler);
|
||||||
commandFieldHandler.put(item, handler);
|
commandFieldHandler.put(item, handler);
|
||||||
}
|
}
|
||||||
return 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.
|
* Dispose the command input field handler for the given tab item.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue