public class PluginManagerConfigurable extends java.lang.Object implements SearchableConfigurable, Configurable.NoScroll, Configurable.NoMargin, Configurable.TopComponentProvider
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.Parent
Configurable.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, wait
getOriginalClass
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
isAvailable
public 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)
PluginManagerConfigurable
public java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id
public java.lang.String getDisplayName()
Configurable
getDisplayName
in interface Configurable
public java.awt.Component getCenterComponent(Configurable.TopComponentController controller)
getCenterComponent
in interface Configurable.TopComponentProvider
public javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
null
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()
Configurable
getHelpTopic
in interface Configurable
null
if no help is availablepublic void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public void cancel()
UnnamedConfigurable
cancel
in interface UnnamedConfigurable
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
ConfigurationException
- if values cannot be appliedpublic void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
public 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 SearchableConfigurable
option
- setting search query