Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / DisplayBaseAction.java
1 package org.splat.simer;
2
3
4 public abstract class DisplayBaseAction extends Action {
5
6     protected  String          myindex   = null;    // Index of the open object
7     protected  String          selection = null;    // User activity selection
8     protected  String          action    = null;
9
10         /**
11          * Serial version ID.
12          */
13     private static final long serialVersionUID = 3003902258668626946L;
14
15         protected enum Execute { popup, develop, reduce, reduceall }
16
17 //  ==============================================================================================================================
18 //  Getters and setters
19 //  ==============================================================================================================================
20
21     public String getSelection () {
22 //  -----------------------------
23       return selection;   // Equals to myobject.getSelection()
24     }
25
26     public void setAction (String action) {
27 //  -------------------------------------
28       this.action = action;
29     }
30     public void setIndex (String index) {
31 //  -----------------------------------
32       this.myindex = index;
33     }
34     public void setSelection (String step) {
35 //  --------------------------------------
36       this.selection = step;
37     }    
38
39 //  ==============================================================================================================================
40 //  Abstract services
41 //  ==============================================================================================================================
42
43     public abstract String getWriteAccess ();
44 }