本文整理匯總了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);
}