当前位置: 首页>>代码示例>>Java>>正文


Java IconUtil.getRemoveIcon方法代码示例

本文整理汇总了Java中com.intellij.util.IconUtil.getRemoveIcon方法的典型用法代码示例。如果您正苦于以下问题:Java IconUtil.getRemoveIcon方法的具体用法?Java IconUtil.getRemoveIcon怎么用?Java IconUtil.getRemoveIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.util.IconUtil的用法示例。


在下文中一共展示了IconUtil.getRemoveIcon方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDeleteButton

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
@NotNull
private JButton getDeleteButton(final JPanel view, SearchActionWrapper wrapper) {
    JButton btnDelete = new JButton(IconUtil.getRemoveIcon());

    btnDelete.addMouseListener(new ClickListener() {
        @Override
        public void mouseClicked(MouseEvent e) {
            actionsPanel.remove(btnDelete);
            actionsPanel.remove(view);
            customPath.getListSearchAction().remove(wrapper.getAction());
            wrappers.remove(wrapper);
            actionsPanel.revalidate();
        }
    });
    return btnDelete;
}
 
开发者ID:CeH9,项目名称:PackageTemplates,代码行数:17,代码来源:CustomPathDialog.java

示例2: getIcon

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public Icon getIcon() {
  switch (this) {
    case ADD:    return IconUtil.getAddIcon();
    case EDIT:    return IconUtil.getEditIcon();
    case REMOVE: return IconUtil.getRemoveIcon();
    case UP:     return IconUtil.getMoveUpIcon();
    case DOWN:   return IconUtil.getMoveDownIcon();
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:CommonActionsPanel.java

示例3: buildAutoImportBlock

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
private void buildAutoImportBlock() {
    panel.add(new SeparatorComponent(10), new CC().pushX().growX().wrap().spanX());
    panel.add(new JLabel(Localizer.get("settings.AutoImport"), JLabel.CENTER), new CC().wrap().growX().pushX().spanX());

    //Type
    ArrayList<WriteRules> actionTypes = new ArrayList<>();
    actionTypes.add(WriteRules.USE_EXISTING);
    actionTypes.add(WriteRules.ASK_ME);
    actionTypes.add(WriteRules.OVERWRITE);

    comboBoxRules = new ComboBox(actionTypes.toArray());
    comboBoxRules.setRenderer(new WriteRulesCellRenderer());

    panel.add(comboBoxRules, new CC().pushX().growX().spanX().gapY("10","10"));

    paths = new ArrayList<>();
    lvAutoImport = new ListView<String>(paths) {
        @Nullable
        @Override
        public CollectDataFromUI onBuildView(String item, int pos) {
            TextFieldWithBrowseButton btnPath = new TextFieldWithBrowseButton();
            btnPath.setText(item);
            btnPath.addBrowseFolderListener(Localizer.get("SelectDirectoryToImport"), "", project, FileReaderUtil.getDirectoryDescriptor());

            JButton btnDelete = new JButton(IconUtil.getRemoveIcon());
            btnDelete.addMouseListener(new ClickListener() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    lvAutoImport.collectDataFromUI();
                    presenter.removeImportPath(paths, pos);
                }
            });

            add(btnDelete, new CC().split(2).spanX());
            add(btnPath, new CC().pushX().growX());
            return () -> list.set(pos, btnPath.getText());
        }
    };
    panel.add(lvAutoImport, new CC().spanX().pushX().growX().wrap());

    JButton btnAdd = new JButton(Localizer.get("action.AddPath"), IconUtil.getAddIcon());
    btnAdd.addMouseListener(new ClickListener() {
        @Override
        public void mouseClicked(MouseEvent e) {
            lvAutoImport.collectDataFromUI();
            presenter.addImportPath(paths);
        }
    });
    panel.add(btnAdd, new CC().wrap());

    presenter.loadAutoImport();
}
 
开发者ID:CeH9,项目名称:PackageTemplates,代码行数:53,代码来源:SettingsDialog.java

示例4: DeleteUnversionedFilesAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteUnversionedFilesAction() {
  super("Delete", "Delete", IconUtil.getRemoveIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:DeleteUnversionedFilesAction.java

示例5: DeleteFromFavoritesAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteFromFavoritesAction() {
  super(IdeBundle.message("action.remove.from.current.favorites"), IconUtil.getRemoveIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:DeleteFromFavoritesAction.java

示例6: MyRemoveFilterAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
private MyRemoveFilterAction() {
  super(CommonBundle.message("button.delete"),
        AndroidBundle.message("android.logcat.remove.logcat.filter.button"),
        IconUtil.getRemoveIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:EditLogFilterDialog.java

示例7: RemoveAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public RemoveAction() {
  super(AntBundle.message("remove.ant.file.action.name"), AntBundle.message("remove.ant.file.action.description"),
        IconUtil.getRemoveIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AntExplorer.java

示例8: RemoveAssociationAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public RemoveAssociationAction() {
  super("Remove", "Remove Association", IconUtil.getRemoveIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:AssociationsEditor.java

示例9: RemoveGroupsAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public RemoveGroupsAction(Tree tree) {
  super(AntBundle.message("remove.groups.name"), AntBundle.message("remove.groups.name"), IconUtil.getRemoveIcon());
  myTree = tree;
}
 
开发者ID:consulo,项目名称:consulo-apache-ant,代码行数:5,代码来源:RemoveGroupsAction.java

示例10: DeleteSuiteAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteSuiteAction() {
  super("Delete", "Delete", IconUtil.getRemoveIcon());
  registerCustomShortcutSet(CommonShortcuts.getDelete(), mySuitesTree);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:CoverageSuiteChooserDialog.java

示例11: MyDeleteAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public MyDeleteAction(Condition<Object[]> availableCondition) {
  super(CommonBundle.message("button.delete"), CommonBundle.message("button.delete"), IconUtil.getRemoveIcon());
  registerCustomShortcutSet(CommonShortcuts.DELETE, myTree);
  myCondition = availableCondition;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:MasterDetailsComponent.java

示例12: DeleteLayerAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteLayerAction(ModuleEditor moduleEditor) {
  super("Delete layer", null, IconUtil.getRemoveIcon());
  myModuleEditor = moduleEditor;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:DeleteLayerAction.java

示例13: RemovePackagingElementAction

import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public RemovePackagingElementAction(ArtifactEditorEx artifactEditor) {
  super(ProjectBundle.message("action.name.remove.packaging.element"), ProjectBundle.message("action.description.remove.packaging.elements"),
        IconUtil.getRemoveIcon(), artifactEditor);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:RemovePackagingElementAction.java


注:本文中的com.intellij.util.IconUtil.getRemoveIcon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。