API compatibility with jgraphx-1.2.0.5
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / block / SuperBlock.java
index ba87c43..0a677e0 100644 (file)
@@ -431,8 +431,7 @@ public final class SuperBlock extends BasicBlock {
                updateExportedExplicitOutputPort();
                updateExportedImplicitOutputPort();
                updateExportedEventOutputPort();
-               getParentDiagram().fireEvent(XcosEvent.SUPER_BLOCK_UPDATED,
-                               new mxEventObject(new Object[] { this }));
+               getParentDiagram().fireEvent(new mxEventObject(XcosEvent.SUPER_BLOCK_UPDATED, "block", this));
        }
 
        private void updateExportedExplicitInputPort() {