Package org.eclipse.jface.text.link

Examples of org.eclipse.jface.text.link.LinkedModeUI


      for (LinkedPositionGroup currGroup : groups) {
        model.addGroup(currGroup);
      }
      model.forceInstall();
      LinkedModeUI ui = new LinkedModeUI(model, viewer);
      ui.setExitPosition(viewer, startOffset + importOffset + methodStr.length(), 0, Integer.MAX_VALUE);
      ui.enter();

      selectedRegion = ui.getSelectedRegion();
    }
    catch (BadLocationException e) {
      StatusHandler.log(new Status(Status.ERROR, DataCorePlugin.PLUGIN_ID, e.getMessage(), e));
    }
    catch (JavaModelException e) {
View Full Code Here


        viewer = ((IConfigEditor) editor).getTextViewer();
      }
      if (hasPositions && viewer != null) {
        try {
          linkModel.forceInstall();
          LinkedModeUI ui = new LinkedModeUI(linkModel, viewer);
          ui.enter();
        }
        catch (BadLocationException e) {
          StatusHandler.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
              "Unable to create linked model for property quick fix"));
        }
View Full Code Here

      }

      if (viewer != null) {
        try {
          linkModel.forceInstall();
          LinkedModeUI ui = new LinkedModeUI(linkModel, viewer);
          ui.enter();
        }
        catch (BadLocationException e) {
          StatusHandler.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
              "Unable to create linked model for factory method quick fix"));
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.link.LinkedModeUI

Copyright © 2018 www.massapicom. 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.