private void internalDispose () { this.canvas.setContents ( null ); if ( this.controller != null ) { this.controller.dispose (); } if ( this.manager != null ) { this.manager.dispose (); } }
private void internalDispose () { this.canvas.setContents ( null ); if ( this.controller != null ) { this.controller.dispose (); } if ( this.manager != null ) { this.manager.dispose (); } }
protected void create ( final SymbolLoader symbolLoader ) { try { final Map<String, String> properties = new HashMap<String, String> ( this.symbol.getProperties ().size () ); for ( final Map.Entry<String, String> entry : this.symbol.getProperties ().entrySet () ) { properties.put ( entry.getKey (), entry.getValue () ); } properties.putAll ( this.initialProperties ); this.controller = new SymbolController ( getShell (), symbolLoader, properties, this.scriptObjects, this.factoryContext ); final Controller controller = create ( this.symbol.getRoot () ); this.controller.init (); this.layer.add ( this.figure = controller.getFigure () ); this.factory.createConnections ( this.connectionLayer, this.controller, this.symbol.getConnections () ); } catch ( final Exception e ) { StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, e ), StatusManager.LOG ); this.layer.add ( this.figure = Helper.createErrorFigure ( e ) ); } this.canvas.setContents ( this.pane ); }
protected void create ( final SymbolLoader symbolLoader ) { try { final Map<String, String> properties = new HashMap<String, String> ( this.symbol.getProperties ().size () ); for ( final Map.Entry<String, String> entry : this.symbol.getProperties ().entrySet () ) { properties.put ( entry.getKey (), entry.getValue () ); } properties.putAll ( this.initialProperties ); this.controller = new SymbolController ( getShell (), symbolLoader, properties, this.scriptObjects, this.factoryContext ); final Controller controller = create ( this.symbol.getRoot () ); this.controller.init (); this.layer.add ( this.figure = controller.getFigure () ); this.factory.createConnections ( this.connectionLayer, this.controller, this.symbol.getConnections () ); } catch ( final Exception e ) { StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, e ), StatusManager.LOG ); this.layer.add ( this.figure = Helper.createErrorFigure ( e ) ); } this.canvas.setContents ( this.pane ); }
StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, e ) ); this.canvas.setContents ( Helper.createErrorFigure ( e ) );
StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, e ) ); this.canvas.setContents ( Helper.createErrorFigure ( e ) );