Changeset 724 for trunk/quest-core-events
- Timestamp:
- 08/31/12 10:27:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIElementFactory.java
r655 r724 10 10 import java.util.Properties; 11 11 import java.util.logging.Level; 12 import java.util.logging.Logger; 12 13 import de.ugoe.cs.util.console.Console; 13 14 14 15 /** … … 86 87 87 88 if (!IGUIElement.class.isAssignableFrom(clazz)) { 88 Logger.getLogger(this.getClass().getName()).warning 89 ("configured GUI element representing class " + className + 90 " is no valid GUIElement " + "derivate."); 89 Console.traceln(Level.WARNING, "configured GUI element representing class " + 90 className + " is no valid GUIElement derivate."); 91 91 92 92 return null; … … 143 143 } 144 144 catch (ClassNotFoundException e) { 145 Logger.getLogger(this.getClass().getName()).warning 146 ("configured GUI element representing class " + className + 147 " can not be loaded."); 145 Console.traceln(Level.WARNING, "configured GUI element representing class " + 146 className + " can not be loaded."); 148 147 throw new GUIModelConfigurationException 149 148 ("configured GUI element representing class " + className + … … 151 150 } 152 151 catch (SecurityException e) { 153 Logger.getLogger(this.getClass().getName()).log 154 (Level.WARNING, "configured GUI element representing class " + className + 152 Console.traceln(Level.WARNING, "configured GUI element representing class " + 153 className + " can not be instantiated due to security reasons."); 154 throw new GUIModelConfigurationException 155 ("configured GUI element representing class " + className + 155 156 " can not be instantiated due to security reasons.", e); 156 throw new GUIModelConfigurationException157 ("configured GUI element representing class " + className +158 " can not be instantiated due to security reasons.", e);159 157 } 160 158 catch (NoSuchMethodException e) { 161 Logger.getLogger(this.getClass().getName()).warning 162 ("configured GUI element representing class " + className + 163 " does not provide an appropriate constructur."); 164 throw new GUIModelConfigurationException 165 ("configured GUI element representing class " + className + 166 " does not provide an appropriate constructur.", e); 159 Console.traceln(Level.WARNING, "configured GUI element representing class " + 160 className + " does not provide an appropriate constructor."); 161 throw new GUIModelConfigurationException 162 ("configured GUI element representing class " + className + 163 " does not provide an appropriate constructor.", e); 167 164 } 168 165 catch (IllegalArgumentException e) { 169 Logger.getLogger(this.getClass().getName()).warning 166 Console.traceln(Level.WARNING, "configured GUI element representing class " + 167 className + " does not provide an appropriate constructor " + 168 "accepting the provided parameters."); 169 throw new GUIModelConfigurationException 170 170 ("configured GUI element representing class " + className + " does not " + 171 "provide an appropriate constructur accepting the provided parameters."); 172 throw new GUIModelConfigurationException 173 ("configured GUI element representing class " + className + " does not " + 174 "provide an appropriate constructur accepting the provided parameters.", e); 171 "provide an appropriate constructor accepting the provided parameters.", e); 175 172 } 176 173 catch (InstantiationException e) { 177 Logger.getLogger(this.getClass().getName()).log 178 (Level.WARNING, "configured GUI element representing class " + className + 174 Console.traceln(Level.WARNING, "configured GUI element representing class " + 175 className + " can not be instantiated."); 176 throw new GUIModelConfigurationException 177 ("configured GUI element representing class " + className + 179 178 " can not be instantiated.", e); 179 } 180 catch (IllegalAccessException e) { 181 Console.traceln(Level.WARNING, "configured GUI element representing class " + 182 className + " can not be instantiated."); 180 183 throw new GUIModelConfigurationException 181 184 ("configured GUI element representing class " + className + 182 185 " can not be instantiated.", e); 183 186 } 184 catch (IllegalAccessException e) {185 Logger.getLogger(this.getClass().getName()).log186 (Level.WARNING, "configured GUI element representing class " + className +187 " can not be instantiated.", e);188 throw new GUIModelConfigurationException189 ("configured GUI element representing class " + className +190 " can not be instantiated.", e);191 }192 187 catch (InvocationTargetException e) { 193 Logger.getLogger(this.getClass().getName()).log 194 (Level.WARNING, "configured GUI element representing class " + className + 195 " can not be instantiated.", e); 188 Console.traceln(Level.WARNING, "configured GUI element representing class " + 189 className + " can not be instantiated."); 196 190 throw new GUIModelConfigurationException 197 191 ("configured GUI element representing class " + className + … … 201 195 202 196 if (guiElement == null ) { 203 Logger.getLogger(this.getClass().getName()).log204 (Level.WARNING, "no class representing GUI elements of type" +205 specification.getType() + " found. Please extends GUI elementmapping files.");197 Console.traceln(Level.WARNING, "no class representing GUI elements of type " + 198 specification.getType() + " found. Please extends GUI element " + 199 "mapping files."); 206 200 throw new GUIModelConfigurationException 207 201 ("no class representing GUI elements of type " + specification.getType() +
Note: See TracChangeset
for help on using the changeset viewer.