Override plugin file type

Hi,

 

How can I override the file type of an existing plugin? Currently the .tpl is registered fpr the Smarty plugin.

I don't want users of my plugin to manually unregister the Smarty filetype.

public class IrpagesFileTypeFactory extends FileTypeFactory {
@Override
public void createFileTypes(@NotNull FileTypeConsumer consumer) {
consumer.consume(IrpagesFileType.INSTANCE, "tpl");
consumer.consume(IrpagesFileType.INSTANCE, "irpages");
}
}

Thanks,
Roland
1 comment
Comment actions Permalink

AFAIK there is not possibility to automatically "override" existing filetype registration.

0

Please sign in to leave a comment.