Bug 123588 - Beanshell editor: Indicate whether script is saved
Summary: Beanshell editor: Indicate whether script is saved
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: sainaledava
URL:
Whiteboard: target:6.3.0
Keywords: difficultyBeginner, easyHack, skillJava, topicUI
Depends on:
Blocks: Beanshell-Editor
  Show dependency treegraph
 
Reported: 2019-02-20 07:20 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2019-03-13 06:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2019-02-20 07:20:12 UTC
There is no indication whether the current script has been saved yet.
I suggest to disable the save button when no unsaved changes exist and only enable it when the script is changed.

The code is in scripting/java/com/sun/star/script/framework/provider/beanshell .

You find the Beanshell Editor via Tools->Macros->Organize Macros->Beanshell. Create a library, then a macro, then you can edit it which gets you into the Beanshell Editor.
Comment 1 Commit Notification 2019-03-13 06:47:05 UTC
Sainal Shah committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/f480c6cb7f41bf38a2259dface77b8cca87ce6ec%5E%21

tdf#123588 Beanshell editor to indicate whether script is saved

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.