Package org.eclipse.sapphire.ui.forms

Examples of org.eclipse.sapphire.ui.forms.PropertiesViewContributionPart


            for( SapphireEditorPagePart editorPagePart : getEditorPageParts() )
            {
                editorPagePart.detach( this.propertiesViewContributionChangeListener );
            }
           
            PropertiesViewContributionPart contribution = null;
           
            final Object page = getPage();

            if( page instanceof EditorPagePresentation )
            {
View Full Code Here


       
    private void refreshPropertiesViewContribution()
    {
        final List<ISapphirePart> selections = getSelections();
       
        PropertiesViewContributionPart propertiesViewContribution = null;
       
        if (selections.size() == 1)
        {
          ISapphirePart selection = selections.get(0);
       
          if( selection == SapphireDiagramEditorPagePart.this )
          {
              propertiesViewContribution = this.propertiesViewContributionManager.getPropertiesViewContribution();
          }
          else if( selection instanceof PropertiesViewContributorPart )
          {
              propertiesViewContribution = ( (PropertiesViewContributorPart) selection ).getPropertiesViewContribution();
          }                   
        }
        if (propertiesViewContribution == null || !propertiesViewContribution.getLocalModelElement().disposed())
        {
          setPropertiesViewContribution( propertiesViewContribution );
        }
    }
View Full Code Here

    @Override
    protected Status computeValidation()
    {
        final Status.CompositeStatusFactory factory = Status.factoryForComposite();
        factory.merge(super.computeValidation());
        PropertiesViewContributionPart propertiesPage = getPropertiesViewContribution();
        if (propertiesPage != null)
        {
          factory.merge(propertiesPage.validation());
        }
       
        return factory.create();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.forms.PropertiesViewContributionPart

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.