|MultiPageEditor and some probs with it [message #902436]
||Fri, 17 August 2012 14:56
| Marjan Stojanovic
Registered: June 2012
Well first of all, let me explain my Plug-in. Its some kind of combination of wizard (which changes project nature and make new file of my own type) and editor (used for opening my file type). I am almost finished, but i ran on some problems that i can not find anywhere (but probably that i am too stupid to find what i need).|
Anyway i got 2 questions:
1. I need to pass parameters which i get from user through wizard to each editor for each file (because it will differ from file to file what we get from wizard) and i am interested if i can somehow create editor for each file and where (because as far as i can tell, i dont make instance of editors anywhere because eclipse does it for my file type).
2. My main question is about editor. I am currently stuck with doSave() which i inherit from MultiPageEditorPart and i need to implement. The thing is that editor is manipulating with data he got from file and now on save he needs to write them to file but i first need to validate them and here we come on our main problem:
Whole look of editor is dynamic, depending on data from file (which i keep in List and HashMaps inside wizard for one file) and whole changing of data is done through SWT controls (buttons, combos, trees, etc...) and when i try to save and to take those thata it says that its not enabled (eg. i need to click on treeItem representing data that is not valid).
3. For this i am using SWTBot. I know its bad but i didnt find any better way for clicking on treeItems or something other than that. Also i am using SWTBot inside editor all the time and it doesnt make any problems, except i try to save.
If u need something feel fry to ask and i am sorry for such a long post.
Regards, M. Stojanovic
p.s. i need that code wont help you but if u need some excerpt feel free to ask.
Powered by FUDForum
. Page generated in 0.01978 seconds