Package org.eclipse.sapphire.samples.map

Examples of org.eclipse.sapphire.samples.map.Map


        }
       
        if( ! locations.isEmpty() )
        {
            final SapphireDiagramEditorPagePart diagram = context( SapphireDiagramEditorPagePart.class );
            final Map map = context( Map.class );
           
            final Point initialDropPosition = context.position();
           
            int x = initialDropPosition.getX();
            int y = initialDropPosition.getY();
           
            for( String locationName : locations )
            {
                if( ! map.hasLocation( locationName ) )
                {
                    final Location location = map.getLocations().insert();
                    location.setName( locationName );
                   
                    final DiagramNodePart locationNodePart = diagram.getDiagramNodePart(location);
                    locationNodePart.setNodeBounds( x, y );
                   
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.samples.map.Map

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.