EMC Developer Network

Code Snippet Submissions

There are two ways you can submit code snippets to us. First, you can download the XML template for a snippet, fill in the details and email it to us. Secondly, if you use the Eclipse IDE, you use our code snippets plugin and select and submit the snippet from within Eclipse. The plugin will create the snippet XML file and send it us.

Code Snippet Template

Ready to send us your snippets? It's easy, just follow these three simple steps:

Submission Guidelines

Please use the following basic guidelines when submitting your code snippets to the Developer Program.

  • Please make sure your code is readable, including basic comments, nothing too elaborate
  • Try to make your snippet as complete as possible either in method format, or called by a main function
  • Keep your abstract and explanations concise
  • Don't forget to include your name, your title and your email address

Code Snippets Eclipse Plugin

Installation

  • Download the plugin
  • Extract it into ECLIPSE_HOME (not into ECLIPSE_HOME/plugins)

Usage

  • Select a piece of code that you want to publish. The piece of code could be anything within Eclipse - Java,JSP,XML,XSL, JavaScript,...
  • Right-click and click on 'Submit Code Snippet'

    Ed Ctx Menu

    Fig - Editor Context Menu

  • Fill in the details.

    cs dialog

    Fig - Code Snippets Submission Dialog

  • After this you have two options - Create the snippet submission and save it to be sent later or directly submit it to us.Using the first option you can send it using your mail client whenever you want to. The other option uses JavaMail API to send the snippet to us. You will need to specify a SMTP server to use and your email address. The plugin will remember the SMTP server and your address for the next time you submit. These can also be specified in the preferences section Windows->Preferences->EMC Developer Code Snippets Preferences.