Difference between revisions of "NESCDT"
(→Using the ''nescdt'' plugin for Eclipse) |
(→Using the ''nescdt'' plugin for Eclipse) |
||
Line 19: | Line 19: | ||
* When you are done the Eclipse IDE could look something like this (note that the content of the files have been analyzed and that the icon reveals that we have some modules, generic modules, configurations, and generic configurations in the ''mica2'' folder): | * When you are done the Eclipse IDE could look something like this (note that the content of the files have been analyzed and that the icon reveals that we have some modules, generic modules, configurations, and generic configurations in the ''mica2'' folder): | ||
[[Image:Nxtmote-editor.png]] | [[Image:Nxtmote-editor.png]] | ||
+ | *When you open some '''.nc''' file it will be parsed and colored (according some some predefined rules in the plugin): | ||
[[Image:Nxtmote-editorsyntax.png]] | [[Image:Nxtmote-editorsyntax.png]] | ||
* Side notes | * Side notes | ||
− | **The ''nescdt'' plugin is < 50 | + | **The ''nescdt'' plugin is < 50 kB |
**If the CVS [http://www.eclipse.org/articles/Article-Decorators/decorators.html decorators] annoys you (for example if you do not use Eclipse's CVS client), then turn them off from '''Window->Preferences->General->Appearance->Label Decorations'''. | **If the CVS [http://www.eclipse.org/articles/Article-Decorators/decorators.html decorators] annoys you (for example if you do not use Eclipse's CVS client), then turn them off from '''Window->Preferences->General->Appearance->Label Decorations'''. | ||
**You can also download the CDT plugin for editing the header files and c files in Eclipse. Enter the [http://download.eclipse.org/tools/cdt/releases/europa http://download.eclipse.org/tools/cdt/releases/europa] as a new ''Remote site'' in the Eclipse update manager and choose the CDT main plugin: | **You can also download the CDT plugin for editing the header files and c files in Eclipse. Enter the [http://download.eclipse.org/tools/cdt/releases/europa http://download.eclipse.org/tools/cdt/releases/europa] as a new ''Remote site'' in the Eclipse update manager and choose the CDT main plugin: | ||
[[Image:Nxtmote-cdtdownload.png]] | [[Image:Nxtmote-cdtdownload.png]] |
Revision as of 05:12, 18 April 2008
Using the nescdt plugin for Eclipse
A basic nesC editor plugin for Eclipse with syntax highlighting and .nc file content detection for the follow types:
The same symbols are used as in nesdoc. The source is included in the plugin jar file, and it is possible to refine it. To install the plugin:
- Download the nescdt_0.0.7.jar file [here]
- Save it in the root of Eclipse plugin directory (where the other (jar) plugins also reside)
- Restart Eclipse (perhaps verify for yourself that it is installed: Help->About Eclipse SDK->Plug-in Details)
- Associate the *.nc files with this editor: Windows->Preferences->General->Editors->File Associations
- Create a new empty project and name it what you want to (for example nescsampleproject)
- Create a new folder in the project (right-click on the project) and name it what you want (recommended to name it similar to the folder name that we will link to in the next step)
- Import and link to the part of the TinyOS tree or your own code(right-click and press import)
- Choose the Link to folder in the file system option and proceed (this will not change your TinyOS code at all and it will not copy any files on your computer)
- When you are done the Eclipse IDE could look something like this (note that the content of the files have been analyzed and that the icon reveals that we have some modules, generic modules, configurations, and generic configurations in the mica2 folder):
- When you open some .nc file it will be parsed and colored (according some some predefined rules in the plugin):
- Side notes
- The nescdt plugin is < 50 kB
- If the CVS decorators annoys you (for example if you do not use Eclipse's CVS client), then turn them off from Window->Preferences->General->Appearance->Label Decorations.
- You can also download the CDT plugin for editing the header files and c files in Eclipse. Enter the http://download.eclipse.org/tools/cdt/releases/europa as a new Remote site in the Eclipse update manager and choose the CDT main plugin: