platform-ui-home/code-conventions/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download) (as text)

1 : tod 1.1 <html>
2 :     <head>
3 : tod 1.2 <title>Code Conventions for the Platform Workbench Team</title>
4 : tod 1.1 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 :     <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css">
6 :     </head>
7 :    
8 :     <body bgcolor="#FFFFFF" text="#000000">
9 :    
10 :     <table border=0 cellspacing=5 cellpadding=2 width="100%" >
11 :     <tr>
12 :     <td align=LEFT valign=TOP colspan="2" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">
13 :     Code Conventions for the Platform Workbench Team</font></b></td>
14 :     </tr>
15 :     <tr>
16 :     <td align=right valign=top width="2%"><img src="http://dev.eclipse.org/images/Adarrow.gif" border=0 height=16 width=16
17 :     alt = "Eclipse idea banner"></td>
18 :     <td width="98%"><p>The main Eclipse coding conventions can be found <a href="http://dev.eclipse.org/conventions.html">here</a>.
19 :     The Platform Workbench Team has been using the following additional code
20 :     conventions. Those that can be expressed with a preference can be imported
21 : tod 1.3 <a href="codeconventions.epf">here.</a> The extra conventions are</p>
22 : tod 1.1 <ol>
23 : tod 1.3 <li>Compiler warnings are on except for deprecated code.</li>
24 :     <li>Formatting has width is 150 characters</li>
25 :     <li>Use of the commented word package for package visibility (i.e. /*package*/
26 :     class PropertySheetViewer extends Viewer )</li>
27 :     <li>The order of imports in is in order of dependency (i.e. java, then
28 :     core, then set, then jface and then ui).</li>
29 : tod 1.1 </ol></td>
30 :     </tr>
31 :     </table>
32 :     </body>
33 :     </html>