Community
Participate
Working Groups
Currently the content assist templates are buried within the preferences. Adding to the templates is hard because of this reason. I am suggesting the following improvements: 1. Make it a view with facilities for adding/removing templates. 2. User should be able to cut and paste code from the editor into a template. 3. It will be nice if eclipse can suggest the variable place holders while the code is being added, like the editor does when we use content assist/quick fix. -- KD
We could also allow to drag and drop text from the editor to the view and back. The view would then act like a clipboard containing multiple text fragments. But question is if this would be a platform feature or a JDT feature? See platform bug 69581
*** This bug has been marked as a duplicate of bug 69581 ***
(In reply to comment #2) > > *** This bug has been marked as a duplicate of bug 69581 *** I am not sure whether this is a duplicate of that bug. With whatever little I could see from screenshots from the sharpdevelop, eclipse code completion seems superior to me. There are two parts to this request. The first part of changing the preference pane to a view should be trivial. I actually wrote a small plugin that converts the preference pane to a view and using it now. The second part is to cut&paste from the editor. I am envisaging a view toolbar command - paste from clipboard. If the code is pasted from the editor, eclipse can provide content assist to convert Java statements to variables. -- KD
Don't worry. Bug 69581 goes into the same direction.
(In reply to comment #3) > The first part of changing the preference pane to a view should be trivial. > I actually wrote a small plugin that converts the preference pane > to a view and using it now. Does that mean, that you now have a view that shows the exact same content as the preference page? Which context types do you show in the view, how did you connect them to the active editor? We envision a view showing a tree/table with the templates and a part which allows to edit the selected template. We also need an import/export wizard and maybe a new template wizard. The view should only show the templates which make sense in the context of the active editor. This is all possible but not trivial. > The second part is to cut&paste from the editor. > I am envisaging a view toolbar command - paste from clipboard. > If the code is pasted from the editor, eclipse > can provide content assist to convert Java statements to variables. This again, must work for all editors with template capabilities, not only the Java editor.
(In reply to comment #5) I am posting my reply to bug no. 69581. -- KD