Package org.apache.directory.studio.valueeditors

Examples of org.apache.directory.studio.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 ""; //$NON-NLS-1$
            }
        }
View Full Code Here


                    case LDIF:
                        text.append( ModelConverter.valueToLdifAttrValLine( value ).toFormattedString(
                            Utils.getLdifFormatParameters() ) );
                        break;
                    case DISPLAY:
                        IValueEditor ve = valueEditorManager.getCurrentValueEditor( value );
                        String displayValue = ve.getDisplayValue( value );
                        text.append( displayValue );
                        if ( iterator.hasNext() )
                        {
                            text.append( BrowserCoreConstants.LINE_SEPARATOR );
                        }
View Full Code Here

     *
     * @return the display value
     */
    private String getDisplayValue( AttributeHierarchy ah )
    {
        IValueEditor vp = valueEditorManager.getCurrentValueEditor( ah );
        if ( vp == null )
        {
            return ""; //$NON-NLS-1$
        }

        String value = vp.getDisplayValue( ah );
        if ( value.length() > 50 )
        {
            value = value.substring( 0, 47 ) + "..."; //$NON-NLS-1$
        }
        return value;
View Full Code Here

            {
                IValue value = values[i];

                if ( valueEditorManager != null )
                {
                    IValueEditor ve = valueEditorManager.getCurrentValueEditor( value );
                    String displayValue = ve.getDisplayValue( value );
                    text.append( displayValue );
                }
                else if ( values[i].isString() )
                {
                    text.append( values[i].getStringValue() );
View Full Code Here


    private String getDisplayValue( AttributeHierarchy ah )
    {

        IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( ah );
        if ( vp == null )
        {
            return "";
        }

        String value = vp.getDisplayValue( ah );
        if ( value.length() > 50 )
        {
            value = value.substring( 0, 47 ) + "...";
        }
        return value;
View Full Code Here


    private String getDisplayValue( AttributeHierarchy ah )
    {

        IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( ah );
        if ( vp == null )
        {
            return "";
        }

        String value = vp.getDisplayValue( ah );
        if ( value.length() > 50 )
        {
            value = value.substring( 0, 47 ) + "...";
        }
        return value;
View Full Code Here

            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 ""; //$NON-NLS-1$
            }
        }
View Full Code Here

     *
     * @return the display value
     */
    private String getDisplayValue( AttributeHierarchy ah )
    {
        IValueEditor vp = valueEditorManager.getCurrentValueEditor( ah );
        if ( vp == null )
        {
            return ""; //$NON-NLS-1$
        }

        String value = vp.getDisplayValue( ah );
        if ( value.length() > 50 )
        {
            value = value.substring( 0, 47 ) + "..."; //$NON-NLS-1$
        }
        return value;
View Full Code Here

                    case LDIF:
                        text.append( ModelConverter.valueToLdifAttrValLine( value ).toFormattedString(
                            Utils.getLdifFormatParameters() ) );
                        break;
                    case DISPLAY:
                        IValueEditor ve = valueEditorManager.getCurrentValueEditor( value );
                        String displayValue = ve.getDisplayValue( value );
                        text.append( displayValue );
                        if ( iterator.hasNext() )
                        {
                            text.append( BrowserCoreConstants.LINE_SEPARATOR );
                        }
View Full Code Here

            {
                IValue value = values[i];

                if ( valueEditorManager != null )
                {
                    IValueEditor ve = valueEditorManager.getCurrentValueEditor( value );
                    String displayValue = ve.getDisplayValue( value );
                    text.append( displayValue );
                }
                else if ( values[i].isString() )
                {
                    text.append( values[i].getStringValue() );
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.valueeditors.IValueEditor

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.