Is it possible to register more than 1 dom.fileDescriptor extensionPoint for a file
Hi,
I am trying create a dom.fileDescriptor extensionPoint for AndroidManifest.xml.
My implementation is clashing - seems that only one descriptor per file can be registered - with the bundled Android implementation.
Is there a way to register more than 1 dom.fileDescriptor?
Please sign in to leave a comment.
Try specifying 'order="first"' in plugin.xml declaration.
But when I want both plugin work at the same time, is that possible?
Now I write a plugin to handle with mybatis xml file, as the same time i installed another mybatis plugin. When I installed mine plugin, the first one not work anymore. From `DomManager.getFileElement` document, is only one fileDescription could return?
Look forward to your reply.
Kevin
The design allows only one DomFileDescription to match given file. I don't understand what use-case you're achieving to "mix" multiple ones here? What features exactly do you want to combine between the two plugins?
The first plugin covers most daily-case, but can't sync changes (such as add field) between POJO and Mapper file. So i write my own plugin to achieve these goals. It's will be nice they both work together and combine their own ablity. So it's not impossible now? : (
If the first plugin exposes its own DOM-Model, you could re-use DomElement structure from your plugin e.g. to generate/update existing XML?
Good idea. But the first plugin's DOM-Model is not in classpath, I suppose it was in idea's classpath not project. I tried put first plugin's DOM-MODEL in my plugin project, but it's not working either. So the only way is geting first plugin source code and make changes and keep all functionality in one plugin ?
You must add other plugin's JAR files to IntelliJ Platform SDK, not to module classpath of your plugin.
I decide to give up the first plugin and add the lack functionality to my own plugin. So it will be clear and have no dependency I can't controll.
Appreciate for your answers, Thank you very much