Hi there!
We have a plugin that has a CustomJBRunnerTabs that extends the JBRunnerTabs from the Intellij code. In this custom tabs class we have the following:
@NotNull
@Override
public TabInfo addTab(TabInfo info) {
JPanel searchPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
CustomSearchTextField searchTextField = createTextField();
searchPanel.add(searchTextField);
searchFields.put(info, searchTextField);
info.setSideComponent(searchPanel);
return super.addTab(info);
}
This is basically an addition to the tabs to have a search bar in the right side of the tabs toolbar.
The problem is that now we are getting this error from the plugin verifier:
Internal method com.intellij.ui.tabs.impl.JBTabsImpl.addTab(TabInfo) is overridden, Internal method com.intellij.ui.tabs.impl.JBTabsImpl.addTab(com.intellij.ui.tabs.TabInfo info) : com.intellij.ui.tabs.TabInfo is overridden in class com.hpe.adm.octane.ideplugins.intellij.ui.tabbedpane.CustomJBRunnerTabs. This method is marked with @org.jetbrains.annotations.ApiStatus.Internal annotation or @com.intellij.openapi.util.IntellijInternalApi annotation and indicates that the method is not supposed to be used in client code.
I tried to search for this in the Internal API migration but couldn’t find anything. Do you have any other ideas how can we change the code so we can have our search bar and also get rid of this compatibility problem?
Thanks a lot!
Dan
plugin link:
plugin class link: