Examples of BinarySyntax


Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    }


    protected void okPressed()
    {
        this.returnSyntax = new BinarySyntax( oidCombo.getText() );
        super.okPressed();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    protected void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) this.syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinarySyntax syntax = ( BinarySyntax ) sel.getFirstElement();
            SyntaxDialog dialog = new SyntaxDialog( getShell(), syntax, this.syntaxOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = this.syntaxList.indexOf( syntax );
                this.syntaxList.set( index, dialog.getSyntax() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinarySyntax )
            {
                BinarySyntax syntax = ( BinarySyntax ) obj;
                if ( index == 0 )
                {
                    return syntax.getSyntaxNumericOid();
                }
                else if ( index == 1 )
                {
                    if ( syntax.getSyntaxNumericOid() != null )
                    {
                        if ( syntaxOid2LsdMap.containsKey( syntax.getSyntaxNumericOid() ) )
                        {
                            LdapSyntaxDescription lsd = ( LdapSyntaxDescription ) syntaxOid2LsdMap.get( syntax
                                .getSyntaxNumericOid() );
                            return lsd.toString();
                        }
                    }
                }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

            };
        BrowserCorePlugin.getDefault().getCorePreferences().setDefaultBinaryAttributes( defaultBinaryAttributes );

        // default binary syntaxes
        BinarySyntax[] defaultBinarySyntaxes = new BinarySyntax[]
            { new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.5" ), // Binary
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.8" ), // Certificate
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.9" ), // Certificate
                // List
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.10" ), // Certificate
                // Pair
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.23" ), // Fax
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.28" ), // JPEG
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.40" ), // Octet
                // String
                // //$NON-NLS-1$
                new BinarySyntax( "1.3.6.1.4.1.1466.115.121.1.49" ) // Supported
            // Algorithm
            // //$NON-NLS-1$
            };
        BrowserCorePlugin.getDefault().getCorePreferences().setDefaultBinarySyntaxes( defaultBinarySyntaxes );
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    protected void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) this.syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinarySyntax syntax = ( BinarySyntax ) sel.getFirstElement();
            SyntaxDialog dialog = new SyntaxDialog( getShell(), syntax, this.syntaxOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = this.syntaxList.indexOf( syntax );
                this.syntaxList.set( index, dialog.getSyntax() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinarySyntax )
            {
                BinarySyntax syntax = ( BinarySyntax ) obj;
                if ( index == 0 )
                {
                    return syntax.getSyntaxNumericOid();
                }
                else if ( index == 1 )
                {
                    if ( syntax.getSyntaxNumericOid() != null )
                    {
                        if ( syntaxOid2LsdMap.containsKey( syntax.getSyntaxNumericOid() ) )
                        {
                            LdapSyntaxDescription lsd = ( LdapSyntaxDescription ) syntaxOid2LsdMap.get( syntax
                                .getSyntaxNumericOid() );
                            return lsd.toString();
                        }
                    }
                }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.BinarySyntax

    }


    protected void okPressed()
    {
        this.returnSyntax = new BinarySyntax( oidCombo.getText() );
        super.okPressed();
    }
View Full Code Here

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

    private void editSyntax()
    {
        StructuredSelection sel = ( StructuredSelection ) syntaxViewer.getSelection();
        if ( !sel.isEmpty() )
        {
            BinarySyntax syntax = ( BinarySyntax ) sel.getFirstElement();
            SyntaxDialog dialog = new SyntaxDialog( getShell(), syntax, syntaxOids );
            if ( dialog.open() == SyntaxValueEditorDialog.OK )
            {
                int index = syntaxList.indexOf( syntax );
                syntaxList.set( index, dialog.getSyntax() );
View Full Code Here

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

    {
        public String getColumnText( Object obj, int index )
        {
            if ( obj instanceof BinarySyntax )
            {
                BinarySyntax syntax = ( BinarySyntax ) obj;
                if ( index == 0 )
                {
                    return syntax.getSyntaxNumericOid();
                }
                else if ( index == 1 )
                {
                    if ( syntax.getSyntaxNumericOid() != null )
                    {
                        if ( syntaxOid2LsdMap.containsKey( syntax.getSyntaxNumericOid() ) )
                        {
                            LdapSyntaxDescription lsd = ( LdapSyntaxDescription ) syntaxOid2LsdMap.get( syntax
                                .getSyntaxNumericOid() );
                            return SchemaUtils.toString( lsd );
                        }
                        else if ( Utils.getOidDescription( syntax.getSyntaxNumericOid() ) != null )
                        {
                            return Utils.getOidDescription( syntax.getSyntaxNumericOid() );
                        }
                    }
                }
            }
            return null;
View Full Code Here

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

    /**
     * {@inheritDoc}
     */
    protected void okPressed()
    {
        returnSyntax = new BinarySyntax( oidCombo.getText() );
        super.okPressed();
    }
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.