문제

I am developing a plug-in.using my wizard we can create a new file with extension "file name.xyz" and in that wizard we have radio buttons. it will choose strings and that string will print on the created file' editor. and that is done by string buffer reader. but now I need to store that string as array list and need to give specific colour to that string when it is shown in the editor

도움이 되었습니까?

해결책

There is no simple way to do syntax coloring in an Eclipse editor you have to learn the full system.

If you create a new plug-in project one of the examples that Eclipse offers to create for you is an XML editor which contains most of the code you will need.

To create this run New > Project > Plug-in Project. On the second page of the new plug-in project wizard make sure you have This plug-in will make contributions to the UI set and Would you like to create a 3.x rich client application set to No. The next page of the wizard will then offer to create a plug-in using one of the templates - choose Plug-in with a editor.

Study this in conjunction with the help of Eclipse editors

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top