當前位置: 首頁>>代碼示例>>Java>>正文


Java CutCopyPasteDeleteAction類代碼示例

本文整理匯總了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));
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:29,代碼來源:AbstractRepositoryAction.java

示例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);
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:14,代碼來源:OperatorTransferHandler.java

示例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);
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:7,代碼來源:OperatorTransferHandler.java


注:本文中的com.rapidminer.gui.operatortree.actions.CutCopyPasteDeleteAction類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。