当前位置: 首页>>代码示例>>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;未经允许,请勿转载。