This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Should Find Usages have a Go To Diagram action option? | ||
---|---|---|---|
Product: | soa | Reporter: | Michael Frisino <frisino> |
Component: | Refactoring | Assignee: | Vladimir Yaroslavskiy <yaroslavskiy> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | slunegov |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Michael Frisino
2006-11-08 14:54:42 UTC
UI issue Alexey, need reevaluate this. Items in the usages view is extension of SimpleRefactoringElementImplementation (default implementation of RefactoringElementImplementation, package org.netbeans.modules.refactoring.spi). It has only one method for navigation: openInEditor(), there are no API to add custom actions. Request: please provide API to add custom actions which will be shown in popup menu. Vladimir, please provide more detailed explanation what is needed from API/refactoring team. More details: Interface RefactoringElementImplementation should have method Action [] getCustomActions() Element in find usags tree should have popup menu with default action "Open In Editor" + custom actions. Adding methods to interface is not backward compatible, but we can use probably getLookup() to hold actions. Fixed. http://hg.netbeans.org/main/rev/92c9988ffd54 in your Refactoring Element Implementation do: getLookup() { return Lookups.fixed(new OpenInEditor(), new WhateverAction()); } class OpenInEditor extends AbstractAction { public OpenInEditor() { super("Open In Editor"); } public actionPerformed(..) { openInEditor(); } } etc... thank you for fixing refactoring api. reopen and reassign for fixing in bpel. fixed: 41d223fc0a94 Integrated into 'main-golden', available in NB_Trunk_Production #195 build Changeset: http://hg.netbeans.org/main/rev/92c9988ffd54 User: Jan Becicka <jbecicka@netbeans.org> Log: #88942: Should Find Usages have a Go To Diagram action option? |