directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <m...@stefan-seelmann.de>
Subject Re: [Studio] Pb with some auto-resizing Text widget
Date Wed, 03 Jun 2015 20:54:47 GMT
Hi Emmanuel,

I played a bit with it, changed

* new GridData( GridData.FILL_HORIZONTAL )
* toolkit.createText( ldapLimitSectionComposite, "" , SWT.WRAP |
SWT.MULTI );

but nothing helped, I'm also clueless.

I did something similar in the LdapBroser e.g. in
AttributeTypeDescriptionDetailsPage (descText, line 521). That was back
in 2006/7...

Kind Reards,
Stefan


On 06/03/2015 08:27 PM, Emmanuel Lécharny wrote:
> Hi,
> 
> I'va an issue with some Text that is feed by a Dialog, and which expands
> way too much when the Dialog generates a long text.
> 
> Typically, here is what teh screen looks like before the edition :
> 
>   
> +---------------------------------------------------------------------------------+
>    |
> Tuning                                                                         
> |
>   
> +---------------------------------------------------------------------------------+
>    | .-------------------------------------.
> .-------------------------------------. |
>    | | TCP configuration                   |
| 
> Concurrency                         | |
>    | +-------------------------------------+
> +-------------------------------------+ |
>    | | TCPBuffers                          |
> |                                     | |
>    | | +-----------------------+           | | Concurrency
            
> : [      ] | |
>    | | | xyz                   | (Add)     |
| Max Pending Conn         
> : [      ] | |
>    | | | abc                   | (Edit)    |
| Max Pending Conn Auth   
> : [      ] | |
>    | | |                       | (Delete)  |
| Nb Threads              
> : [      ] | |
>    | | +-----------------------+           | | Nb Threads Tool
Mode    
> : [      ] | |
>    | |                                     |
| Nb Listener threads     
> : [      ] | |
>    | | Max Incoming Buffer      : [      ] |
> |                                     | |
>    | | Max Incoming Buffer Auth : [      ] |
> |                                     | |
>    | +-------------------------------------+
> +-------------------------------------+ |
>    | .-------------------------------------.
> .-------------------------------------. |
>    | | LDAP Limits                         |
| Index
> Limits                        | |
>    | +-------------------------------------+
> +-------------------------------------+ |
>    | | Write Timeout : [      ]            | | Integer Indices Length
 
> : [      ] | |
>    | | Idle Timeout  : [      ]            | | Subany Indices Length
   
> : [      ] | |
>    | | Size Limit : [             ] (Edit) | | Subany Indices Step     
> : [      ] | |
>    | | Time Limit : [             ] (Edit) | | Sub indices Max length  
> : [      ] | |
>    | |                                     | | Sub indices Min length  
> : [      ] | |
>    | +-------------------------------------+
> +-------------------------------------+ |
>   
> +---------------------------------------------------------------------------------+
> 
> 
> When I enter many data into the Size Limit (this is done through the
> Edit dialog), then the Size Limit text expands, with the Section, giving
> something like :
> 
>   |
> .----------------------------------------------------------------------------------------------------------------------------------.
> .-------------------------------------. |
>   | | LDAP Limits                         
>                                                                                     
       
> | | Index Limits                        | |
>   |
> +----------------------------------------------------------------------------------------------------------------------------------+
> +-------------------------------------+ |
>   | | Write Timeout : [      ]           
>                                                                                     
       
> | | Integer Indices Length   : [      ] | |
>   | | Idle Timeout  : [      ] 
>                                                                                     
                  
> | | Subany Indices Length    : [      ] | |
>   | | Size Limit : [size.hard=8 size.soft=7 size.unchecked=disabled
> size.pr=unlimited size.prtotal=disabled size.pr=noEstimate] (Edit) | | 
> Subany Indices Step      : [      ] | |
> 
> 
> FTR, I have 4 sections in the main page, one per 'box'. The TCP Config
> section and the LDAP Limits section are expanded the exact same way.
> 
> What I want is that the Size Limit to have a fixed size, and be a WRAP
> text, but I don't see how to do that...
> 
> The code is in
> http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/TuningPage.java?view=markup,
> lines 768 for the section creation method ( createFormContent) and line
> 1009 (method createLdapLimitsSection) for the Size Limit Text.
> 
> thanks !
> 


Mime
View raw message