public ImplementInterfaceProposal( ICompilationUnit targetCU, ITypeBinding binding, CompilationUnit astRoot, ITypeBinding newInterface, int relevance) { super( "", targetCU, null, relevance, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)); // $NON-NLS-1$ Assert.isTrue(binding != null && Bindings.isDeclarationBinding(binding)); fBinding = binding; fAstRoot = astRoot; fNewInterface = newInterface; String[] args = { BasicElementLabels.getJavaElementName(binding.getName()), BasicElementLabels.getJavaElementName(Bindings.getRawName(newInterface)) }; setDisplayName(Messages.format(CorrectionMessages.ImplementInterfaceProposal_name, args)); }
/** * Constructs a 'Pin Call Hierarchy view' action. * * @param view the Call Hierarchy view */ public PinCallHierarchyViewAction(CallHierarchyViewPart view) { super(CallHierarchyMessages.PinCallHierarchyViewAction_label, IAction.AS_CHECK_BOX); setToolTipText(CallHierarchyMessages.PinCallHierarchyViewAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "pin_view.gif"); // $NON-NLS-1$ PlatformUI.getWorkbench() .getHelpSystem() .setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_PIN_VIEW_ACTION); fView = view; }