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?

 

0
8 comments

Try specifying 'order="first"' in plugin.xml declaration.

1
Avatar
Permanently deleted user

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

0

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?

1
Avatar
Permanently deleted user

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? : (

0

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?

1
Avatar
Permanently deleted user

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 ?

 

 

 

0

You must add other plugin's JAR files to IntelliJ Platform SDK, not to module classpath of your plugin.

1
Avatar
Permanently deleted user

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

0

Please sign in to leave a comment.