blob: 31b37de7c12978ebdc500d58264c01b817766592 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2012. 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">
<title>New Java Package Wizard</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</head>
<body>
<h1>New Java Package Wizard</h1>
<p>The
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewPackageCreationWizard)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Opens the New Java Package wizard">
<b>New Java Package</b></a> wizard
helps you create a folder corresponding to a new Java package and optionally a package level documentation file. It can also be used to add package level documentation to an existing package.</p>
<p>The corresponding folder of the default package always exists, and therefore doesn't have to be
created.</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Java Package Options">
<caption>
Java Package Options<br>
</caption>
<tr>
<th>Option</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td align="left" valign="top">Source folder</td>
<td align="left" valign="top">Type or browse to select a container (project or folder) for the new package.</td>
<td align="left" valign="top">The source folder of the element that was selected when the wizard has been started.</td>
</tr>
<tr>
<td align="left" valign="top">Name</td>
<td align="left" valign="top">Type a name for the new package</td>
<td align="left" valign="top"><blank></td>
</tr>
<tr>
<td align="left" valign="top">Create package-info.java</td>
<td align="left" valign="top">
<p>Whether a <code>package-info.java</code> file should be created in the package.</p>
<p>The <code>package-info.java</code> file contains package level documentation as well as annotations. For example:</p>
<pre><code>
/**
* This package contains JAXB classes.
*/
@XmlSchema(namespace = "http://www.example.com", elementFormDefault = XmlNsForm.QUALIFIED)
package com.acme.jaxb;
</code></pre>
<p>For more information, refer to the <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-7.html#jls-7.4.1">Java Language Specification Section 7.4.1. Named Packages</a>.</p>
<p>If the source level is 1.4 or below, a <code>package.html</code> will be created instead.</p>
</td>
<td align="left" valign="top">false</td>
</tr>
</table>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p><a href="../reference/ref-menu-file.htm">File actions</a></p>
</body>
</html>
|