Java Code Examples for org.eclipse.emf.common.util.EMap#entrySet()

The following examples show how to use org.eclipse.emf.common.util.EMap#entrySet() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServiceMetadataDialog.java    From tesb-studio-se with Apache License 2.0 6 votes vote down vote up
public ServiceMetadataDialog(IShellProvider parentShell, ServiceItem serviceItem, ServiceConnection serviceConnection) {
    super(parentShell);
    this.serviceItem = serviceItem;
    this.serviceConnection = serviceConnection;
    EMap<String, String> props = serviceConnection.getAdditionalInfo();
    if (props != null) {
        useSAM = Boolean.valueOf(props.get(USE_SAM));
        useSL = Boolean.valueOf(props.get(USE_SL));
        securitySAML = Boolean.valueOf(props.get(SECURITY_SAML));
        securityBasic = Boolean.valueOf(props.get(SECURITY_BASIC));
        authorization = Boolean.valueOf(props.get(AUTHORIZATION));
        encryption = Boolean.valueOf(props.get(ENCRYPTION));
        useServiceRegistry = Boolean.valueOf(props.get(USE_SERVICE_REGISTRY));
        logMessages = Boolean.valueOf(props.get(LOG_MESSAGES));
        wsdlSchemaValidation = Boolean.valueOf(props.get(WSDL_SCHEMA_VALIDATION));
        useBusinessCorrelation = Boolean.valueOf(props.get(USE_BUSINESS_CORRELATION));
        for (Map.Entry<String, String> prop : props.entrySet()) {
            if (prop.getKey().startsWith(SL_CUSTOM_PROP_PREFIX)) {
                slCustomProperties.put(prop.getKey().substring(SL_CUSTOM_PROP_PREFIX.length()),
                        prop.getValue());
            }
        }
    }
}
 
Example 2
Source File: UserDataSetHints.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * The constructor.
 * 
 * @param allSeriesDataSets
 * @param bReverse
 *            indicates if category is reversed
 * @throws ChartException
 */
public UserDataSetHints( EMap<String, DataSet> allSeriesDataSets,
		boolean bReverse ) throws ChartException
{
	List<String> keyList = new ArrayList<String>( );
	List<DataSetIterator> dsiList = new ArrayList<DataSetIterator>( );

	for ( Map.Entry<String, DataSet> entry : allSeriesDataSets.entrySet( ) )
	{
		if ( entry.getKey( ) != null )
		{
			String key = entry.getKey( );
			DataSet ds = entry.getValue( );
			DataSetIterator dsi = new DataSetIterator( ds );
			dsi.reverse( bReverse );

			keyList.add( key );
			dsiList.add( dsi );
		}
	}

	keys = keyList.toArray( new String[keyList.size( )] );
	dsis = dsiList.toArray( new DataSetIterator[dsiList.size( )] );
}
 
Example 3
Source File: SymbolReferenceController.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
private Map<? extends String, ? extends String> convert ( final EMap<String, String> properties )
{
    final Map<String, String> p = new HashMap<String, String> ();
    if ( properties != null )
    {
        for ( final Map.Entry<String, String> entry : properties.entrySet () )
        {
            p.put ( entry.getKey (), entry.getValue () );
        }
    }
    return p;
}
 
Example 4
Source File: SVGInteractiveRenderer.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @param sb
 * @param propMap
 */
private static StringBuilder getPropertiesJS( 
		EMap<String, String> propMap )
{
	StringBuilder sb = new StringBuilder();
	for ( Entry<String, String> entry : propMap.entrySet( ) )
	{
		String key = entry.getKey();
		String properties = entry.getValue( );
		if ( MenuStylesKeyType.MENU.getName().equals( key ) )
		{
			sb.append( "\t menuInfo.menuStyles = '" + CSSHelper.getStylingHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if ( MenuStylesKeyType.MENU_ITEM.getName( ).equals( key  ) )
		{
			sb.append( "\t menuInfo.menuItemStyles = '" + CSSHelper.getStylingHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if ( MenuStylesKeyType.ON_MOUSE_OVER.getName( ).equals(key))
		{
			sb.append( "\t menuInfo.mouseOverStyles = '" + CSSHelper.getStylingHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if (MenuStylesKeyType.ON_MOUSE_OUT.getName( ).equals(key)) 
		{
			sb.append( "\tmenuInfo.mouseOutStyles = '" + CSSHelper.getStylingHyphenFormat( properties )  + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
	}
	return sb;
}
 
Example 5
Source File: MultiActionValuesScriptGenerator.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @param sb
 * @param propMap
 */
private static StringBuilder getPropertiesJS( 
		EMap<String, String> propMap )
{
	StringBuilder sb = new StringBuilder();
	for ( Entry<String, String> entry : propMap.entrySet( ) )
	{
		String key = entry.getKey();
		String properties = entry.getValue( );
		if ( MenuStylesKeyType.MENU.getName().equals( key ) )
		{
			if ( !properties.matches( ".*position[ ]*:.*" )) //$NON-NLS-1$
			{
				properties = properties + ";position:absolute"; //$NON-NLS-1$
			}
			sb.append( "\t menuInfo.menuStyles = '" + CSSHelper.getStylingNonHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if ( MenuStylesKeyType.MENU_ITEM.getName( ).equals( key  ) )
		{
			if ( !properties.matches( ".*cursor[ ]*:.*" )) //$NON-NLS-1$
			{
				properties = properties + ";cursor:default"; //$NON-NLS-1$
			}
			sb.append( "\t menuInfo.menuItemStyles = '" + CSSHelper.getStylingNonHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if ( MenuStylesKeyType.ON_MOUSE_OVER.getName( ).equals(key))
		{
			sb.append( "\t menuInfo.mouseOverStyles = '" + CSSHelper.getStylingNonHyphenFormat( properties ) + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
		else if (MenuStylesKeyType.ON_MOUSE_OUT.getName( ).equals(key)) 
		{
			sb.append( "\tmenuInfo.mouseOutStyles = '" + CSSHelper.getStylingNonHyphenFormat( properties )  + "';\n");//$NON-NLS-1$//$NON-NLS-2$
		}
	}
	return sb;
}