Revision: 3656
Author: [email protected]
Date: Tue Jun 29 09:39:53 2010
Log: NEW - bug 2458: Create Critic Manager
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=2458
Removed the Impl from the ArchitectSwingSession as we need to use the
interface to stay implementation independent.
http://code.google.com/p/power-architect/source/detail?r=3656
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/SwingUIProjectLoader.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/swingui/SwingUIProjectLoader.java
Tue Jun 29 09:19:15 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/swingui/SwingUIProjectLoader.java
Tue Jun 29 09:39:53 2010
@@ -681,11 +681,11 @@
@Override
public Object createObject(Attributes attr) throws Exception {
Object topItem = getDigester().peek();
- if (!(topItem instanceof ArchitectSwingSessionImpl)) {
- logger.error("Expected parent ArchitectSwingSessionImpl
object on top of stack but found: " + topItem); //$NON-NLS-1$
- throw new IllegalStateException("Ancestor
ArchitectSwingSessionImpl object not found!"); //$NON-NLS-1$
- }
- ArchitectSwingSessionImpl session =
(ArchitectSwingSessionImpl) topItem;
+ if (!(topItem instanceof ArchitectSwingSession)) {
+ logger.error("Expected parent ArchitectSwingSession object
on top of stack but found: " + topItem); //$NON-NLS-1$
+ throw new IllegalStateException("Ancestor
ArchitectSwingSession object not found!"); //$NON-NLS-1$
+ }
+ ArchitectSwingSession session = (ArchitectSwingSession)
topItem;
session.getWorkspace().getCriticManager().clear();
return session.getWorkspace().getCriticManager();