public OpenTypeHierarchyAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor));
public OpenTypeHierarchyAction(IWorkbenchSite site) { super(site); setText(ActionMessages.getString("OpenTypeHierarchyAction.label")); setToolTipText(ActionMessages.getString("OpenTypeHierarchyAction.tooltip")); setDescription(ActionMessages.getString("OpenTypeHierarchyAction.description")); WorkbenchHelp.setHelp(this, IJavaHelpContextIds.OPEN_TYPE_HIERARCHY_ACTION);
	public OpenTypeHierarchyAction(JavaEditor editor) {		this(editor.getEditorSite());		fEditor= editor;		setEnabled(SelectionConverter.canOperateOn(fEditor));	}