Salome HOME
SIMAN Eclipse workspace first version
[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     private static final long serialVersionUID = 3003902258668626946L;
11
12         protected enum Execute { popup, develop, reduce, reduceall }
13
14 //  ==============================================================================================================================
15 //  Getters and setters
16 //  ==============================================================================================================================
17
18     public String getSelection () {
19 //  -----------------------------
20       return selection;   // Equals to myobject.getSelection()
21     }
22
23     public void setAction (String action) {
24 //  -------------------------------------
25       this.action = action;
26     }
27     public void setIndex (String index) {
28 //  -----------------------------------
29       this.myindex = index;
30     }
31     public void setSelection (String step) {
32 //  --------------------------------------
33       this.selection = step;
34     }    
35
36 //  ==============================================================================================================================
37 //  Abstract services
38 //  ==============================================================================================================================
39
40     public abstract String getWriteAccess ();
41 }