本文整理汇总了Java中com.intellij.util.ui.ElementProducer类的典型用法代码示例。如果您正苦于以下问题:Java ElementProducer类的具体用法?Java ElementProducer怎么用?Java ElementProducer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ElementProducer类属于com.intellij.util.ui包,在下文中一共展示了ElementProducer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createUIComponents
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
private void createUIComponents() {
defaultExtensionLabel = new JBLabel(TesterBundle.message("settings.defaultExtension"));
defaultExtensionCombobox = new ComboBox<>(new String[]{"phpt", "php"});
bootstrapFileLabel = new JBLabel(TesterBundle.message("settings.bootstrapFile"));
bootstrapFileField = new TextFieldWithBrowseButton();
bootstrapFileField.addBrowseFolderListener(null, null, project, FileChooserDescriptorFactory.createSingleFileDescriptor("php"));
namespaceMappingTable = new NamespaceMappingTable(project);
namespaceMappingPanel = ToolbarDecorator.createDecorator(namespaceMappingTable.getTableView(), new ElementProducer<TesterNamespaceMapping>() {
@Override
public TesterNamespaceMapping createElement() {
return new TesterNamespaceMapping();
}
@Override
public boolean canCreateElement() {
return true;
}
}).createPanel();
namespaceMappingPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, JBColor.LIGHT_GRAY), TesterBundle.message("settings.namespaceMappings.title")));
}
开发者ID:jiripudil,项目名称:intellij-nette-tester,代码行数:24,代码来源:TesterConfigurableForm.java
示例2: TableToolbarDecorator
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
TableToolbarDecorator(@NotNull JTable table, @Nullable final ElementProducer<?> producer) {
myTable = table;
myProducer = producer;
myAddActionEnabled = myRemoveActionEnabled = myUpActionEnabled = myDownActionEnabled = isModelEditable();
if (isModelEditable()) {
createDefaultTableActions(producer);
}
myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
updateButtons();
}
});
myTable.addPropertyChangeListener("enabled", new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
updateButtons();
}
});
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:TableToolbarDecorator.java
示例3: TreeToolbarDecorator
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
TreeToolbarDecorator(JTree tree, @Nullable final ElementProducer<?> producer) {
myTree = tree;
myProducer = producer;
myAddActionEnabled = myRemoveActionEnabled = myUpActionEnabled = myDownActionEnabled = myTree.getModel() instanceof EditableTreeModel;
if (myTree.getModel() instanceof EditableTreeModel) {
createDefaultTreeActions();
}
myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
@Override
public void valueChanged(TreeSelectionEvent e) {
updateButtons();
}
});
myTree.addPropertyChangeListener("enabled", new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
updateButtons();
}
});
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:TreeToolbarDecorator.java
示例4: TableToolbarDecorator
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
TableToolbarDecorator(@Nonnull JTable table, @Nullable final ElementProducer<?> producer) {
myTable = table;
myProducer = producer;
myAddActionEnabled = myRemoveActionEnabled = myUpActionEnabled = myDownActionEnabled = isModelEditable();
if (isModelEditable()) {
createDefaultTableActions(producer);
}
myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
updateButtons();
}
});
myTable.addPropertyChangeListener("enabled", new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
updateButtons();
}
});
}
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:TableToolbarDecorator.java
示例5: createComponent
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
@Nullable
@Override
public JComponent createComponent() {
ToolbarDecorator tablePanel = ToolbarDecorator.createDecorator(this.tableView, new ElementProducer<MethodSignatureSetting>() {
@Override
public MethodSignatureSetting createElement() {
//IdeFocusManager.getInstance(TwigSettingsForm.this.project).requestFocus(TwigNamespaceDialog.getWindows(), true);
return null;
}
@Override
public boolean canCreateElement() {
return true;
}
});
tablePanel.setEditAction(anActionButton ->
MethodSignatureTypeSettingsForm.this.openTwigPathDialog(MethodSignatureTypeSettingsForm.this.tableView.getSelectedObject())
);
tablePanel.setAddAction(anActionButton ->
MethodSignatureTypeSettingsForm.this.openTwigPathDialog(null)
);
tablePanel.disableUpAction();
tablePanel.disableDownAction();
this.panelConfigTableView.add(tablePanel.createPanel());
return this.panel1;
}
开发者ID:Haehnchen,项目名称:idea-php-symfony2-plugin,代码行数:32,代码来源:MethodSignatureTypeSettingsForm.java
示例6: createComponent
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
@Nullable
@Override
public JComponent createComponent() {
ToolbarDecorator tablePanel = ToolbarDecorator.createDecorator(this.tableView, new ElementProducer<MethodParameterSetting>() {
@Override
public MethodParameterSetting createElement() {
//IdeFocusManager.getInstance(TwigSettingsForm.this.project).requestFocus(TwigNamespaceDialog.getWindows(), true);
return null;
}
@Override
public boolean canCreateElement() {
return true;
}
});
tablePanel.setEditAction(anActionButton ->
MethodParameterReferenceSettingsForm.this.openTwigPathDialog(MethodParameterReferenceSettingsForm.this.tableView.getSelectedObject())
);
tablePanel.setAddAction(anActionButton ->
MethodParameterReferenceSettingsForm.this.openTwigPathDialog(null)
);
tablePanel.disableUpAction();
tablePanel.disableDownAction();
this.panelConfigTableView.add(tablePanel.createPanel());
return this.panel1;
}
开发者ID:Haehnchen,项目名称:idea-php-symfony2-plugin,代码行数:32,代码来源:MethodParameterReferenceSettingsForm.java
示例7: createDecorator
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
private static ToolbarDecorator createDecorator(@NotNull JTree tree, @Nullable ElementProducer<?> producer) {
return new TreeToolbarDecorator(tree, producer).initPosition();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ToolbarDecorator.java
示例8: createComponent
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
@Nullable
@Override
public JComponent createComponent() {
ToolbarDecorator tablePanel = ToolbarDecorator.createDecorator(this.tableView, new ElementProducer<UseAliasOption>() {
@Override
public UseAliasOption createElement() {
return null;
}
@Override
public boolean canCreateElement() {
return true;
}
});
tablePanel.setEditAction(anActionButton -> {
UseAliasOption useAliasOption = tableView.getSelectedObject();
if(useAliasOption == null) {
return;
}
UseAliasForm.create(panel1, useAliasOption, option -> {
tableView.getTableViewModel().fireTableDataChanged();
changed = true;
});
});
tablePanel.setAddAction(anActionButton -> UseAliasForm.create(panel1, option -> {
tableView.getListTableModel().addRow(option);
changed = true;
}));
tablePanel.setRemoveAction(anActionButton -> {
modelList.removeRow(tableView.getSelectedRow());
tableView.getTableViewModel().fireTableDataChanged();
changed = true;
});
tablePanel.disableDownAction();
tablePanel.disableUpAction();
this.panel1.add(tablePanel.createPanel());
return this.panel;
}
开发者ID:Haehnchen,项目名称:idea-php-annotation-plugin,代码行数:47,代码来源:UseAliasListForm.java
示例9: createDecorator
import com.intellij.util.ui.ElementProducer; //导入依赖的package包/类
private static ToolbarDecorator createDecorator(@Nonnull JTree tree, @Nullable ElementProducer<?> producer) {
return new TreeToolbarDecorator(tree, producer).initPosition();
}
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:ToolbarDecorator.java
注:本文中的com.intellij.util.ui.ElementProducer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论