blob: 7533b0cb076eee85e3ca446165b956d8d627b518 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>
Creating a Java scrapbook page
</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</head>
<body>
<h1>
Creating a Java scrapbook page
</h1>
<p>
The scrapbook allows Java expressions, to be run, inspected, and displayed under the control of the debugger. Breakpoints and exceptions
behave as they do in a regular debug
session.
</p>
<p>
Code is edited on a scrapbook page.&nbsp; A VM is launched for each scrapbook page in which expressions are being evaluated. The first time an expression is evaluated in a scrapbook page after it is opened, a VM is
launched. The VM for a page will remain active until the page is closed, terminated explicitly (in the debugger or via the <strong>Stop the Evaluation</strong> button in the
editor toolbar), or when a <em>System.exit()</em> is evaluated.
</p>
<p>
There are several ways to open the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.debug.ui.snippetEditor.NewSnippetFileCreationWizard)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<strong>New Java Scrapbook Page</strong></a> wizard.
</p>
<ul>
<li> Create a file with a <strong>.jpage</strong> extension</li>
<li> From the menu bar, select <strong>File</strong> &gt; <strong>New</strong>
&gt; <strong>Other...</strong>. Then select <strong>Java</strong> &gt; <strong>Java
Run/Debug</strong> &gt; <strong>Scrapbook Page</strong>. Then click <strong>Next</strong>.
</li>
</ul>
Once you've opened the New Java Scrapbook Page wizard:.
<ol>
<li>
In the <strong><strong>Enter or select the folder</strong> field</strong>, type or click <strong>Browse</strong> to select the container for the new page.
</li>
<li>
In the <strong><strong>File name</strong></strong> field, type a name for the new page. The <em>.jpage</em> extension will be added automatically if you do not type it
yourself.
</li>
<li>
Click <strong><strong>Finish</strong></strong> when you are done. The new scrapbook page opens in an editor.
</li>
</ol>
<p>
<img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-11.htm">Scrapbook</a><br>
<a href="../concepts/concepts-3.htm">Java projects</a>
</p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="../tasks/tasks-26.htm">Creating a new source folder</a><br>
<a href="../tasks/tasks-11.htm">Creating Java elements</a><br>
<a href="tasks-126.htm">Running and debugging</a>
</p>
<p>
<img border="0" src="../images/ngrelr.png" alt="Related reference" ><br>
<a href="../reference/ref-34.htm">Java scrapbook page</a>
</p>
</body>
</html>