1 11 12 package org.eclipse.ui.views.properties; 13 14 import org.eclipse.ui.PlatformUI; 15 16 19 class FilterAction extends PropertySheetAction { 20 27 public FilterAction(PropertySheetViewer viewer, String name) { 28 super(viewer, name); 29 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, 30 IPropertiesHelpContextIds.FILTER_ACTION); 31 } 32 33 36 37 public void run() { 38 PropertySheetViewer ps = getPropertySheet(); 39 ps.deactivateCellEditor(); 40 if (isChecked()) { 41 ps.showExpert(); 42 } else { 43 ps.hideExpert(); 44 } 45 } 46 } 47 | Popular Tags |