Changeset 1275
- Timestamp:
- 03/07/10 08:45:47 (5 months ago)
- Location:
- ide/trunk/src
- Files:
-
- 2 modified
- 1 moved
-
org/korsakow/ide/ui/controller/EventEditorController.java (modified) (1 diff)
-
org/korsakow/ide/util/Util.java (modified) (6 diffs)
-
resources/ui/eventmappings.properties (moved) (moved from ide/trunk/src/resources/ui/EventMapping.properties)
Legend:
- Unmodified
- Added
- Removed
-
ide/trunk/src/org/korsakow/ide/ui/controller/EventEditorController.java
r1243 r1275 45 45 try { 46 46 Properties eventProperties = new Properties(); 47 eventProperties.load(ResourceManager.getResourceStream(UIResourceManager.UIRESOURCE_BASE_PATH + '/' + "EventMapping.properties"));47 eventProperties.load(ResourceManager.getResourceStream(UIResourceManager.UIRESOURCE_BASE_PATH + "eventmappings.properties")); 48 48 for (Object key : eventProperties.keySet()) { 49 49 String value = eventProperties.getProperty(key.toString()); -
ide/trunk/src/org/korsakow/ide/util/Util.java
r1034 r1275 7 7 import java.io.StringWriter; 8 8 import java.lang.ref.WeakReference; 9 import java.lang.reflect.InvocationTargetException;10 9 import java.util.ArrayList; 11 10 import java.util.Collection; … … 92 91 // instantiating and casting like this is possible becaus of type-erasure in generics 93 92 // otherwise i guess there would have to be some related functionality in the Class api 94 Collection<T> references = (Collection<T>)weakCollection.getClass().newInstance();93 Collection<T> references = weakCollection.getClass().newInstance(); 95 94 for (WeakReference<T> ref : weakCollection) 96 95 { … … 137 136 * @throws IOException 138 137 */ 138 @Deprecated 139 139 public static void writeDom(Document doc, File file) throws TransformerException, IOException 140 140 { … … 159 159 * @throws IOException 160 160 */ 161 @Deprecated 161 162 public static Process shellExecute(String cmd, File dir) throws IOException 162 163 { … … 170 171 * @throws IOException 171 172 */ 173 @Deprecated 172 174 public static Process shellExecute(List<String> cmds, File dir) throws IOException 173 175 { … … 183 185 PrintWriter pw = new PrintWriter(sw); 184 186 t.printStackTrace(pw); 185 return sw.toString(); 187 String trace = sw.toString(); 188 if (t.getCause() != null) 189 trace += "\nCause:\n" + getStackTraceString(t.getCause()); 190 return trace; 186 191 } 187 192 /**
