/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public int getArity() { return this.getMappedIndices().size(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public String[] getUserDataKeys() { return getUserData().keySet().toArray(new String[getUserData().size()]); }
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 ); }
for (int i = 0, size = eMap.size(); i < size; ++i)
for (int i = 0, size = eMap.size(); i < size; ++i)
protected void _format(final ElkPropertyToValueMapEntryImpl entry, @Extension final IFormattableDocument document) { document.append(document.prepend(this.textRegionExtensions.regionFor(entry).keyword(this._elkGraphGrammarAccess.getPropertyAccess().getColonKeyword_1()), ElkGraphFormatter.no_space), ElkGraphFormatter.one_space); EObject _eContainer = entry.eContainer(); final EMapPropertyHolder container = ((EMapPropertyHolder) _eContainer); int _indexOf = container.getProperties().indexOf(entry); int _size = container.getProperties().size(); int _minus = (_size - 1); boolean _equals = (_indexOf == _minus); if (_equals) { document.<ElkPropertyToValueMapEntryImpl>append(entry, ElkGraphFormatter.new_lines); } else { document.<ElkPropertyToValueMapEntryImpl>append(entry, ElkGraphFormatter.new_line); } }