Examples of IValueEditor


Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

        if ( valueList.size() > 1 )
            sb.append( valueList.size() + " values: " );
        for ( Iterator it = valueList.iterator(); it.hasNext(); )
        {
            IValue value = ( IValue ) it.next();
            IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( value );
            sb.append( vp.getDisplayValue( value ) );
            if ( it.hasNext() )
                sb.append( ", " );
        }
        return sb.toString();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

            this.defaultStringMultiLineValueEditor.dispose();
            this.defaultBinaryValueEditor.dispose();

            for ( Iterator it = this.class2ValueEditors.values().iterator(); it.hasNext(); )
            {
                IValueEditor vp = ( IValueEditor ) it.next();
                vp.dispose();
            }

            this.parent = null;
        }
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

     * @see #getCurrentValueEditor( Schema, String )
     */
    public IValueEditor getCurrentValueEditor( IValue value )
    {

        IValueEditor ve = this.getCurrentValueEditor( value.getAttribute().getEntry(), value.getAttribute()
            .getDescription() );

        // here the value is known, we can check for single-line or multi-line
        if ( ve == this.defaultStringSingleLineValueEditor )
        {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

        Collection<ValueEditorExtension> valueEditorProxys = getValueEditorProxys();
        for ( ValueEditorExtension proxy : valueEditorProxys )
        {
            try
            {
                IValueEditor valueEditor = ( IValueEditor ) proxy.member.createExecutableExtension( "class" );
                valueEditor.create( parent );
                valueEditor.setValueEditorName( proxy.name );
                valueEditor.setValueEditorImageDescriptor( proxy.icon );
                valueEditors.add( valueEditor );
            }
            catch ( Exception e )
            {
                BrowserUIPlugin.getDefault().getLog().log(
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

            switch ( index )
            {
                case EntryEditorWidgetTableMetadata.KEY_COLUMN_INDEX:
                    return value.getAttribute().getDescription();
                case EntryEditorWidgetTableMetadata.VALUE_COLUMN_INDEX:
                    IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( value );
                    String dv = vp.getDisplayValue( value );
                    return dv;
                default:
                    return "";
            }
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

            this.defaultStringMultiLineValueEditor.dispose();
            this.defaultBinaryValueEditor.dispose();

            for ( Iterator it = this.class2ValueEditors.values().iterator(); it.hasNext(); )
            {
                IValueEditor vp = ( IValueEditor ) it.next();
                vp.dispose();
            }

            this.parent = null;
        }
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

     * @see getCurrentValueEditor( Schema, String )
     */
    public IValueEditor getCurrentValueEditor( IValue value )
    {

        IValueEditor ve = this.getCurrentValueEditor( value.getAttribute().getEntry(), value.getAttribute()
            .getDescription() );

        // here the value is known, we can check for single-line or multi-line
        if ( ve == this.defaultStringSingleLineValueEditor )
        {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

        Collection<ValueEditorExtension> valueEditorProxys = getValueEditorProxys();
        for ( ValueEditorExtension proxy : valueEditorProxys )
        {
            try
            {
                IValueEditor valueEditor = ( IValueEditor ) proxy.member.createExecutableExtension( "class" );
                valueEditor.create( parent );
                valueEditor.setValueEditorName( proxy.name );
                valueEditor.setValueEditorImageDescriptor( proxy.icon );
                valueEditors.add( valueEditor );
            }
            catch ( Exception e )
            {
                BrowserUIPlugin.getDefault().getLog().log(
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

        if ( valueList.size() > 1 )
            sb.append( valueList.size() + " values: " );
        for ( Iterator it = valueList.iterator(); it.hasNext(); )
        {
            IValue value = ( IValue ) it.next();
            IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( value );
            sb.append( vp.getDisplayValue( value ) );
            if ( it.hasNext() )
                sb.append( ", " );
        }
        return sb.toString();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.valueeditors.IValueEditor

            switch ( index )
            {
                case EntryEditorWidgetTableMetadata.KEY_COLUMN_INDEX:
                    return value.getAttribute().getDescription();
                case EntryEditorWidgetTableMetadata.VALUE_COLUMN_INDEX:
                    IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( value );
                    String dv = vp.getDisplayValue( value );
                    return dv;
                default:
                    return "";
            }
        }
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.