本文整理汇总了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;
}
示例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;
}
示例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();
}
示例4: DeleteUnversionedFilesAction
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteUnversionedFilesAction() {
super("Delete", "Delete", IconUtil.getRemoveIcon());
}
示例5: DeleteFromFavoritesAction
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteFromFavoritesAction() {
super(IdeBundle.message("action.remove.from.current.favorites"), IconUtil.getRemoveIcon());
}
示例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());
}
示例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());
}
示例8: RemoveAssociationAction
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public RemoveAssociationAction() {
super("Remove", "Remove Association", IconUtil.getRemoveIcon());
}
示例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;
}
示例10: DeleteSuiteAction
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteSuiteAction() {
super("Delete", "Delete", IconUtil.getRemoveIcon());
registerCustomShortcutSet(CommonShortcuts.getDelete(), mySuitesTree);
}
示例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;
}
示例12: DeleteLayerAction
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public DeleteLayerAction(ModuleEditor moduleEditor) {
super("Delete layer", null, IconUtil.getRemoveIcon());
myModuleEditor = moduleEditor;
}
示例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);
}