public void startSearch(String newPhrase, IContext excludeContext) { if (phrase!=null && phrase.equals(newPhrase)) return; this.phrase = newPhrase; this.context = excludeContext; if (getSection().isExpanded()) startInPlaceSearch(phrase, excludeContext); }
public void handleActivation(Control c, IWorkbenchPart part) { if (text.isDisposed()) return; lastControl = c; lastPart = part; lastProvider = null; String helpText = createContextHelp(c); if (getSection().isExpanded()) updateText(helpText); updateDynamicHelp(false); }
public void handleActivation(IContextProvider provider, IContext context, Control c, IWorkbenchPart part) { if (text.isDisposed()) return; lastControl = c; lastProvider = provider; lastContext = context; lastPart = part; if (context==null && provider!=null) { lastContext = provider.getContext(c); } String helpText; if (lastContext!=null) helpText = formatHelpContext(lastContext); else helpText = createContextHelp(c); updateTitle(); if (getSection().isExpanded()) updateText(helpText); updateDynamicHelp(context!=null); }
/** * Clients can implement to provide attribute overlay text * * @param section */ private void createInfoOverlay(Composite composite, Section section, FormToolkit toolkit) { String text = getInfoOverlayText(); if (text == null) { return; } final Label label = toolkit.createLabel(composite, CommonUiUtil.toLabel(text)); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); label.setBackground(null); label.setVisible(!section.isExpanded()); section.addExpansionListener(new ExpansionAdapter() { @Override public void expansionStateChanging(ExpansionEvent e) { label.setVisible(!e.getState()); } }); }
FederatedSearchEntry[] array = (FederatedSearchEntry[]) entries .toArray(new FederatedSearchEntry[entries.size()]); if (scopeSection.isExpanded()) { scopeSection.setExpanded(false); parent.reflow();
marginWidth, theight); } else if (isExpanded()) { gc.setForeground(bg); gc.setBackground(getBackground()); bounds.width - marginWidth, marginHeight + 3 }); gc.setForeground(border); if (isExpanded() || (getExpansionStyle() & TITLE_BAR) != 0) { marginHeight); if ((getExpansionStyle() & TITLE_BAR) != 0 || isExpanded()) {
marginWidth, theight); } else if (isExpanded()) { gc.setForeground(bg); gc.setBackground(getBackground()); bounds.width - marginWidth, marginHeight + 3 }); gc.setForeground(border); if (isExpanded() || (getExpansionStyle() & TITLE_BAR) != 0) { marginHeight); if ((getExpansionStyle() & TITLE_BAR) != 0 || isExpanded()) {