blob: 6d6c6f78459dc6f1279916bc912b7ea4c0d8238e [file] [log] [blame]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../../../default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../../../webtools/wtp.css" type="text/css">
<title>test plan: wtp project explorer.</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<tbody>
<tr>
<td width="60%" align="left"><font class="indextop">wst common</font>
<br>
<font class="indexsub">test plan: wtp project explorer.</font></td><td width="40%"><img width="120" hspace="50" height="86" align="middle" src="../../../../../../images/Idea.jpg"></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Java Drag and Drop </font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<P>The Project Explorer supports a handful of drag and drop
capabilities useful when developing Java. In addition to the resource
drag and drop functions like moving folders and files, there is
support for dragging Java packages, Java classes, and Java interfaces.
</P>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<OL>
<LI>
<P>File-&gt;New-&gt;Project...-&gt;Java Project to create a simple
Java project named Test1.</P>
</LI>
<LI>
<P>File-&gt;New-&gt;Project...-&gt;Java Project to create a simple
Java project named Test2.</P>
</LI>
<LI>
<P>Right-click on Test1 project, select New-&gt;Source Folder and add
"src" as source folder.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_761.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 1: Select "New &gt; Source Folder" from a project in
the WTP Project Explorer.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Add "src" as source folder to the Test2 project also.</P>
</LI>
<LI>
<P>Right-click on Test1 project, select New-&gt;Package and add
"test1" as package to src.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_1228.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 2: Select "New &gt; Package" from the source folder
you just created.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Right-click on Test2 project, select New-&gt;Package and add
"test2" as package to src.</P>
</LI>
<LI>
<P>Right-click on test1 package, select New-&gt;Class and add
"Test1" as class to test1 package.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_1443.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 3: Select "New &gt; Class" from the </I>package you
just created.</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Drag and drop test1 package onto the src folder in the Test2
project. Click OK.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_1780.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 4: A selection dialog allows you to choose the action
to perform on the Drag and Drop if there are multiple options. This dialog is supressed by default if there is only one option. If this dialog appears, hit
OK.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Drag and drop the Test1 class onto the test2 package. Click OK
(twice if the above dialog appears).</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_2149.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 5: </I>A dialog allows you to choose the options to
apply in the Move action.</P>
</TD>
</TR>
</TABLE>
</LI>
</OL>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">J2EE Drag and Drop</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<P>The J2EE Project Explorer adds drag and drop functionality to make
working with J2EE modules and applications much easier. A module
project can simply be dropped onto an Enterprise Application project
to add that module to the application. Also, a Java project can be
dropped onto the Enterprise Application project to add that Java
project as a utility jar for the targetted application.</P>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<OL>
<LI>
<P>Right-click the Enterprise Applications group, and select
New-&gt;Enterprise Application Project. Add "TestEAR".</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_4843.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 6: Select "New &gt; Enterprise Application Project"
from the Enterprise Applications Module Group in the Project
Explorer.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Import or create an EJB module project.</P>
</LI>
<LI>
<P>Import or create a simple Java project.</P>
</LI>
<LI>
<P>Drag and drop the EJB project onto the Enterprise Application
project to add that EJB JAR as a module for that application.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_5463.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 7: A selection dialog allows you to choose the action
to perform on the Drag and Drop if there are multiple options.
Select "J2EE Add Module" and hit OK.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
<LI>
<P>Repeated the process for Application Clients, Connectors, and Web
projects.</P>
</LI>
<LI>
<P>Drag and drop the Java project onto the Enterprise Application to
add that JAR as a utility JAR for that application.</P>
<TABLE cellspacing="10" cellpadding="10">
<TR>
<TD>
<P>
<IMG src="images/notesbuddy3532_5653.jpg"></P>
</TD>
</TR>
<TR>
<TD>
<P>
<I>Figure 8: A selection dialog allows you to choose the action
to perform on the Drag and Drop if there are multiple options.
Select "J2EE Utility Jar" and hit OK.</I>
</P>
</TD>
</TR>
</TABLE>
</LI>
</OL>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>Return to <A HREF="px_overview.html">overview</A>.
</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>