private void processAknProxy ( final AknProxy proxy ) { final Map<String, String> data = new HashMap<String, String> (); final boolean isLocal = Nodes.isLocal ( proxy.getConnection ().getEndpoint ().getNode (), this.app ); data.put ( "pattern", "" + proxy.getPattern () ); data.put ( "authorative", "" + proxy.isAuthorative () ); data.put ( "connection.id", proxy.getConnection ().makeUri ( isLocal ) ); data.put ( "priority", "" + proxy.getPriority () ); addData ( Factories.FACTORY_AE_AKN_PROXY, String.format ( "%s-%s", proxy.getConnection ().getEndpoint ().getNode ().getHostName (), proxy.getPriority () ), data ); }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { Pattern labelValue = ( (AknProxy)object ).getPattern (); String label = labelValue == null ? null : labelValue.toString (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_AknProxy_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_AknProxy_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
private void postProcessEntry ( final Entry entry ) { processItems ( entry.getGlobal (), entry.getLocal (), entry.getDaConnection () ); final AlarmsEventsModule module = findAEModule ( entry.getGlobal () ); for ( final Authorative auth : entry.getLocal ().getAuthoratives () ) { final AknProxy aknProxy = OsgiFactory.eINSTANCE.createAknProxy (); aknProxy.setConnection ( entry.getAeConnection () ); aknProxy.setPriority ( this.aknProxyCounter * 100 ); aknProxy.setPattern ( makeAknProxyPattern ( auth.getHierarchy () ) ); this.aknProxyCounter++; module.getAknProxies ().add ( aknProxy ); } }
private void processAknProxy ( final AknProxy proxy ) { final Map<String, String> data = new HashMap<String, String> (); final boolean isLocal = Nodes.isLocal ( proxy.getConnection ().getEndpoint ().getNode (), this.app ); data.put ( "pattern", "" + proxy.getPattern () ); data.put ( "authorative", "" + proxy.isAuthorative () ); data.put ( "connection.id", proxy.getConnection ().makeUri ( isLocal ) ); data.put ( "priority", "" + proxy.getPriority () ); addData ( Factories.FACTORY_AE_AKN_PROXY, String.format ( "%s-%s", proxy.getConnection ().getEndpoint ().getNode ().getHostName (), proxy.getPriority () ), data ); }