now I am going to create a java file and store the modifications back into that file, I used ITextFileBufferManager bufferManager = FileBuffers.getTextFileBufferManager() to get the buffer manager, but when I executed it, I got an ExceptionInInitializerError, could you tell me how to solve it?
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: Workspace is closed.
... 1 more
how to solve the exception here?
If it's a plugin, then you should code it like a plugin and not through a main method java legacy, you need to have a file in your root: plugin.xml which will hold your plugin configuration. your action class must implement
classes and your plugin must be run against an active eclipse workspace.