本文整理汇总了Java中com.rapidminer.gui.operatortree.actions.CutCopyPasteDeleteAction类的典型用法代码示例。如果您正苦于以下问题:Java CutCopyPasteDeleteAction类的具体用法?Java CutCopyPasteDeleteAction怎么用?Java CutCopyPasteDeleteAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CutCopyPasteDeleteAction类属于com.rapidminer.gui.operatortree.actions包,在下文中一共展示了CutCopyPasteDeleteAction类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import com.rapidminer.gui.operatortree.actions.CutCopyPasteDeleteAction; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
List<Entry> entries = tree.getSelectedEntries();
// Deletion of elements
if (e.getActionCommand().equals(DeleteRepositoryEntryAction.I18N_KEY)
|| e.getActionCommand().equals(CutCopyPasteDeleteAction.DELETE_ACTION_COMMAND_KEY)) {
if (entries.size() == 1) {
if (SwingTools.showConfirmDialog("file_chooser.delete", ConfirmDialog.YES_NO_OPTION, entries.get(0)
.getName()) != ConfirmDialog.YES_OPTION) {
return;
}
} else {
if (SwingTools
.showConfirmDialog("file_chooser.delete_multiple", ConfirmDialog.YES_NO_OPTION, entries.size()) != ConfirmDialog.YES_OPTION) {
return;
}
}
}
// Do not treat entries, whose are already included in selected folders
entries = removeIntersectedEntries(tree.getSelectedEntries());
for (Entry entry : entries) {
actionPerformed(requiredSelectionType.cast(entry));
}
}
示例2: installMenuItems
import com.rapidminer.gui.operatortree.actions.CutCopyPasteDeleteAction; //导入依赖的package包/类
public static void installMenuItems(JPopupMenu editmenu, boolean enableCutCopy) {
if (enableCutCopy) {
editmenu.add(CutCopyPasteDeleteAction.CUT_ACTION);
editmenu.add(CutCopyPasteDeleteAction.COPY_ACTION);
editmenu.add(CutCopyPasteDeleteAction.PASTE_ACTION);
editmenu.add(CutCopyPasteDeleteAction.DELETE_ACTION);
} else {
editmenu.add(CutCopyPasteDeleteAction.CUT_ACTION).setEnabled(false);
editmenu.add(CutCopyPasteDeleteAction.COPY_ACTION).setEnabled(false);
editmenu.add(CutCopyPasteDeleteAction.PASTE_ACTION);
editmenu.add(CutCopyPasteDeleteAction.DELETE_ACTION).setEnabled(false);
}
}
示例3: installMenuItems
import com.rapidminer.gui.operatortree.actions.CutCopyPasteDeleteAction; //导入依赖的package包/类
public static void installMenuItems(JPopupMenu editmenu) {
editmenu.add(CutCopyPasteDeleteAction.CUT_ACTION);
editmenu.add(CutCopyPasteDeleteAction.COPY_ACTION);
editmenu.add(CutCopyPasteDeleteAction.PASTE_ACTION);
editmenu.add(CutCopyPasteDeleteAction.DELETE_ACTION);
}