f480c6cb7f
Beanshell to enable save button only upon modification of script. Save button disables after script is successfully saved. Also, save button will be disabled when there are no undoable changes. ScriptEditorForBeanShell registers listener for unsaved changes. PlainSourceView triggers listener calls upon modification of script or after a successful save, which lets to enable/ disable the save button accordingly. Change-Id: I32a2fc473924a7c85cdd6004637ab6a0b60acf38 Reviewed-on: https://gerrit.libreoffice.org/69046 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
44 lines
1.7 KiB
Makefile
44 lines
1.7 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_Jar_Jar,ScriptProviderForBeanShell))
|
|
|
|
$(eval $(call gb_Jar_use_jars,ScriptProviderForBeanShell,\
|
|
juh \
|
|
jurt \
|
|
ridl \
|
|
unoil \
|
|
ScriptFramework \
|
|
))
|
|
|
|
$(eval $(call gb_Jar_use_externals,ScriptProviderForBeanShell,\
|
|
bsh \
|
|
))
|
|
|
|
$(eval $(call gb_Jar_set_manifest,ScriptProviderForBeanShell,$(SRCDIR)/scripting/java/com/sun/star/script/framework/provider/beanshell/MANIFEST.MF))
|
|
|
|
$(eval $(call gb_Jar_set_componentfile,ScriptProviderForBeanShell,scripting/java/ScriptProviderForBeanShell,OOO))
|
|
|
|
$(eval $(call gb_Jar_set_packageroot,ScriptProviderForBeanShell,com))
|
|
|
|
$(eval $(call gb_Jar_add_sourcefiles,ScriptProviderForBeanShell,\
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView \
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell \
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell \
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel \
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView \
|
|
scripting/java/com/sun/star/script/framework/provider/beanshell/UnsavedChangesListener \
|
|
))
|
|
|
|
$(eval $(call gb_Jar_add_packagefile,ScriptProviderForBeanShell,\
|
|
com/sun/star/script/framework/provider/beanshell/template.bsh,\
|
|
$(SRCDIR)/scripting/java/com/sun/star/script/framework/provider/beanshell/template.bsh \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|