Basic Editor Question [message #604974] |
Wed, 10 March 2010 15:14 |
Darin Messages: 12 Registered: March 2010 |
Junior Member |
|
|
Hello,
OK, first off here's my specs.
Java Version : j2sdk1.4.2_05
Eclipse Version : 3.3.2 (Europa)
I just had a basic question in regard to creating an editor that supports syntax highlighting (eventually I plan to expand on it, but I want to get this basic part working first). Basically I want to be able to start my project and be able to select File.. Open, select a file and it automatically starts the Editor for that file extension.
I've created the default Plug-in project, based off the "Plug-in with an editor" template, and my one question is this:
How do I go about setting up the project so that when I launch it (F11), I can just select File.. Open, select the .xml file, and it will automatically launch the XML Editor. As it stands now, I have to create a new Java project, add-in the .xml file, and the right click on the .xml file and tell it to "open with..." XML Editor.
For instance, I can start Eclipse (where I have the CDT installed), select File.. Open, select a .c or .cpp file, and the C/C++ Editor is automatically loaded with the .c/.cpp (syntax highlighting and all). Can you please help me and guide me as to what I need to do to get this functionality implemented?
Thanks for your help.
- Darin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04093 seconds