0

I am developing a development tool for a new language. I can't say the details of the language because the organization applied for patent. I am new to eclipse and plugin development. how can I create a user interface which is similar to cdt or jdt. The first module I have to complete is UI development. Please help me to find some good source which give the jdt ui code.

now i need to change file -> new . when click on new it should give the option to create any type of file i.e. user defined file also can create

SeekingAlpha
  • 7,489
  • 12
  • 35
  • 44
Amritaz
  • 57
  • 7

2 Answers2

5

If you're new to plugin development, I'd strongly recommend taking a look at Xtext:

http://www.eclipse.org/Xtext/

It is exactly what you are searching for: you give it the BNF of your language, and it gives you an Eclipse build with an editor, syntax highlight, content assist, validation & quick fixes, outlines, etc. (Of course, this is a bit simplified description but that's the idea behind the project.)

rlegendi
  • 10,466
  • 3
  • 38
  • 50
0

What you are asking for is very complex and quite a big task. I think you should start by creating a custom editor with syntax highlighting for your new language. This question may help you get started.

Community
  • 1
  • 1
Fredrik
  • 10,626
  • 6
  • 45
  • 81
  • just help me to do one thing. when we run an eclipse plugin project it will shows a new eclipse instance under this file->new menu we have to create a sub menu that sub menu should provide the functionality to create a new file with user defined extension and save it in memory – Amritaz Jan 29 '14 at 08:50
  • will you please help me – Amritaz Jan 29 '14 at 09:12
  • 1
    **Do not start to implement "File -> New"**. Use Xtext as rlegendi suggests in [his answer](http://stackoverflow.com/a/21425216/3104218). Xtext will take care of "File -> New" and many other things. Creating an editor for you language with Xtext takes hours to weeks depending on how complex the language is. Creating an editor without Xtext takes you months. If it is not up to you to decide whether to use Xtext or not, talk to the person who can make the decision. Xtext saves you an enormous amount of time, especially if you're new to Eclipse development. – Acanda Jan 29 '14 at 10:04
  • actually the problem is concern person told me to do this as an assignment, i mean this file - > new think. or do file -> new -> user defined file – Amritaz Jan 29 '14 at 10:10
  • @user3243181, @acanda; Creating a basic editor that shows syntax highlighting is fairly easy. There are several that you can subclass and reuse alot of code. But with that said, I agree, XText would be my first starting point as well. – Fredrik Jan 29 '14 at 12:15