I have a stack of MParts, which work correctly in general. However when there are too many tabs, they just get cramped up and the automatic button of "Show list" of tabs does not appear (see image), even if I open 50 tabs.
Code:
String labelName = "Parameter " + p.getShortName();
MUIElement window = modelService.find("parametereditor.trimmedwindow.parametersedition", app);
window.setToBeRendered(true);
MPart foundPart = (MPart) modelService.find(labelName,app);
if(foundPart != null) {
partService.showPart(foundPart, PartState.ACTIVATE);
return;
}
MPart aPart = MBasicFactory.INSTANCE.createPart();
aPart.setLabel(labelName);
aPart.setElementId(labelName);
aPart.setContributionURI("bundleclass://ParameterEditor/parameterEditor.parts.ParameterAttributesPart");
MPartStack stack = (MPartStack) modelService.find("parametereditor.partstack.4", app);
stack.getChildren().add(aPart);
partService.showPart(aPart, PartState.ACTIVATE);
What am I missing to activate the "Show list" button?