Package org.eclipse.sapphire.ui.forms

Examples of org.eclipse.sapphire.ui.forms.PropertyEditorPart.property()


    protected void createContents( final Composite parent )
    {
        // Initialize
       
        final PropertyEditorPart part = part();
        final Property property = part.property();
       
        this.memberType = property.definition().getType();
       
        final SortedSet<PropertyDef> allMemberProperties = this.memberType.properties();
       
View Full Code Here


   
    protected Control createContents( final Composite parent,
                                      final boolean suppressBrowseAction )
    {
        final PropertyEditorPart part = part();
        final Value<?> property = (Value<?>) part.property();
       
        final boolean isLongString = property.definition().hasAnnotation( LongString.class );
        final boolean isDeprecated = property.definition().hasAnnotation( Deprecated.class );
        final boolean isReadOnly = ( property.definition().isReadOnly() || part.getRenderingHint( PropertyEditorDef.HINT_READ_ONLY, false ) );
        final boolean isSensitiveData = property.definition().hasAnnotation( SensitiveData.class );
View Full Code Here

    @Override
    public boolean applicable( final ServiceContext context )
    {
        final PropertyEditorPart propertyEditorPart = context.find( PropertyEditorPart.class );

        return ( propertyEditorPart != null && propertyEditorPart.property().definition() instanceof ListProperty );
    }

}
View Full Code Here

    @Override
   
    protected void createContents( final Composite parent )
    {
        final PropertyEditorPart part = part();
        final Value<?> value = (Value<?>) part.property();
        final Element element = value.element();
       
        final Text textField = (Text) super.createContents( parent, true );

        final Composite drillDownParent = createMainComposite
View Full Code Here

                    (
                        createChildPropertyEditorPresentation( propertyEditor ),
                        getTableViewer(),
                        getSelectionProvider(),
                        propertyEditor.getLocalModelElement(),
                        (ValueProperty) propertyEditor.property().definition(),
                        actions,
                        style
                    );

                    if( isElementImageDesired() )
View Full Code Here

                   
                    this.cellEditor = new PopUpListFieldCellEditorPresentation
                    (
                        getTableViewer(),
                        getSelectionProvider(),
                        propertyEditor.property(),
                        PopUpListFieldColumnPresentation.this.popUpListFieldStyle,
                        getTable().getLinesVisible() ? SWT.NONE : SWT.BORDER
                    );
                   
                    return this.cellEditor;
View Full Code Here

    @SuppressWarnings( "unchecked" ) // TreeViewer is parameterized since Eclipse 4.4
   
    protected Control createContents( final Composite parent, final boolean embedded )
    {
        final PropertyEditorPart part = part();
        final Property property = part.property();
        final boolean isReadOnly = part.isReadOnly();
        final boolean showHeader = part.getRenderingHint( PropertyEditorDef.HINT_SHOW_HEADER, true );
       
        final SapphireActionGroup actions = getActions();
        final SapphireActionPresentationManager actionPresentationManager = getActionPresentationManager();
View Full Code Here

    }
   
    protected void createContents( final Composite parent )
    {
        final PropertyEditorPart part = part();
        final ValueProperty property = (ValueProperty) part.property().definition();
       
        this.rootComposite = new Composite( parent, SWT.NONE )
        {
            @Override
            public void setEnabled( final boolean enabled )
View Full Code Here

            {
                final PropertyEditorPart editor = (PropertyEditorPart) part;
               
                if( ! editor.isReadOnly() )
                {
                    result.add( editor.property() );
                }
               
                for( SapphirePart related : editor.getRelatedContent() )
                {
                    collectProperties( related, result );
View Full Code Here

    @Override
    protected void createContents( final Composite parent )
    {
        final PropertyEditorPart part = part();
        final Value<?> property = (Value<?>) part.property();
       
        final SapphireToolBarActionPresentation toolBarActionsPresentation = new SapphireToolBarActionPresentation( getActionPresentationManager() );
        toolBarActionsPresentation.addFilter( createFilterByActionId( ACTION_ASSIST ) );
        toolBarActionsPresentation.addFilter( createFilterByActionId( ACTION_BROWSE ) );
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.