blob: effe73400e61f3047374ebc0c74e5dabc1cf84f5 [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">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>
Creating a new class in an existing compilation unit
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Creating a new class in an existing compilation unit
</h1>
<p>
An alternative way to create a new class is to add it to an existing compilation unit.
</p>
<ol>
<li>
In the Package Explorer, double-click a compilation unit to open it in an editor.
</li>
<li>
Type the code for the class at the desired position in the compilation unit.
</li>
</ol>
<p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0" >
</p>
<p>
<a href="../concepts/concepts-3.htm">Java projects</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</p>
<p>
<a href="tasks-17.htm">Creating a new Java class</a><br>
<a href="tasks-18.htm">Creating a top-level class</a><br>
<a href="tasks-19.htm">Creating a nested class</a><br>
<a href="tasks-94.htm">Renaming a class, field, or interface</a><br>
<a href="tasks-92.htm">Renaming a compilation unit</a><br>
<a href="tasks-executionArgs.htm">Setting execution arguments</a>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-view-package-explorer.htm">Package Explorer</a>
</p>
</body>
</html>