blob: 63e3c4bc1ffafd0ddcccda97dd5f159effba8c0d [file] [log] [blame]
package org.eclipse.epf.authoring.ui.views;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.viewers.ISelection;
public class LibraryViewExtender {
private LibraryView libraryView;
public LibraryView getLibraryView() {
return libraryView;
}
private ActionBarExtender actionBarExtender;
public ActionBarExtender getActionBarExtender() {
if (actionBarExtender == null) {
actionBarExtender = newActionBarExtender();
}
return actionBarExtender;
}
public LibraryViewExtender(LibraryView libraryView) {
this.libraryView = libraryView;
}
protected ActionBarExtender newActionBarExtender() {
return new ActionBarExtender(getLibraryView());
}
public static class ActionBarExtender {
private LibraryView libraryView;
public ActionBarExtender(LibraryView libraryView) {
this.libraryView = libraryView;
}
protected LibraryView getLibraryView() {
return libraryView;
}
public void menuAboutToShow(IMenuManager menuManager) {
}
public void updateSelection(ISelection selection) {
}
}
}