本文整理汇总了Java中com.intellij.openapi.options.UnnamedConfigurable.createComponent方法的典型用法代码示例。如果您正苦于以下问题:Java UnnamedConfigurable.createComponent方法的具体用法?Java UnnamedConfigurable.createComponent怎么用?Java UnnamedConfigurable.createComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.options.UnnamedConfigurable
的用法示例。
在下文中一共展示了UnnamedConfigurable.createComponent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateConfiguration
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
private void updateConfiguration() {
int selectedIndex = myVcses.getSelectionModel().getMinSelectionIndex();
final VcsDescriptor currentVcs;
currentVcs = selectedIndex >= 0 ? (VcsDescriptor)(myVcses.getModel()).getElementAt(selectedIndex) : null;
String currentName = currentVcs == null ? NONE : currentVcs.getName();
if (currentVcs != null) {
final UnnamedConfigurable unnamedConfigurable = myVcsNameToConfigurableMap.get(currentName);
unnamedConfigurable.createComponent();
unnamedConfigurable.reset();
}
final CardLayout cardLayout = (CardLayout)myVcsConfigurationPanel.getLayout();
cardLayout.show(myVcsConfigurationPanel, currentName);
}
示例2: createComponent
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
@Override
public JComponent createComponent() {
for (UnnamedConfigurable provider : getConfigurables()) {
JComponent component = provider.createComponent();
if (component != null) {
myAddonPanel.add(component, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 0, 0, GridBagConstraints.NORTHWEST,
GridBagConstraints.NONE, new Insets(0, 0, 15, 0), 0, 0));
}
}
return myRootPanel;
}
示例3: createComponent
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
@RequiredDispatchThread
public static JComponent createComponent(@Nonnull UnnamedConfigurable configurable) {
JComponent component = configurable.createComponent();
if (component != null) {
return component;
}
consulo.ui.Component uiComponent = configurable.createUIComponent();
if (uiComponent != null) {
return (JComponent)uiComponent;
}
return null;
}