Community
Participate
Working Groups
If you create a plug-in project using DS template, the error reporter doesn't work.
This is because I think on save, we should be checking if we have the DS builder added to the DS file or not. Currently, we only add the builder when you create a new DS file so we don't work with existing files if they are in a project w/o the DS builder.
Chris, I created a method using DSCreationOperation code, called addDSBuilder. I thought to add it to DSEditor to be added when the editor is created. I find a place where it works, but I'm not sure if it is the best place. I placed it in the method: createResourceContexts(InputContextManager, IFileEditorInput). So I added the statement: addDSBuilder((IFile) input.getFile()); I tested with some projects, and it's seems ok for me. Can you see any mistake?
Created attachment 113914 [details] DSEditor Updates... This is the patch to add DS Builder while opening the DS Editor. Could you please see if its ok to place the addDSBuild() in the DSEditor file?
done. > 20090930 I changed the logic to move the adding the builder to the save operation. This requires people to modify the file and than the builder gets attached. This is a similar thing that WTP does with XML files not created by WTP.