Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 081d536d372c5b499a273e5b6a4ec5a1 > files > 27

jrefactory-2.8.9-4.2mdv2007.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
	<TITLE>Software::JRefactory - Add Parent</TITLE>
</HEAD>
<BODY>
<P>
<TABLE BORDER="0">
	<TR>
		<TD WIDTH="150" ALIGN="LEFT" VALIGN="TOP" ROWSPAN="3" BGCOLOR="#DDDDDD">
			<IMG SRC="JRefactory.jpg" ALT="Author:  Mike Atkinson">
			<A HREF="chrissoft.html">Software</A> <BR>
			<UL>
			<LI> <A HREF="cspretty.html">Pretty Printer</A> <BR>
			<LI> JRefactory<BR>
			<LI> <A HREF="csprint.html">Printing</A> <BR>
			<LI> <A HREF="cselixirext.html">Elixir Extensions</A> <BR>
			<LI> <A HREF="cslineno.html">Line Numbering</A> <BR>
			<LI> <A HREF="csmetrics.html">Metrics</A> <BR>
			<LI> <A HREF="csstub.html">Stub Generator</A> <BR>
			<LI> <A HREF="csdevutil.html">Dev Utilities</A> <BR>
			<LI> <A HREF="csr-roadmap.html">Roadmap</A> <BR>
			<LI> <A HREF="csrtodo.html">Requested Features</A> <BR>
			</UL>
			<A HREF="csr-releasenotes.html">Release Notes</A> <BR>
			<A HREF="chrisdown.html"><B>Download</B></A> <BR>
			<B><A HREF="authors.html">Contributors</A></B> <BR>
		</TD>

		<TD WIDTH="35" ALIGN="LEFT" VALIGN="TOP">
			<P><A HREF="csr-renameclass.html"><IMG SRC="left.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page" BORDER="2"></A>
		</TD>
		<TD ALIGN="CENTER">
			<H2 ALIGN="CENTER">Software::JRefactory - Add Parent
		</TD>
		<TD WIDTH="35" ALIGN="RIGHT" VALIGN="TOP">
			<P ALIGN="RIGHT"><A HREF="csr-addchild.html"><IMG SRC="right.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Next Page"
			BORDER="2"></A>
		</TD>
	</TR>
	<TR>
		<TD COLSPAN="3">
			<H4>Adding an Abstract Parent Class</H4>
			<P>
			  In preparation for doing pull up method, I needed a place to pull up
			  my method to.  This refactoring adds an abstract parent class that
			  can be shared by more than one class.  To use this refactoring,
			  select all the classes that need the new abstract parent.  Then
			  right click on any selected class to show the popup menu.
			  Select "Add Abstract Parent Class" from the popup menu.
			  Enter the name of the new abstract parent class.
			</P>

			<P>
			  The automation process creates the new class with no methods or
			  fields.  Plus it updates the existing classes.  Finally, it
			  resolves any name conflicts in class files in other packages.
			</P>

			<P>  To add an abstract parent to a single class, press the right mouse
			button on the desired class.  Select add abstract parent class from the
			menu.  Then enter the name of the parent class in the dialog box.</P>

			<P>If multiple classes should have the same abstract parent class,
			click the left mouse button on the first class.  While holding the
			control key, click the left mouse button on each class that is in
			the group.  Press the right mouse button on one of the selected
			classes.  Select Add abstract parent class from the menu.  Enter
			the name of the parent class in the dialog box.</P>


		</TD>
	</TR>
	<TR>
		<TD WIDTH="35"><A HREF="csr-renameclass.html"><IMG SRC="left.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page" BORDER="2"></A></TD>
		<TD ALIGN="CENTER">
			<P ALIGN="CENTER"><FONT SIZE="2" COLOR="#AAAAAA">Last Modified: October 7, 2003</FONT>
		</TD>
		<TD WIDTH="35" ALIGN="RIGHT">
			<P ALIGN="RIGHT"><A HREF="csr-addchild.html"><IMG SRC="right.gif" WIDTH="30" HEIGHT="30" ALIGN="BOTTOM" ALT="Previous Page"
			BORDER="2"></A>
		</TD>
	</TR>
</TABLE>
</BODY>
</HTML>