Package org.eclipse.ui

Examples of org.eclipse.ui.INavigationLocation


    /*
     * (non-Javadoc)
     * Method declared on INavigationHistory.
     */
    public INavigationLocation[] getLocations() {
        INavigationLocation result[] = new INavigationLocation[history.size()];
        for (int i = 0; i < result.length; i++) {
            NavigationHistoryEntry e = (NavigationHistoryEntry) history.get(i);
            result[i] = e.location;
        }
        return result;
View Full Code Here


    }

        if (isPerTabHistoryEnabled()) {
          markLocationForTab(part);
        }
        INavigationLocation location = null;
        if (part instanceof INavigationLocationProvider) {
      location = ((INavigationLocationProvider) part)
                    .createNavigationLocation();
    }
View Full Code Here

        updateActions();
        return;
      }
    Object tabCookie = getCookieForTab(part);
    if (tabCookie != null) {
      INavigationLocation location = null;
      if (part instanceof INavigationLocationProvider) {
        location = ((INavigationLocationProvider) part)
            .createNavigationLocation();
      }
      PerTabHistory perTabHistory = (PerTabHistory) perTabHistoryMap
View Full Code Here

        PerTabHistory perTabHistory = (PerTabHistory) perTabHistoryMap.get(editorTabCookie);
        if (perTabHistory != null && !perTabHistory.forwardEntries.isEmpty()) {
          NavigationHistoryEntry newCurrent = (NavigationHistoryEntry) perTabHistory.forwardEntries
            .removeFirst();
          if (perTabHistory.currentEntry != null) {
            final INavigationLocation location = perTabHistory.currentEntry.location;
            if (location!=null) {
              location.update();
            }
            perTabHistory.backwardEntries.addFirst(perTabHistory.currentEntry);
          }
          perTabHistory.currentEntry = newCurrent;
              try {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.INavigationLocation

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.