congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Helper2
Code IndexAdd Tabnine to your IDE (free)

How to use
Helper2
in
org.eclipse.jface.internal.text.link.contentassist

Best Java code snippets using org.eclipse.jface.internal.text.link.contentassist.Helper2 (Showing top 20 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Returns whether this context information popup is active. I.e., either
 * a context selector or context information is displayed.
 *
 * @return <code>true</code> if the context selector is active
 */
public boolean isActive() {
  return (Helper2.okToUse(fContextInfoPopup) || Helper2.okToUse(fContextSelectorShell));
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns whether this context information popup is active. I.e., either
 * a context selector or context information is displayed.
 *
 * @return <code>true</code> if the context selector is active
 */
public boolean isActive() {
  return (Helper2.okToUse(fContextInfoPopup) || Helper2.okToUse(fContextSelectorShell));
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public boolean verifyKey(VerifyEvent e) {
  if (Helper2.okToUse(fContextSelectorShell))
    return contextSelectorKeyPressed(e);
  if (Helper2.okToUse(fContextInfoPopup))
    return contextInfoPopupKeyPressed(e);
  return true;
}
origin: org.eclipse.platform/org.eclipse.jface.text

  /**
   * Requests the proposal shell to take focus.
   *
   * @since 3.0
   */
  public void setFocus() {
    if (Helper2.okToUse(fProposalShell))
      fProposalShell.setFocus();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public boolean verifyKey(VerifyEvent e) {
  if (Helper2.okToUse(fContextSelectorShell))
    return contextSelectorKeyPressed(e);
  if (Helper2.okToUse(fContextInfoPopup))
    return contextInfoPopupKeyPressed(e);
  return true;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  /**
   * Requests the proposal shell to take focus.
   *
   * @since 3.0
   */
  public void setFocus() {
    if (Helper2.okToUse(fProposalShell))
      fProposalShell.setFocus();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void processEvent(VerifyEvent event) {
  if (Helper2.okToUse(fContextSelectorShell))
    contextSelectorProcessEvent(event);
  if (Helper2.okToUse(fContextInfoPopup))
    contextInfoPopupProcessEvent(event);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void processEvent(VerifyEvent event) {
  if (Helper2.okToUse(fContextSelectorShell))
    contextSelectorProcessEvent(event);
  if (Helper2.okToUse(fContextInfoPopup))
    contextInfoPopupProcessEvent(event);
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Uninstalls this closer if previously installed.
 */
public void uninstall() {
  fContentAssistant= null;
  if (Helper2.okToUse(fShell))
    fShell.removeShellListener(this);
  fShell= null;
  if (Helper2.okToUse(fScrollbar))
    fScrollbar.removeSelectionListener(this);
  if (Helper2.okToUse(fTable))
    fTable.removeFocusListener(this);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Uninstalls this closer if previously installed.
 */
public void uninstall() {
  fContentAssistant= null;
  if (Helper2.okToUse(fShell))
    fShell.removeShellListener(this);
  fShell= null;
  if (Helper2.okToUse(fScrollbar))
    fScrollbar.removeSelectionListener(this);
  if (Helper2.okToUse(fTable))
    fTable.removeFocusListener(this);
}
origin: org.eclipse.platform/org.eclipse.jface.text

  protected void adjustListeners(int type) {
    switch (type) {
      case LAYOUT_PROPOSAL_SELECTOR:
        if (fContextType == LAYOUT_CONTEXT_SELECTOR &&
            Helper2.okToUse(fShells[LAYOUT_CONTEXT_SELECTOR]))
          // Disable event notification to the tip selector.
          removeContentAssistListener((IContentAssistListener2) fPopups[LAYOUT_CONTEXT_SELECTOR], CONTEXT_SELECTOR);
        break;
      case LAYOUT_CONTEXT_SELECTOR:
        if (Helper2.okToUse(fShells[LAYOUT_PROPOSAL_SELECTOR]))
          // Disable event notification to the proposal selector.
          removeContentAssistListener((IContentAssistListener2) fPopups[LAYOUT_PROPOSAL_SELECTOR], PROPOSAL_SELECTOR);
        break;
      case LAYOUT_CONTEXT_INFO_POPUP:
        break;
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

  protected void adjustListeners(int type) {
    switch (type) {
      case LAYOUT_PROPOSAL_SELECTOR:
        if (fContextType == LAYOUT_CONTEXT_SELECTOR &&
            Helper2.okToUse(fShells[LAYOUT_CONTEXT_SELECTOR]))
          // Disable event notification to the tip selector.
          removeContentAssistListener((IContentAssistListener2) fPopups[LAYOUT_CONTEXT_SELECTOR], CONTEXT_SELECTOR);
        break;
      case LAYOUT_CONTEXT_SELECTOR:
        if (Helper2.okToUse(fShells[LAYOUT_PROPOSAL_SELECTOR]))
          // Disable event notification to the proposal selector.
          removeContentAssistListener((IContentAssistListener2) fPopups[LAYOUT_PROPOSAL_SELECTOR], PROPOSAL_SELECTOR);
        break;
      case LAYOUT_CONTEXT_INFO_POPUP:
        break;
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 *Returns whether the context selector has the focus.
 *
 * @return <code>true</code> if teh context selector has the focus
 */
public boolean hasFocus() {
  if (Helper2.okToUse(fContextSelectorShell))
    return (fContextSelectorShell.isFocusControl() || fContextSelectorTable.isFocusControl());
  return false;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 *Returns whether the context selector has the focus.
 *
 * @return <code>true</code> if teh context selector has the focus
 */
public boolean hasFocus() {
  if (Helper2.okToUse(fContextSelectorShell))
    return (fContextSelectorShell.isFocusControl() || fContextSelectorTable.isFocusControl());
  return false;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Returns whether this popup has the focus.
 *
 * @return <code>true</code> if the popup has the focus
 */
public boolean hasFocus() {
  if (Helper2.okToUse(fProposalShell))
    return (fProposalShell.isFocusControl() || fProposalTable.isFocusControl());
  return false;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Returns whether this popup has the focus.
 *
 * @return <code>true</code> if the popup has the focus
 */
public boolean hasFocus() {
  if (Helper2.okToUse(fProposalShell))
    return (fProposalShell.isFocusControl() || fProposalTable.isFocusControl());
  return false;
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void focusLost(final FocusEvent e) {
  fScrollbarClicked= false;
  Display d= fTable.getDisplay();
  d.asyncExec(() -> {
    if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant != null)
      fContentAssistant.popupFocusLost(e);
  });
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Hodes the context selector.
 */
private void hideContextSelector() {
  if (Helper2.okToUse(fContextSelectorShell)) {
    fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_SELECTOR);
    fPopupCloser.uninstall();
    fContextSelectorShell.setVisible(false);
    fContextSelectorShell.dispose();
    fContextSelectorShell= null;
  }
  if (!Helper2.okToUse(fContextInfoPopup))
    fContentAssistant.contextInformationClosed();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Hodes the context selector.
 */
private void hideContextSelector() {
  if (Helper2.okToUse(fContextSelectorShell)) {
    fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_SELECTOR);
    fPopupCloser.uninstall();
    fContextSelectorShell.setVisible(false);
    fContextSelectorShell.dispose();
    fContextSelectorShell= null;
  }
  if (!Helper2.okToUse(fContextInfoPopup))
    fContentAssistant.contextInformationClosed();
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Installs this closer on the given table opened by the given content assistant.
 *
 * @param contentAssistant the content assistant
 * @param table the table to be tracked
 */
public void install(ContentAssistant2 contentAssistant, Table table) {
  fContentAssistant= contentAssistant;
  fTable= table;
  if (Helper2.okToUse(fTable)) {
    Shell shell= fTable.getShell();
    if (Helper2.okToUse(shell)) {
      fShell= shell;
      fShell.addShellListener(this);
    }
    fTable.addFocusListener(this);
    fScrollbar= fTable.getVerticalBar();
    if (fScrollbar != null)
      fScrollbar.addSelectionListener(this);
  }
}
org.eclipse.jface.internal.text.link.contentassistHelper2

Javadoc

Helper class for testing widget state.

Most used methods

  • okToUse
    Returns whether the widget is null or disposed.

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Kernel (java.awt.image)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now