congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Helper2.okToUse
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jface.internal.text.link.contentassist.Helper2.okToUse (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

/**
 *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 a key listener on the text viewer's widget.
 */
private void installKeyListener() {
  if (!fKeyListenerHooked) {
    StyledText text= fViewer.getTextWidget();
    if (Helper2.okToUse(text)) {
      if (fViewer instanceof ITextViewerExtension) {
        ITextViewerExtension e= (ITextViewerExtension) fViewer;
        e.prependVerifyKeyListener(fInternalListener);
      } else {
        text.addVerifyKeyListener(fInternalListener);
      }
      fKeyListenerHooked= true;
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Uninstall the key listener from the text viewer's widget.
 */
private void uninstallKeyListener() {
  if (fKeyListenerHooked) {
    StyledText text= fViewer.getTextWidget();
    if (Helper2.okToUse(text)) {
      if (fViewer instanceof ITextViewerExtension) {
        ITextViewerExtension e= (ITextViewerExtension) fViewer;
        e.removeVerifyKeyListener(fInternalListener);
      } else {
        text.removeVerifyKeyListener(fInternalListener);
      }
      fKeyListenerHooked= false;
    }
  }
}
org.eclipse.jface.internal.text.link.contentassistHelper2okToUse

Javadoc

Returns whether the widget is null or disposed.

Popular methods of Helper2

    Popular in Java

    • Updating database using SQL prepared statement
    • getApplicationContext (Context)
    • getExternalFilesDir (Context)
    • getSupportFragmentManager (FragmentActivity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • BufferedWriter (java.io)
      Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    • Sublime Text for Python
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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