Package org.eclipse.wst.sse.ui.internal.selection

Examples of org.eclipse.wst.sse.ui.internal.selection.SelectionHistory.ignoreSelectionChanges()


    SelectionHistory history = (SelectionHistory) editor.getAdapter(SelectionHistory.class);
    if (history != null) {
      IRegion old = history.getLast();
      if (old != null) {
        try {
          history.ignoreSelectionChanges();

          ITextEditor textEditor = null;
          if (editor instanceof ITextEditor)
            textEditor = (ITextEditor) editor;
          else {
View Full Code Here


          if (newSelectionRegion != null) {
            SelectionHistory history = (SelectionHistory) editor.getAdapter(SelectionHistory.class);
            if (history != null) {
              history.remember(new Region(textSelection.getOffset(), textSelection.getLength()));
              try {
                history.ignoreSelectionChanges();
                textEditor.selectAndReveal(newSelectionRegion.getOffset(), newSelectionRegion.getLength());
              }
              finally {
                history.listenToSelectionChanges();
              }
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.