Bug 226158 - Scrapbook support requires many context switches
Summary: Scrapbook support requires many context switches
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 13:20 EDT by Jed Anderson CLA
Modified: 2008-04-08 15:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jed Anderson CLA 2008-04-08 13:20:41 EDT
Build ID: 3.4 M6

Enhancement request:

I find that creating a Scrapbook page takes me out of my context and forces me to do a lot of extra setup.  This decreases the Scrapbook's effectiveness as quick test code.

It would be excellent if the Java editor could support taking a text selection and turning it into a scrapbook on the fly.  This means I could write my quick test right where I'm going to use it, highlight it, and run it -- all without leaving the editor.

As a bonus, this feature provides a way to highlight the scrapbook support (save selection as Java Scrapbook seems like the next obvious feature).  I often find that other Eclipse users don't know this very useful support exists.

Finally, if done correctly, it would alleviate a lot of the rigmarole of setting up the imports that you need for your Scrapbook.  Specifically, I'm thinking that the Scrapbook could be compiled with the settings of the current project, with the imports of the current compilation unit, and in the same package as the current cu.
Comment 1 Darin Wright CLA 2008-04-08 15:21:10 EDT
All good points. No resources are currently allocated to the scrapbook.

Marking as assigned for future generations to consider.