1 package org.eparapher.rcp.actions;
2
3 import org.eclipse.jface.action.Action;
4 import org.eclipse.jface.viewers.TreeViewer;
5 import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
6 import org.eparapher.rcp.tools.GUIIcons;
7 import org.eparapher.rcp.tools.RCPGUI;
8
9
10 public class DecryptAction extends Action implements IWorkbenchAction {
11
12 private TreeViewer viewer;
13 private boolean usewizard;
14
15 private DecryptAction() {
16 this.setId("DecryptAction");
17 this.setText("Decrypt");
18 this.setToolTipText("Decrypt your private files");
19 this.setImageDescriptor(GUIIcons.DECRYPTION_ICON);
20 }
21
22 public DecryptAction(TreeViewer mviewer) {
23 this();
24 viewer = mviewer;
25 }
26
27 public void dispose() {
28 }
29
30 public void run() {
31
32 if (viewer.getSelection()!=null) {
33 if (!viewer.getSelection().isEmpty()) {
34 RCPGUI.infoMessage("Decrypt","Not implemented yet");
35
36
37
38
39
40 }
41 }
42 }
43
44 }