Skip to main content



      Home
Home » Newcomers » Newcomers » Java Scrapbook Question
Java Scrapbook Question [message #208504] Tue, 01 May 2007 20:47 Go to next message
Eclipse UserFriend
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
Re: Java Scrapbook Question [message #208594 is a reply to message #208504] Wed, 02 May 2007 09:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Mark Dexter wrote:
> 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

"Add Package" is equivalent to a complete package import statement, like
import java.util.*;

while "Add Type" is equivalent to importing a single class, like
import java.util.Collection;

Hope this helps,
Eric
Re: Java Scrapbook Question [message #208602 is a reply to message #208594] Wed, 02 May 2007 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Thanks! Mark
Re: Java Scrapbook Question [message #524868 is a reply to message #208504] Sat, 03 April 2010 04:06 Go to previous message
Eclipse UserFriend
[Deleted]

[Updated on: Sat, 03 April 2010 04:19] by Moderator

Previous Topic:Help getting Eclipse running
Next Topic:MRajan
Goto Forum:
  


Current Time: Thu Jun 19 06:45:30 EDT 2025

Powered by FUDForum. Page generated in 0.09278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top