1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright � 2006 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
9
<title>Creating a Module Project</title>
10
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
11
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
15
<h2>Creating a Module Project</h2>
17
<a href="#seealso">See Also</a>
19
Use a module project template to create a module project. The module
20
project is the place where you code your module. Module projects implement the module's features
21
and functionality that extend the NetBeans APIs, which you kickstart
22
by using file templates. In addition, module projects include the
23
business logic that integrate the library wrapper module projects
24
into the module. Code housed in module projects also provides,
25
for example, the user interface for receiving and processing user input.
26
<p><b>To create a module project:</b>
28
<li>Choose File > New Project
30
<li>From the NetBeans Modules category, select Module. Click Next.
31
<li>In the Name and Location panel, specify the following:
33
<li><b>Project Name. </b>Specifies the folder in which the project
34
will be housed, prepended by the project location, which
35
is specified in the next field.</li>
36
<li><b>Project Location. </b>Specifies the location where you want to store the
37
project metadata and source code.</li>
38
<li><b>Project Folder. </b>Specifies the folder where you want
39
to store the project metadata and source code. The folder is a concatenation
40
of the project location and the project name.</li>
41
<li><b>Standalone Module.</b> Specifies that the module does not belong to a module suite. In addition,
42
you must specify which platform the module will be compiled and deployed against. To add additional
43
platforms to the list, click Manage and use the <a href="../../csh/NbPlatformCustomizer.html">NetBeans Platform Manager</a>.
44
<li><b>Add to Module Suite.</b> Specifies that the module belongs to a module suite. If the module
45
suite is not currently open in the IDE, click Browse to locate the module suite in your
47
<li><b>Set as Main Project.</b> Sets the newly created project as the main
51
<li>In the Basic Module Configuration panel, specify the following:
53
<li><b>Code Name Base. </b>Specifies a unique name for the module. A main
54
package will be created with the same name as the code name base. If your
55
code name base is <tt>org.modules.foo</tt>, your default package structure will be
56
<tt>org/modules/foo</tt>.
57
<li><b>Module Display Name. </b>Specifies the name that will be displayed
58
in the Projects window.</li>
59
<li><b>Localizing Bundle. </b>Specifies location of the <tt>Bundle.properties</tt>
60
file. Normally, the default suggestion should be appropriate.</li>
61
<li><b>XML Layer.</b> Specifies the location of the <a href="../../about/about-xml-layers.html">XML layer file</a>.
62
Normally, the default suggestion should be appropriate.
68
<dt><a name="seealso">See Also</a></dt>
69
<dd> <a href="../../about/nbmodule-about.html">About NetBeans Platform and Module Development</a></dd>
70
<dd><a href="../../about/about-netbeans-platform.html">About the NetBeans Platform</a></dd>
71
<dd><a href="../../about/nbmodule-about-system-filesystem.html">About the System Filesystem</a></dd>
72
<dd><a href="../../about/nbmodule-about.html">About NetBeans Platform and Module Development</a></dd>
73
<dd><a href="../../about/about-xml-layers.html">About XML Layer Files</a></dd>
74
<dd><a href="../../about/modules_process.html">Working with Modules</a></dd>
75
<dd><a href="../../about/modules_quickref.html">Module Tasks: Quick Reference</a></dd>
78
<small><a href="../../credits.html">Legal Notices</a></small>
79
<table cellpadding="20" border="0">
80
<tr><td> </td></tr>
81
<tr><td> </td></tr>
82
<tr><td> </td></tr>