Package org.eclipse.sapphire.samples.map

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


           
            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 );
                   
                    x += 50;
View Full Code Here


{
    @Override
    protected Object run( final Presentation context )
    {
        final DiagramNodePart part = (DiagramNodePart) context.part();
        final Location location = (Location) part.getModelElement();
        final String locationName = location.getName().text();

        if( locationName != null )
        {
            try
            {
View Full Code Here

TOP

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

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.