https://bugs.documentfoundation.org/show_bug.cgi?id=133142

Michael Weghorn <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Michael Weghorn <[email protected]> ---
Created attachment 160967
  --> https://bugs.documentfoundation.org/attachment.cgi?id=160967&action=edit
Sample extension to demonstrate the issue

The relevant lines in the Java source code of the sample extension that are
supposed to change the text and enable/disable the tab are the following ones
(with 'tabPageModel2' being the second tab's XTabPageModel:

      @Override
      public void actionPerformed(ActionEvent arg0)
      {
        // when the button is pressed:
        // toggle enabled/disabled status of the second tab and change its
title
        tabPageModel2.setEnabled(!tabPageModel2.getEnabled());

        final String text1 = "some text";
        final String text2 = "other words";
        String newText = text1;
        String currentText = tabPageModel2.getTitle();
        if (currentText.equals(text1)) {
                newText = text2;
        }
        tabPageModel2.setTitle(newText);
      }
    });

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to