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
请先登录再写评论。
AFAIK there is not possibility to automatically "override" existing filetype registration.