@Override public void setFocus() { Control client = section.getClient(); if (client != null) client.setFocus(); } }
@Override public void setFocus() { Control client = section.getClient(); if (client != null) client.setFocus(); } }
public boolean hasFocusControl(Control control) { return control == searchWordText || control == searchWordCombo.getControl() || scopeSection.getClient() == control; }
private void updateMasters(ScopeSet set) { Control[] children = ((Composite) scopeSection.getClient()).getChildren(); for (int i = 0; i < children.length; i++) { Control child = children[i]; if (child instanceof Button) { Button master = (Button) child; Object data = master.getData(); if (data != null && data instanceof EngineDescriptor) { EngineDescriptor ed = (EngineDescriptor) data; master.setSelection(set.getEngineEnabled(ed)); } } } }
@Override public void expansionStateChanged(ExpansionEvent event) { if (section.getClient() == null) { Control content = createContent(section, toolkit); section.setClient(content); getPage().reflow(); } } });
private void updateEngine(EngineDescriptor desc) { Control[] children = ((Composite) scopeSection.getClient()).getChildren(); boolean reflowNeeded = false; for (int i = 0; i < children.length; i++) { Control child = children[i]; EngineDescriptor ed = (EngineDescriptor) child.getData(); if (ed == desc) { Button b = (Button) children[i + 1]; b.setText(desc.getLabel()); Label d = (Label) children[i + 3]; d.setText(desc.getDescription()); d.getParent().layout(); reflowNeeded = true; break; } } if (reflowNeeded) parent.reflow(); }
private void removeEngine(EngineDescriptor desc) { boolean reflowNeeded = false; Control[] children = ((Composite) scopeSection.getClient()).getChildren(); for (int i = 0; i < children.length; i++) { Control child = children[i]; EngineDescriptor ed = (EngineDescriptor) child.getData(); if (ed == desc) { child.setMenu(null); child.dispose(); reflowNeeded = true; } } if (reflowNeeded) parent.reflow(); }
private void updateRows() { if (input == null) return; IPluginAttribute[] atts = input.getAttributes(); FormToolkit toolkit = getManagedForm().getToolkit(); boolean rowsAdded = false; for (int i = 0; i < atts.length; i++) { if (!hasAttribute(atts[i].getName())) { rows.add(createAttributeRow(atts[i], (Composite) section.getClient(), toolkit, 2)); rowsAdded = true; } } if (rowsAdded) { ((Composite) section.getClient()).layout(true); section.layout(true); section.getParent().layout(true); reflow(); } }
s.refresh(); s.getSection().getClient().redraw();
if (c instanceof Section) newParent = (Composite) ((Section) newParent).getClient(); AbstractIntroElement[] children = group.getChildren(); for (int i = 0; i < children.length; i++)