Examples of IFocusSelectable


Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

        break;
      control = control.getParent();
    }
    if (cs == null)
      return;
    IFocusSelectable current = model.getSelectedSegment();
    // If the model and the control match, all is well
    if (current == cs)
      return;
    IHyperlinkSegment oldLink = null;
    if (current != null && current instanceof IHyperlinkSegment) {
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

  private boolean advanceControl(Control c, ControlSegment segment,
      boolean next) {
    Composite parent = c.getParent();
    if (parent == this) {
      // segment-level control
      IFocusSelectable nextSegment = model.getNextFocusSegment(next);
      if (nextSegment != null) {
        controlFocusTransfer = true;
        super.forceFocus();
        controlFocusTransfer = false;
        model.select(segment);
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

    IHyperlinkSegment link = getSelectedLink();
    return link != null ? link.getText() : null;
  }

  private IHyperlinkSegment getSelectedLink() {
    IFocusSelectable segment = model.getSelectedSegment();
    if (segment != null && segment instanceof IHyperlinkSegment)
      return (IHyperlinkSegment) segment;
    return null;
  }
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

  }

  private boolean advance(boolean next) {
    if (DEBUG_FOCUS)
      System.out.println("Advance: next=" + next); //$NON-NLS-1$
    IFocusSelectable current = model.getSelectedSegment();
    if (current != null && current instanceof IHyperlinkSegment)
      exitLink((IHyperlinkSegment) current, SWT.NULL);
    IFocusSelectable newSegment = null;
    boolean valid = false;
    // get the next segment that can accept focus. Links
    // can always accept focus but controls may not
    while (!valid) {
      if (!model.traverseFocusSelectableObjects(next))
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

    if (hasFocus) {
      boolean advance = true;
      if (!mouseFocus) {
        // if (model.restoreSavedLink() == false)
        boolean valid = false;
        IFocusSelectable selectable = null;
        while (!valid) {
          if (!model.traverseFocusSelectableObjects(advance))
            break;
          selectable = model.getSelectedSegment();
          if (selectable == null)
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

        break;
      control = control.getParent();
    }
    if (cs == null)
      return;
    IFocusSelectable current = model.getSelectedSegment();
    // If the model and the control match, all is well
    if (current == cs)
      return;
    IHyperlinkSegment oldLink = null;
    if (current != null && current instanceof IHyperlinkSegment) {
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

  private boolean advanceControl(Control c, ControlSegment segment,
      boolean next) {
    Composite parent = c.getParent();
    if (parent == this) {
      // segment-level control
      IFocusSelectable nextSegment = model.getNextFocusSegment(next);
      if (nextSegment != null) {
        controlFocusTransfer = true;
        super.forceFocus();
        controlFocusTransfer = false;
        model.select(segment);
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

    IHyperlinkSegment link = getSelectedLink();
    return link != null ? link.getText() : null;
  }

  private IHyperlinkSegment getSelectedLink() {
    IFocusSelectable segment = model.getSelectedSegment();
    if (segment != null && segment instanceof IHyperlinkSegment)
      return (IHyperlinkSegment) segment;
    return null;
  }
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

  }

  private boolean advance(boolean next) {
    if (DEBUG_FOCUS)
      System.out.println("Advance: next=" + next); //$NON-NLS-1$
    IFocusSelectable current = model.getSelectedSegment();
    if (current != null && current instanceof IHyperlinkSegment)
      exitLink((IHyperlinkSegment) current, SWT.NULL);
    IFocusSelectable newSegment = null;
    boolean valid = false;
    // get the next segment that can accept focus. Links
    // can always accept focus but controls may not
    while (!valid) {
      if (!model.traverseFocusSelectableObjects(next))
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.IFocusSelectable

    if (hasFocus) {
      boolean advance = true;
      if (!mouseFocus) {
        // if (model.restoreSavedLink() == false)
        boolean valid = false;
        IFocusSelectable selectable = null;
        while (!valid) {
          if (!model.traverseFocusSelectableObjects(advance))
            break;
          selectable = model.getSelectedSegment();
          if (selectable == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.