// System.out.println("About to observe something!" +entity);
if (grid == null) {
System.out.println("Creating visualization");
IWindow window =
new AbstractWindow("CA Visualization", null, Contribution.EDITOR) {
@Override
protected JComponent createContent() {
grid = new Grid2D(FFStateModelObs.this);
addGridCellListener(grid);
return grid;
}
@Override
protected IAction[] generateActions() {
return null;
}
};
JFrame f = new JFrame();
f.add(window.getContent());
f.pack();
f.show();
System.out.println("Created visualization");
// WindowManagerManager.getWindowManager().addWindow(window);
}