public boolean canEdit(Class omgc){
  Iterator iterator;
  if (possibleEditableClasses == null) {
    Set keys=loaders.keySet();
    possibleEditableClasses=new Vector(keys.size());
    iterator=keys.iterator();
    while (iterator.hasNext()) {
      String key=(String)iterator.next();
      try {
        possibleEditableClasses.add(Class.forName(key));
      }
 catch (      ClassNotFoundException cnfe) {
      }
    }
  }
  iterator=possibleEditableClasses.iterator();
  while (iterator.hasNext()) {
    Class kc=(Class)iterator.next();
    if (kc == omgc || kc.isAssignableFrom(omgc)) {
      return true;
    }
  }
  return false;
}

public boolean canEdit ( Class omgc ) { Iterator iterator ; if ( possibleEditableClasses == null ) { Set keys = loaders . keySet ( ) ; possibleEditableClasses = new Vector ( keys . size ( ) ) ; iterator = keys . iterator ( ) ; while ( iterator . hasNext ( ) ) { String key = ( String ) iterator . next ( ) ; try { possibleEditableClasses . add ( Class . forName ( key ) ) ; } catch ( ClassNotFoundException cnfe ) { } } } iterator = possibleEditableClasses . iterator ( ) ; while ( iterator . hasNext ( ) ) { Class kc = ( Class ) iterator . next ( ) ; if ( kc == omgc || kc . isAssignableFrom ( omgc ) ) { return true ; } } return false ; }
return true if the omdrawingtool can edit the omgraphic . meant to be a low - cost check , with a minimal allocation of memory .
