incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <ariel.constenla.ha...@gmail.com>
Subject Re: Problem when showing a dialog of a deployed extension
Date Mon, 07 Nov 2011 06:12:31 GMT
On Sun, Nov 06, 2011 at 11:29:37PM -0600, Gerardo Gómez wrote:
> Yes, i had already set a breakpoint, and i don't think the problem is on
> the UploadDialog.java, because i can execute it separately from the
> extension. It only happens, when i deploy it (from netbeans), to my
> OpenOffice.org. 

did you try debugging the extension? Context menu "Debug Extension in
Target OpenOffice.org", or the hard way by attaching the debugger.

> This is the code i use to show/hide a dialog
> 
>     public void setVisible(boolean visible){
> //        If this dialog is modal...
>         if (modal){
>             if (visible){
> //                ...it uses execute to show the dialog.
>                 this.xDialog.execute();
>             }
>             else{
> //                ...it uses endExecute to hide the dialog.
>                 this.xDialog.endExecute();
>             }
>         }
> //        If this dialog is not modal...
>         else{
> //            ...it uses the setVisible method from the xWindow object.
>             this.xWindow.setVisible(visible);
>         }
>     }
> 
> It seems also, that either in the extension execution and the execution
> from the main method, has the same parameters (a null string).
> 
> public void fillCredentials(Creditionals creditionals) {
> 
> this.getRememberPassCheckBox().setState(creditionals.getWsCreditionalsReadedFromDisk());
> //      credentionals.getUserName() == null
>         this.getUserNameTextField().setText(creditionals.getUserName());
>         this.getPasswordTextField().setText(creditionals.getPassword());
>     }
> 
> public void setText(String text){
>         this.xTextComponent.setText(text);
>     }

what is null in this case? text or xTextComponent?

If your extension is open source, may be you could point to the NB project
source and we can test what's hapening.

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message