public class PluginManagerConfigurable extends java.lang.Object implements SearchableConfigurable, Configurable.NoScroll, Configurable.NoMargin, Configurable.TopComponentProvider
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.ParentConfigurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies| Modifier and Type | Field and Description |
|---|---|
static java.text.SimpleDateFormat |
DATE_FORMAT |
static java.lang.String |
ID |
static int |
ITEMS_PER_GROUP |
static java.awt.Color |
MAIN_BG_COLOR |
static java.awt.Color |
SEARCH_BG_COLOR |
static java.awt.Color |
SEARCH_FIELD_BORDER_COLOR |
static java.lang.String |
SELECTION_TAB_KEY |
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE| Constructor and Description |
|---|
PluginManagerConfigurable() |
PluginManagerConfigurable(PluginManagerUISettings uiSettings)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
cancel()
Called when 'Cancel' is pressed in the Settings dialog.
|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
static javax.swing.JComponent |
createScrollPane(PluginsGroupComponent panel,
boolean initSelection) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
java.lang.Runnable |
enableSearch(java.lang.String option) |
java.awt.Component |
getCenterComponent(Configurable.TopComponentController controller) |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
static java.lang.String |
getDownloads(IdeaPluginDescriptor plugin) |
java.lang.String |
getHelpTopic()
Returns the topic in the help file which is shown when help for the configurable is requested.
|
java.lang.String |
getId()
Unique configurable id.
|
static java.lang.String |
getLastUpdatedDate(IdeaPluginDescriptor plugin) |
MyPluginModel |
getPluginModel() |
static java.lang.String |
getRating(IdeaPluginDescriptor plugin) |
static java.lang.String |
getSize(IdeaPluginDescriptor plugin) |
static java.util.List<java.lang.String> |
getTags(IdeaPluginDescriptor plugin) |
static java.lang.String |
getVersion(IdeaPluginDescriptor oldPlugin,
IdeaPluginDescriptor newPlugin) |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
static int |
offset5() |
static void |
registerCopyProvider(PluginsGroupComponent component) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
select(IdeaPluginDescriptor... descriptors) |
void |
setInitUpdates(java.util.Collection<PluginDownloader> initUpdates) |
static <T extends java.awt.Component> |
setTinyFont(T component) |
static void |
showPluginConfigurable(Project project,
java.util.Collection<PluginDownloader> updates) |
static void |
showPluginConfigurable(Project project,
IdeaPluginDescriptor... descriptors) |
static void |
showPluginConfigurableAndEnable(Project project,
IdeaPluginDescriptor... descriptors) |
static int |
showRestartDialog() |
static int |
showRestartDialog(java.lang.String title) |
static int |
showRestartDialog(java.lang.String title,
java.util.function.Function<java.lang.String,java.lang.String> message) |
static void |
shutdownOrRestartApp() |
static void |
shutdownOrRestartApp(java.lang.String title) |
static void |
shutdownOrRestartAppAfterInstall(java.lang.String plugin) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOriginalClassgetPreferredFocusedComponent, isModified, isModified, isModified, isModifiedisAvailablepublic static final java.lang.String ID
public static final java.lang.String SELECTION_TAB_KEY
public static final java.awt.Color MAIN_BG_COLOR
public static final java.awt.Color SEARCH_BG_COLOR
public static final java.awt.Color SEARCH_FIELD_BORDER_COLOR
public static final int ITEMS_PER_GROUP
public static final java.text.SimpleDateFormat DATE_FORMAT
public PluginManagerConfigurable()
@Deprecated public PluginManagerConfigurable(PluginManagerUISettings uiSettings)
PluginManagerConfigurablepublic java.lang.String getId()
SearchableConfigurablegetId in interface SearchableConfigurableConfigurableEP.idpublic java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic java.awt.Component getCenterComponent(Configurable.TopComponentController controller)
getCenterComponent in interface Configurable.TopComponentProviderpublic javax.swing.JComponent createComponent()
UnnamedConfigurableAlso this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent in interface UnnamedConfigurablenull if it cannot be createdUnnamedConfigurable.disposeUIResources()public static void registerCopyProvider(PluginsGroupComponent component)
public static java.util.List<java.lang.String> getTags(IdeaPluginDescriptor plugin)
public static <T extends java.awt.Component> T setTinyFont(T component)
public static int offset5()
public static java.lang.String getDownloads(IdeaPluginDescriptor plugin)
public static java.lang.String getLastUpdatedDate(IdeaPluginDescriptor plugin)
public static java.lang.String getRating(IdeaPluginDescriptor plugin)
public static java.lang.String getSize(IdeaPluginDescriptor plugin)
public static java.lang.String getVersion(IdeaPluginDescriptor oldPlugin, IdeaPluginDescriptor newPlugin)
public static int showRestartDialog()
public static int showRestartDialog(java.lang.String title)
public static int showRestartDialog(java.lang.String title,
java.util.function.Function<java.lang.String,java.lang.String> message)
public static void shutdownOrRestartApp()
public static void shutdownOrRestartApp(java.lang.String title)
public static void shutdownOrRestartAppAfterInstall(java.lang.String plugin)
public static void showPluginConfigurableAndEnable(Project project, IdeaPluginDescriptor... descriptors)
public static void showPluginConfigurable(Project project, IdeaPluginDescriptor... descriptors)
public static void showPluginConfigurable(Project project, java.util.Collection<PluginDownloader> updates)
public static javax.swing.JComponent createScrollPane(PluginsGroupComponent panel, boolean initSelection)
public java.lang.String getHelpTopic()
ConfigurablegetHelpTopic in interface Configurablenull if no help is availablepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic void cancel()
UnnamedConfigurablecancel in interface UnnamedConfigurablepublic boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurabletrue if the settings were modified, false otherwisepublic void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableConfigurationException - if values cannot be appliedpublic void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablepublic MyPluginModel getPluginModel()
public void setInitUpdates(java.util.Collection<PluginDownloader> initUpdates)
public void select(IdeaPluginDescriptor... descriptors)
public java.lang.Runnable enableSearch(java.lang.String option)
enableSearch in interface SearchableConfigurableoption - setting search query