NC060710: Switched Constants with Enumerations
authornsimic
Mon, 10 Jul 2006 14:02:33 +0200
changeset 32847ad9717e9c97
parent 3283 813db1cc5ab0
child 3285 a893d309025f
NC060710: Switched Constants with Enumerations
src/java/isac/useractions/IUIAction.java
     1.1 --- a/src/java/isac/useractions/IUIAction.java	Mon Jul 10 13:01:55 2006 +0200
     1.2 +++ b/src/java/isac/useractions/IUIAction.java	Mon Jul 10 14:02:33 2006 +0200
     1.3 @@ -21,64 +21,6 @@
     1.4   */
     1.5  public interface IUIAction extends IUIElement, Serializable {
     1.6  
     1.7 -	/** 
     1.8 -     * @deprecated */
     1.9 -    public static final int UI_CONTEXT_WINDOW_APPLICATION = 1;
    1.10 -
    1.11 -    /** the context for a whole calculation (0507 on the mainframe) */
    1.12 -    public static final int UI_CONTEXT_CALCULATION = 2;
    1.13 -
    1.14 -    /** use this if you send something to a dialog, and you do not know
    1.15 -     * what kind of dialog it is 
    1.16 -     * @deprecated */
    1.17 -    public static final int UI_CONTEXT_DIALOG = 3;
    1.18 -       
    1.19 -    
    1.20 -    
    1.21 -    /** for the whole ProblemBrowser 
    1.22 -     * @deprecated*/
    1.23 -    public static final int UI_CONTEXT_PROBLEM_BROWSER = 4;
    1.24 -
    1.25 -    /** for the panel in the problem browser 
    1.26 -     * @deprecated*/
    1.27 -    public static final int UI_CONTEXT_BROWSER_PANEL = 5;
    1.28 -    
    1.29 -    /** @deprecated*/
    1.30 -    public static final int UI_CONTEXT_BROWSER_MODEL_PANEL = 6;
    1.31 -    
    1.32 -    /** for the whole Browser */
    1.33 -    public static final int UI_CONTEXT_BROWSER = 7;
    1.34 -    
    1.35 -    /** for the Hierarchy in the Browser */
    1.36 -    public static final int UI_CONTEXT_HIERARCHY = 8;
    1.37 -
    1.38 -    /** To send the MiniBrowser something **/
    1.39 -    public static final int UI_CONTEXT_MINIBROWSER = 9;
    1.40 -    
    1.41 -    /** to set the focus of a Window*/
    1.42 -    public static final int UI_CONTEXT_FOCUS = 10;
    1.43 -    
    1.44 -
    1.45 -    
    1.46 -    /** not a useraction, but for technical reasons: for lauching and releasing
    1.47 -     * the CalcHeadPanel */
    1.48 -    public static final int UI_CONTEXT_SWITCH_PHASES = 11;
    1.49 -
    1.50 -    /** for all calcelements together existing in a calculation (0507 context */
    1.51 -    public static final int UI_CONTEXT_CALCELEMENTS = 12;
    1.52 -
    1.53 -    /** for one specific element in a calculation (0507 added to context menu) */
    1.54 -    public static final int UI_CONTEXT_ONEELEMENT = 13;
    1.55 -
    1.56 -    /** for all elements on the CalcHeadPanel */
    1.57 -    public static final int UI_CONTEXT_CALCHEAD = 14;
    1.58 -
    1.59 -    /** FIXME used, until UIAction and UserAction are merged */
    1.60 -    public static final int UI_CONTEXT_NO_CONTEXT = 15;
    1.61 -
    1.62 -    /** NC 0606 To send the applicable tactics */   
    1.63 -    public static final int UI_CONTEXT_APPLICABLE_TACTIC = 16;
    1.64 -    
    1.65      /**
    1.66       * The design (AK,LK) provided usage of context only in direction dialoges
    1.67       * to gui, not to in (vice versa) direction gui to dialoges.
    1.68 @@ -86,10 +28,10 @@
    1.69       * @see IUIAction
    1.70       * @return An integer value describing the context of the UIElement
    1.71       */
    1.72 -    public int getContext();
    1.73 +    public EUIContext getContext();
    1.74  
    1.75 -    public int getAction();
    1.76 +    public EUIElement getAction();
    1.77  
    1.78      public String getLabel();
    1.79  
    1.80 -}
    1.81 +}
    1.82 \ No newline at end of file