1 11 12 package org.eclipse.ui.internal.cheatsheets.data; 13 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.ui.internal.cheatsheets.views.CheatSheetManager; 16 import org.w3c.dom.Node ; 17 18 22 23 public abstract class AbstractExecutable { 24 25 private String [] params; 26 private boolean confirm = false; 27 private String when; 28 private boolean required = true; 29 30 35 public String [] getParams() { 36 return params; 37 } 38 39 43 public String getWhen() { 44 return when; 45 } 46 47 51 public boolean isConfirm() { 52 return confirm; 53 } 54 55 59 public boolean isRequired() { 60 return required; 61 } 62 63 68 public void setParams(String [] params) { 69 this.params = params; 70 } 71 72 76 public void setConfirm(boolean value) { 77 this.confirm = value; 78 } 79 80 85 public void setRequired(boolean required) { 86 this.required = required; 87 } 88 89 95 public void setWhen(String when) { 96 this.when = when; 97 } 98 99 104 public abstract boolean handleAttribute(Node attribute); 105 106 113 public abstract String checkAttributes(Node node); 114 115 118 public abstract boolean isCheatSheetManagerUsed(); 119 120 128 public abstract IStatus execute(CheatSheetManager csm); 129 130 133 public abstract boolean hasParams(); 134 135 } 136 | Popular Tags |