Package org.apache.directory.ldapstudio.schemas.view.views.wrappers

Examples of org.apache.directory.ldapstudio.schemas.view.views.wrappers.AttributeTypeWrapper


        {
            fakeNode = new ObjectClassWrapper( ( ObjectClass ) element, null );
        }
        else if ( element instanceof AttributeType )
        {
            fakeNode = new AttributeTypeWrapper( ( AttributeType ) element, null );
        }

        ITreeNode realNode = null;
        Object[] children = getChildren( parentNode );
        for ( Object child : children )
View Full Code Here


            fakeNode = new ObjectClassWrapper( ( ObjectClass ) element, null );
        }
        else if ( element instanceof AttributeType )
        {
            ( ( AttributeType ) element ).closeAssociatedEditor();
            fakeNode = new AttributeTypeWrapper( ( AttributeType ) element, null );
        }

        ITreeNode realNode = null;
        Object[] children = getChildren( parentNode );
        for ( Object child : children )
View Full Code Here

            ObjectClassWrapper ocw = ( ObjectClassWrapper ) firstElement;
            openTypeHierarchy( ocw.getMyObjectClass() );
        }
        else if ( firstElement instanceof AttributeTypeWrapper )
        {
            AttributeTypeWrapper atw = ( AttributeTypeWrapper ) firstElement;
            openTypeHierarchy( atw.getMyAttributeType() );
        }
    }
View Full Code Here

                    Matcher m = pattern.matcher( name );
                    if ( m.matches() )
                    {
                        if ( !hiddenAttributeTypes.contains( at ) )
                        {
                            AttributeTypeWrapper atw = new AttributeTypeWrapper( at, null );
                            if ( !results.contains( atw ) )
                            {
                                results.add( new AttributeTypeWrapper( at, null ) );
                            }
                        }
                        break;
                    }
                }
                Matcher m = pattern.matcher( at.getOid() );
                if ( m.matches() )
                {
                    if ( !hiddenAttributeTypes.contains( at ) )
                    {
                        AttributeTypeWrapper atw = new AttributeTypeWrapper( at, null );
                        if ( !results.contains( atw ) )
                        {
                            results.add( new AttributeTypeWrapper( at, null ) );
                        }
                    }
                }
            }
View Full Code Here

                    getShell(),
                    Messages.getString( "AttributeTypeSelectionDialog.Invalid_Selection" ), Messages.getString( "AttributeTypeSelectionDialog.You_have_to_choose_an_attribute_type" ) ); //$NON-NLS-1$ //$NON-NLS-2$
            return;
        }

        AttributeTypeWrapper atw = ( AttributeTypeWrapper ) selection.getFirstElement();
        if ( atw != null )
        {
            selectedAttributeType = atw.getMyAttributeType();
        }

        super.okPressed();
    }
View Full Code Here

     */
    public void decorate( Object element, IDecoration decoration )
    {
        if ( element instanceof AttributeTypeWrapper )
        {
            AttributeTypeWrapper atw = ( AttributeTypeWrapper ) element;

            UsageEnum usage = atw.getMyAttributeType().getUsage();

            if ( usage == UsageEnum.USER_APPLICATIONS )
            {
                decoration.addOverlay( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
                    PluginConstants.IMG_ATTRIBUTE_TYPE_OVERLAY_USER_APPLICATION ), IDecoration.BOTTOM_RIGHT );
View Full Code Here

                        deleteAction.setEnabled( false );
                    }
                }
                else if ( selectedObject instanceof AttributeTypeWrapper )
                {
                    AttributeTypeWrapper attributeTypeWrapper = ( AttributeTypeWrapper ) selectedObject;
                    deleteAction.setText( Messages.getString( "SchemasViewController.Delete_Attribute_Type" ) + " '" //$NON-NLS-1$ //$NON-NLS-2$
                        + attributeTypeWrapper.getMyAttributeType().getNames()[0] + "'" ); //$NON-NLS-1$

                    if ( attributeTypeWrapper.getMyAttributeType().getOriginatingSchema().type == SchemaType.coreSchema )
                    {
                        createANewObjectClass.setEnabled( false );
                        createANewAttributeType.setEnabled( false );
                        deleteAction.setEnabled( false );
                    }
View Full Code Here

                        deleteAction.setEnabled( false );
                    }
                }
                else if ( selectedObject instanceof AttributeTypeWrapper )
                {
                    AttributeTypeWrapper attributeTypeWrapper = ( AttributeTypeWrapper ) selectedObject;
                    deleteAction.setText( Messages.getString( "SchemasViewController.Delete_Attribute_Type" ) + " '" //$NON-NLS-1$ //$NON-NLS-2$
                        + attributeTypeWrapper.getMyAttributeType().getNames()[0] + "'" ); //$NON-NLS-1$

                    if ( attributeTypeWrapper.getMyAttributeType().getOriginatingSchema().type == SchemaType.coreSchema )
                    {
                        createANewObjectClass.setEnabled( false );
                        createANewAttributeType.setEnabled( false );
                        deleteAction.setEnabled( false );
                    }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.view.views.wrappers.AttributeTypeWrapper

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.