java - Extending Existing Eclipse Editors -


is possible?

here problem trying solve:

i have 3 configuration files 1 .ini, 1 .config, , 1 .json

then have bunch of sql files have sort-of customized version of sql in them.

i need syntax validation on these files, , added syntax highlighting. in performsave function made call validator.

it nice have update dynamically typed, couldn't figure part out yet.

my problem this: of these config files , sql files have our own special brand of syntax, json file regular old json file seems silly create own editor , re implement syntax coloring in use. hoping extend current existing editor in eclipse add hooks need them.

heres have done far:

i created eclipse plugins work ing these files. notably have created .sql editor, .config editor, , .ini editor. part know how create editor , syntax coloring , problem marking etc. ride coat tails of has created json editor need add validation calls.

if have insight extending existing editor great.

also put validator call mark files while being created except on save awesome too.

-best, jeff

have considered using xtext feature rich editor (on fly syntax correction, code completion etc..) rather implementing scratch ?

for json, grammar fits in few lines : https://gist.github.com/nightscape/629651

just build "new->xtext project", stick grammar , run "generate xtext artifacts", you'll extensible editor in no time.

there feature add validation rules checked on fly using java or xtend.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -