protected void makeGroupBoxScrollable(IGroupBox groupBox) { if (!groupBox.isScrollable().isTrue()) { groupBox.setScrollable(true); // GridDataHints have been modified by setScrollable. Update the actual gridData with those hints. markGridDataDirty(groupBox.getForm()); } }
@Override public void notifyPageDetailFormChanged(IForm form) { // Detail forms will be displayed inside a page (tree node) // Make sure these inner forms are not scrollable because the outline already is IGroupBox mainBox = form.getRootGroupBox(); if (mainBox.isScrollable().isTrue()) { mainBox.setScrollable(false); FormUtility.initRootBoxGridData(mainBox); } }
protected void makeGroupBoxScrollable(IGroupBox groupBox) { if (!groupBox.isScrollable().isTrue()) { groupBox.setScrollable(true); // GridDataHints have been modified by setScrollable. Update the actual gridData with those hints. if (groupBox.isMainBox()) { FormUtility.initRootBoxGridData(groupBox); } else { rebuildParentGrid(groupBox); } } }
@Override public void transformPageDetailForm(IForm form) { // Detail forms will be displayed inside a page (tree node) // Make sure these inner forms are not scrollable because the outline already is IGroupBox mainBox = form.getRootGroupBox(); if (mainBox.isScrollable().isTrue()) { mainBox.setScrollable(false); markGridDataDirty(mainBox.getForm()); } }
@Override public void setScrollable(TriState scrollable) { if (scrollable == null) { scrollable = TriState.UNDEFINED; } if (scrollable.equals(isScrollable())) { return; } propertySupport.setProperty(PROP_SCROLLABLE, scrollable); if (scrollable.isTrue()) { // force weightY to be > 0 GridData gd = getGridDataHints(); if (gd.weightY <= 0) { gd.weightY = 1; setGridDataHints(gd); } } }