throw new NullPointerException("No session for " + this);
}
setupViewFactory();
final UserProfile userProfiler = IsisContext.getUserProfile();
// TODO viewer should be shown during init() (so login can take place on
// main window, and can quit
// before
// logging in), and should be updated during start to show context.
// TODO resolving should be done by the views?
// resolveApplicationContextCollection(rootObject, "services");
// resolveApplicationContextCollection(rootObject, "objects");
final RootWorkspaceSpecification spec = new RootWorkspaceSpecification();
final PerspectiveContent content = new PerspectiveContent(userProfiler.getPerspective());
if (spec.canDisplay(new ViewRequirement(content, ViewRequirement.CLOSED))) {
// View view = spec.createView(new RootObject(rootObject), null);
final View view = spec.createView(content, new Axes(), -1);
viewer.setRootView(view);
} else {
throw new IsisException();
}
viewer.init();
final String name = userProfiler.getPerspective().getName();
frame.setTitle(name);
frame.init();
viewer.initSize();
viewer.scheduleRepaint();