1 11 package org.eclipse.search.internal.ui; 12 13 import org.eclipse.jface.action.Action; 14 15 18 class ShowPreviousResultAction extends Action { 19 20 private SearchResultViewer fViewer; 21 22 public ShowPreviousResultAction(SearchResultViewer viewer) { 23 super(SearchMessages.SearchResultView_showPrev_text); 24 SearchPluginImages.setImageDescriptors(this, SearchPluginImages.T_LCL, SearchPluginImages.IMG_LCL_SEARCH_PREV); 25 setToolTipText(SearchMessages.SearchResultView_showPrev_tooltip); 26 setActionDefinitionId("org.eclipse.ui.navigate.previous"); fViewer= viewer; 28 } 29 30 public void run() { 31 fViewer.showPreviousResult(); 32 } 33 } 34 | Popular Tags |