Java 类org.eclipse.ui.INavigationLocation 实例源码

项目:tlaplus    文件:BasicFormPage.java   
public INavigationLocation createEmptyNavigationLocation() {
    final NavigationLocationComposite combinedFormNav = new NavigationLocationComposite();

    // save the current FormPage as a navigation control
    combinedFormNav.add(new TabNavigationLocation(this));

    // the control selected on the current page
    final Control focusControl = getSite().getShell().getDisplay().getFocusControl();
    if (focusControl != null) {
        combinedFormNav.add(new ControlNavigationLocation(focusControl));
    }

    return combinedFormNav;
}
项目:tlaplus    文件:TabNavigationLocation.java   
public boolean mergeInto(INavigationLocation currentLocation) {
    // merge this and the given currentLocation if they both are the same type and handle the same page
    if(currentLocation instanceof TabNavigationLocation) {
        TabNavigationLocation fpnlc = (TabNavigationLocation) currentLocation;
        return formPage == fpnlc.formPage;
    }
    return false;
}
项目:seg.jUCMNav    文件:MultiPageEditorLocation.java   
/**
 * The navigation location stack tries to minimize the number of entries by merging duplicates/similar entries together.
 */
public boolean mergeInto(INavigationLocation currentLocation) {
    if (currentLocation instanceof MultiPageEditorLocation) {
        if (((MultiPageEditorLocation) currentLocation).getCurrentGraphID() != null
                && ((MultiPageEditorLocation) currentLocation).getCurrentGraphID().equals(currentGraphID))
            return true;
    }
    return false;
}
项目:tlaplus    文件:TLAEditorAndPDFViewer.java   
public INavigationLocation createEmptyNavigationLocation() {
    return tlaEditor.createEmptyNavigationLocation();
}
项目:tlaplus    文件:TLAEditorAndPDFViewer.java   
public INavigationLocation createNavigationLocation() {
    return tlaEditor.createNavigationLocation();
}
项目:tlaplus    文件:BasicFormPage.java   
public INavigationLocation createNavigationLocation() {
    return createEmptyNavigationLocation();
}
项目:tlaplus    文件:ControlNavigationLocation.java   
public boolean mergeInto(INavigationLocation currentLocation) {
    return false;
}
项目:tlaplus    文件:NavigationLocationComposite.java   
public void dispose() {
    for (INavigationLocation location : locations) {
        location.dispose();
    }
}
项目:tlaplus    文件:NavigationLocationComposite.java   
public void releaseState() {
    for (INavigationLocation location : locations) {
        location.releaseState();
    }
}
项目:tlaplus    文件:NavigationLocationComposite.java   
public void restoreLocation() {
    for (INavigationLocation location : locations) {
        location.restoreLocation();
    }
}
项目:tlaplus    文件:NavigationLocationComposite.java   
public boolean mergeInto(INavigationLocation currentLocation) {
    // not supported right now
    return false;
}
项目:tlaplus    文件:NavigationLocationComposite.java   
public void add(INavigationLocation aNavigationLocation) {
    locations.add(aNavigationLocation);
}
项目:eclox    文件:Location.java   
public boolean mergeInto(INavigationLocation currentLocation) {
    // TODO Auto-generated method stub
    return false;
}
项目:seg.jUCMNav    文件:UCMNavMultiPageEditor.java   
/**
 * Creates a {@link MultiPageEditorLocation}
 * 
 * @see org.eclipse.ui.INavigationLocationProvider#createEmptyNavigationLocation()
 */
public INavigationLocation createEmptyNavigationLocation() {
    return new MultiPageEditorLocation(this);
}
项目:seg.jUCMNav    文件:UCMNavMultiPageEditor.java   
/**
 * Creates a {@link MultiPageEditorLocation}
 * 
 * @see org.eclipse.ui.INavigationLocationProvider#createNavigationLocation()
 */
public INavigationLocation createNavigationLocation() {
    return new MultiPageEditorLocation(this);
}