projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 0.9.6
[debian/openrocket]
/
src
/
net
/
sf
/
openrocket
/
gui
/
adaptors
/
BooleanModel.java
diff --git
a/src/net/sf/openrocket/gui/adaptors/BooleanModel.java
b/src/net/sf/openrocket/gui/adaptors/BooleanModel.java
index ab68c336aacd2e562a567890b6dcee942abdb6ae..e474a9ee86dcfb9ea7ba8c107fa105016ee622fd 100644
(file)
--- a/
src/net/sf/openrocket/gui/adaptors/BooleanModel.java
+++ b/
src/net/sf/openrocket/gui/adaptors/BooleanModel.java
@@
-11,7
+11,9
@@
import javax.swing.AbstractAction;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
+import net.sf.openrocket.util.BugException;
import net.sf.openrocket.util.ChangeSource;
import net.sf.openrocket.util.ChangeSource;
+import net.sf.openrocket.util.Reflection;
/**
/**
@@
-94,9
+96,9
@@
public class BooleanModel extends AbstractAction implements ChangeListener {
try {
return (Boolean)getMethod.invoke(source);
} catch (IllegalAccessException e) {
try {
return (Boolean)getMethod.invoke(source);
} catch (IllegalAccessException e) {
- throw new
Runtime
Exception("getMethod execution error for source "+source,e);
+ throw new
Bug
Exception("getMethod execution error for source "+source,e);
} catch (InvocationTargetException e) {
} catch (InvocationTargetException e) {
- throw
new RuntimeException("getMethod execution error for source "+source,
e);
+ throw
Reflection.handleWrappedException(
e);
}
}
}
}
@@
-104,9
+106,9
@@
public class BooleanModel extends AbstractAction implements ChangeListener {
try {
setMethod.invoke(source, new Object[] { (Boolean)b });
} catch (IllegalAccessException e) {
try {
setMethod.invoke(source, new Object[] { (Boolean)b });
} catch (IllegalAccessException e) {
- throw new
Runtime
Exception("setMethod execution error for source "+source,e);
+ throw new
Bug
Exception("setMethod execution error for source "+source,e);
} catch (InvocationTargetException e) {
} catch (InvocationTargetException e) {
- throw
new RuntimeException("setMethod execution error for source "+source,
e);
+ throw
Reflection.handleWrappedException(
e);
}
}
}
}
@@
-167,9
+169,9
@@
public class BooleanModel extends AbstractAction implements ChangeListener {
try {
return (Boolean)getEnabled.invoke(source);
} catch (IllegalAccessException e) {
try {
return (Boolean)getEnabled.invoke(source);
} catch (IllegalAccessException e) {
- throw new
Runtime
Exception("getEnabled execution error for source "+source,e);
+ throw new
Bug
Exception("getEnabled execution error for source "+source,e);
} catch (InvocationTargetException e) {
} catch (InvocationTargetException e) {
- throw
new RuntimeException("getEnabled execution error for source "+source,
e);
+ throw
Reflection.handleWrappedException(
e);
}
}
}
}