1 11 12 package org.eclipse.jdt.internal.ui.viewsupport; 13 14 import java.util.List ; 15 16 import org.eclipse.swt.widgets.Shell; 17 18 import org.eclipse.jface.action.Action; 19 import org.eclipse.jface.action.IAction; 20 import org.eclipse.jface.action.MenuManager; 21 import org.eclipse.jface.resource.ImageDescriptor; 22 23 24 27 public abstract class ViewHistory { 28 29 35 public abstract void configureHistoryListAction(IAction action); 36 37 43 public abstract void configureHistoryDropDownAction(IAction action); 44 45 48 public abstract Action getClearAction(); 49 50 public abstract String getHistoryListDialogTitle(); 51 52 public abstract String getHistoryListDialogMessage(); 53 54 public abstract Shell getShell(); 55 56 57 61 public abstract List getHistoryEntries(); 62 63 66 public abstract Object getCurrentEntry(); 67 68 71 public abstract void setActiveEntry(Object entry); 72 73 77 public abstract void setHistoryEntries(List remainingEntries, Object activeEntry); 78 79 83 public abstract ImageDescriptor getImageDescriptor(Object element); 84 85 89 public abstract String getText(Object element); 90 91 94 public final IAction createHistoryDropDownAction() { 95 return new HistoryDropDownAction(this); 96 } 97 98 public abstract void addMenuEntries(MenuManager manager); 99 100 public abstract String getMaxEntriesMessage(); 101 public abstract int getMaxEntries(); 102 public abstract void setMaxEntries(int maxEntries); 103 104 } 105 | Popular Tags |