|
|
|
[
Permlink
| « Hide
]
Sascha Weinreuter - 12 Aug 06 14:33
Eugene, do you think this will make it into the final 6.0 release?
Sascha,
We don't have time to add any additional refactorings before 6.0. As for making "dangling" API, I don't think it is a good idea. It's not about adding additional refactorings. It's about to make the well-known refactorings and their shortcuts available to custom languages, i.e. to make this simple (though it would break API compatibility) extension to RefactoringSupportProvider and re-wire the current implementations to make use of it:
public interface RefactoringSupportProvider { ... @Nullable RefactoringActionHandler getInlineHandler(); @Nullable RefactoringActionHandler getExtractParameterHandler(); ... } Since at least InlineHandler and ExtractParameterHandler already implement RefactoringActionHandler, I suppose this would be a rather simple thing to do. And it would make the API much more consistent, because just having support for "Introduce Variable" because it's implemented by the JS plugin looks pretty much half-baked - even if you consider it 'dangling' when there's no other (OpenAPI) implementation for those refactorings around. While I can live with just hooking those actions like I used to, I would have welcomed a proper way, but it's OK. Anyway, thanks for your fast response. Except for Introduce Parameter this is obsolete.
|
|||||||||||||||||||||||||||||||||||||||||||||||