History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-2946
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Add code generation hook API

Created: 14 May 05 05:23   Updated: 14 May 05 16:02
Component/s: Plugin Support. API
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,326
Severity: Medium


 Description  « Hide
I suggest adding an API for hooking into the generation of code for:
1. creating a class (like with New->Class or Create Class intention)
2. creating a field (like with Introduce Field)
3. creating a method (like with Extract Method)
4. creating a parameter (like with Introduce Parameter)
5. creating a local variable (like with Introduce Variable)
6. changing return type of method (like with Change Method Signature, and the change return type action)

The API would entail being able to modify the generated PSI, and also being able to add custom GUI components to the corresponding dialogs.

This would be useful for my (and your) @NonNull plugin. It might also make the implementation for IDEA's "make generated variables final" option more elegant.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.