Package org.eclipse.sapphire.ui.forms.swt

Examples of org.eclipse.sapphire.ui.forms.swt.FormComponentPresentation


    }
   
    @Override
    protected Object run( final Presentation context )
    {
        final FormComponentPresentation p = (FormComponentPresentation) context;
        final SapphirePart part = (SapphirePart) getPart();

        final Set<Property> properties = new LinkedHashSet<Property>();
        collectProperties( part, properties );

        for( Iterator<Property> itr = properties.iterator(); itr.hasNext(); )
        {
            if( itr.next().empty() )
            {
                itr.remove();
            }
        }
       
        if( properties.isEmpty() )
        {
            MessageDialog.openInformation( p.shell(), dialogTitle.text(), nothingToDoMessage.text() );
        }
        else
        {
            final Set<Property> selectedProperties = PromptDialog.open( p.shell(), properties );
           
            for( Property property : selectedProperties )
            {
                property.clear();
            }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.forms.swt.FormComponentPresentation

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.