@Override public void run() { fView.showMembersInHierarchy(isChecked()); } });
public EnableMemberFilterAction(ITypeHierarchyViewPart v, boolean initValue) { super(TypeHierarchyMessages.EnableMemberFilterAction_label); setDescription(TypeHierarchyMessages.EnableMemberFilterAction_description); setToolTipText(TypeHierarchyMessages.EnableMemberFilterAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "impl_co.gif"); //$NON-NLS-1$ fView= v; setChecked(initValue); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ENABLE_METHODFILTER_ACTION); }
public void showMembersInHierarchy(boolean on) { if (on != fIsEnableMemberFilter) { fIsEnableMemberFilter= on; if (!on) { IType methodViewerInput= (IType) fMethodsViewer.getInput(); setMemberFilter(null); updateHierarchyViewer(true); updateTitle(); if (methodViewerInput != null && getCurrentViewer().isElementShown(methodViewerInput)) { // avoid that the method view changes content by selecting the previous input internalSelectType(methodViewerInput, true); } else if (fSelectedType != null) { // choose a input that exists internalSelectType(fSelectedType, true); updateMethodViewer(fSelectedType); } } else { methodSelectionChanged(fMethodsViewer.getSelection()); } } fEnableMemberFilterAction.setChecked(on); }
}; fEnableMemberFilterAction= new EnableMemberFilterAction(this, false); fShowQualifiedTypeNamesAction= new ShowQualifiedTypeNamesAction(this, false);
@Override public void showMembersInHierarchy(boolean on) { if (on != fIsEnableMemberFilter) { fIsEnableMemberFilter= on; if (!on) { IType methodViewerInput= (IType) fMethodsViewer.getInput(); setMemberFilter(null); updateHierarchyViewer(true); updateToolTipAndDescription(); if (methodViewerInput != null && getCurrentViewer().isElementShown(methodViewerInput)) { // avoid that the method view changes content by selecting the previous input internalSelectType(methodViewerInput, true); } else if (fSelectedType != null) { // choose a input that exists internalSelectType(fSelectedType, true); updateMethodViewer(fSelectedType); } } else { methodSelectionChanged(fMethodsViewer.getSelection()); } } fEnableMemberFilterAction.setChecked(on); }
}; fEnableMemberFilterAction= new EnableMemberFilterAction(this, false); fShowQualifiedTypeNamesAction= new ShowQualifiedTypeNamesAction(this, false);
public EnableMemberFilterAction(ITypeHierarchyViewPart v, boolean initValue) { super(TypeHierarchyMessages.EnableMemberFilterAction_label); setDescription(TypeHierarchyMessages.EnableMemberFilterAction_description); setToolTipText(TypeHierarchyMessages.EnableMemberFilterAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "impl_co.png"); //$NON-NLS-1$ fView= v; setChecked(initValue); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ENABLE_METHODFILTER_ACTION); }
public void run() { fView.showMembersInHierarchy(isChecked()); } });
@Override public void showMembersInHierarchy(boolean on) { if (on != fIsEnableMemberFilter) { fIsEnableMemberFilter= on; if (!on) { IType methodViewerInput= (IType) fMethodsViewer.getInput(); setMemberFilter(null); updateHierarchyViewer(true); updateToolTipAndDescription(); if (methodViewerInput != null && getCurrentViewer().isElementShown(methodViewerInput)) { // avoid that the method view changes content by selecting the previous input internalSelectType(methodViewerInput, true); } else if (fSelectedType != null) { // choose a input that exists internalSelectType(fSelectedType, true); updateMethodViewer(fSelectedType); } } else { methodSelectionChanged(fMethodsViewer.getSelection()); } } fEnableMemberFilterAction.setChecked(on); }
}; fEnableMemberFilterAction= new EnableMemberFilterAction(this, false); fShowQualifiedTypeNamesAction= new ShowQualifiedTypeNamesAction(this, false);
public EnableMemberFilterAction(ITypeHierarchyViewPart v, boolean initValue) { super(TypeHierarchyMessages.EnableMemberFilterAction_label); setDescription(TypeHierarchyMessages.EnableMemberFilterAction_description); setToolTipText(TypeHierarchyMessages.EnableMemberFilterAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "impl_co.png"); //$NON-NLS-1$ fView= v; setChecked(initValue); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ENABLE_METHODFILTER_ACTION); }
@Override public void run() { fView.showMembersInHierarchy(isChecked()); } });