Examples of SyntaxValueEditorRelation


Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    private void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) sel.getFirstElement();
            SyntaxValueEditorDialog dialog = new SyntaxValueEditorDialog( getShell(), relation,
                class2ValueEditorExtensionMap, syntaxDescsAndOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = syntaxList.indexOf( relation );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

                AttributeValueEditorRelation aver = new AttributeValueEditorRelation( attributeType, vee.className );
                avprs.add( aver );
            }
            for ( String syntaxOid : vee.syntaxOids )
            {
                SyntaxValueEditorRelation sver = new SyntaxValueEditorRelation( syntaxOid, vee.className );
                svprs.add( sver );
            }
        }
        BrowserCommonActivator.getDefault().getValueEditorsPreferences().setDefaultAttributeValueEditorRelations(
            avprs.toArray( new AttributeValueEditorRelation[0] ) );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

                AttributeValueEditorRelation aver = new AttributeValueEditorRelation( attributeType, vee.className );
                avprs.add( aver );
            }
            for ( String syntaxOid : vee.syntaxOids )
            {
                SyntaxValueEditorRelation sver = new SyntaxValueEditorRelation( syntaxOid, vee.className );
                svprs.add( sver );
            }
        }
        BrowserCommonActivator.getDefault().getValueEditorsPreferences().setDefaultAttributeValueEditorRelations(
            avprs.toArray( new AttributeValueEditorRelation[0] ) );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    /**
     * {@inheritDoc}
     */
    protected void okPressed()
    {
        returnRelation = new SyntaxValueEditorRelation( oidCombo.getText(), ( String ) veName2classMap
            .get( valueEditorCombo.getText() ) );
        super.okPressed();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    private void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) sel.getFirstElement();
            SyntaxValueEditorDialog dialog = new SyntaxValueEditorDialog( getShell(), relation,
                class2ValueEditorExtensionMap, syntaxDescsAndOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = syntaxList.indexOf( relation );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof SyntaxValueEditorRelation )
            {
                SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) obj;
                if ( index == 0 )
                {
                    return relation.getSyntaxOID();
                }
                else if ( index == 1 )
                {
                    if ( relation.getSyntaxOID() != null )
                    {
                        if ( syntaxOid2LsdMap.containsKey( relation.getSyntaxOID() ) )
                        {
                            LdapSyntaxDescription lsd = ( LdapSyntaxDescription ) syntaxOid2LsdMap.get( relation
                                .getSyntaxOID() );
                            return SchemaUtils.toString( lsd );
                        }
                    }
                }
                else if ( index == 2 )
                {
                    ValueEditorExtension vee = class2ValueEditorExtensionMap.get( relation.getValueEditorClassName() );
                    return vee != null ? vee.name : null;
                }
            }
            return null;
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

        public Image getColumnImage( Object obj, int index )
        {
            if ( obj instanceof SyntaxValueEditorRelation )
            {
                SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) obj;
                if ( index == 2 )
                {
                    ValueEditorExtension vee = class2ValueEditorExtensionMap.get( relation.getValueEditorClassName() );
                    if ( vee != null )
                    {
                        if ( !imageMap.containsKey( vee.icon ) )
                        {
                            Image image = vee.icon.createImage();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof SyntaxValueEditorRelation )
            {
                SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) obj;
                if ( index == 0 )
                {
                    return relation.getSyntaxOID();
                }
                else if ( index == 1 )
                {
                    if ( relation.getSyntaxOID() != null )
                    {
                        if ( syntaxOid2LsdMap.containsKey( relation.getSyntaxOID() ) )
                        {
                            LdapSyntax lsd = ( LdapSyntax ) syntaxOid2LsdMap.get( relation
                                .getSyntaxOID() );
                            return SchemaUtils.toString( lsd );
                        }
                    }
                }
                else if ( index == 2 )
                {
                    ValueEditorExtension vee = class2ValueEditorExtensionMap.get( relation.getValueEditorClassName() );
                    return vee != null ? vee.name : null;
                }
            }
            return null;
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

        public Image getColumnImage( Object obj, int index )
        {
            if ( obj instanceof SyntaxValueEditorRelation )
            {
                SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) obj;
                if ( index == 2 )
                {
                    ValueEditorExtension vee = class2ValueEditorExtensionMap.get( relation.getValueEditorClassName() );
                    if ( vee != null )
                    {
                        if ( !imageMap.containsKey( vee.icon ) )
                        {
                            Image image = vee.icon.createImage();
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.SyntaxValueEditorRelation

    private void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            SyntaxValueEditorRelation relation = ( SyntaxValueEditorRelation ) sel.getFirstElement();
            SyntaxValueEditorDialog dialog = new SyntaxValueEditorDialog( getShell(), relation,
                class2ValueEditorExtensionMap, syntaxDescsAndOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = syntaxList.indexOf( relation );
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.