Java Scrapbook Question [message #208504] |
Tue, 01 May 2007 20:47  |
Eclipse User |
|
|
|
Hi. I'm playing with the Scrapbook, and once you figure out a couple of
tricks, it is very cool. Two things that had me stumped: (1) Use the Set
Imports to set up the imports for your scrapbook session. (2) To inspect
something, you can put as many lines of code you need to build it as long
as you end with just the expression. For example, create a new object,
run any methods you need, and just end the snippet with the object's
variable, like below:
Book b1 = new Book("test book");
b1.setName("new book name");
b1
Highlight the snippet and press the Inspect button (e.g., right click).
You can then drill into the object, just like in the debugger.
However, I have one question. On the "Set the Import Declarations" dialog,
there is a button "Add Type" as well as "Add Packages". What does the "Add
Type" button do? Thanks. Mark Dexter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12401 seconds