コード例 #1
0
 /**
  * Get all applied elements.
  *
  * @return the applied elements.
  */
 protected Collection<?> getAppliedElements() {
   final Collection<FilterDescription> result = new HashSet<FilterDescription>();
   if (diagram != null) {
     result.addAll(diagram.getActivatedFilters());
   }
   return result;
 }
コード例 #2
0
 /**
  * Return all activated filters for the specified diagram.
  *
  * @return all activated filters for the specified diagram.
  */
 public Collection<FilterDescription> getAllFilters() {
   final Collection<FilterDescription> result = new ArrayList<FilterDescription>();
   /*
    * check the activated filters
    */
   result.addAll(dDiagram.getActivatedFilters());
   return result;
 }