Exemplo n.º 1
0
 public static List<IAction> getSampleActions(
     ColumnViewer viewer, EditingDomain editingDomain, EObject info, IARESResource res) {
   IARESProject project = res.getARESProject();
   if (info instanceof ConstantList) {
     return getConstantSampleAction(viewer, editingDomain, (ConstantList) info, project);
   }
   if (info instanceof BusinessDataTypeList) {
     return getBizSampleAction(viewer, editingDomain, (BusinessDataTypeList) info, project);
   }
   if (info instanceof DictionaryList) {
     return getDicSampleAction(viewer, editingDomain, (DictionaryList) info, project);
   }
   if (info instanceof ErrorNoList) {
     return getErrorSampleAction(viewer, editingDomain, (ErrorNoList) info, project);
   }
   if (info instanceof StandardDataTypeList) {
     return getStdTypeSampleAction(viewer, editingDomain, (StandardDataTypeList) info, project);
   }
   if (info instanceof StandardFieldList) {
     return getStdfldSampleAction(viewer, editingDomain, (StandardFieldList) info, project);
   }
   if (info instanceof TypeDefaultValueList) {
     return getDefvalueSampleAction(viewer, editingDomain, (TypeDefaultValueList) info, project);
   }
   if (info instanceof MenuList) {
     return getMenuSampleAction(viewer, editingDomain, (MenuList) info, project);
   }
   return new ArrayList<IAction>();
 }
 /**
  * @param attribute
  * @param project
  */
 public ParameterColumnLabelProvider(IARESResource resource, EStructuralFeature attribute) {
   super(attribute);
   this.resource = resource;
   this.project = resource.getARESProject();
 }