Issue 70185 - Example BeanShell code has deprecated/useless import
Summary: Example BeanShell code has deprecated/useless import
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 2.0.3
Hardware: PC Windows XP
: P4 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2006-10-07 18:57 UTC by bmarcelly
Modified: 2017-05-20 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2006-10-07 18:57:32 UTC
Create a new BeanShell script with the UI.
In the automatically generated example code there is:


drafts should not be in an example, I think.
Moreover this import is useless, as can be deduced from the script comment:
" Import XScriptContext class. An instance of this class is available
    to all BeanShell scripts in the global variable "XSCRIPTCONTEXT". This
    variable can be used to access the document for which this script
    was invoked."
Comment 1 Mathias_Bauer 2006-10-30 12:02:14 UTC
Jürgen, please find the right developer for this issue in the Scripting Framework
Comment 2 jsc 2006-10-30 12:06:57 UTC
jsc -> ab: seems to be one for the scripting framework
Comment 3 ab 2006-10-31 10:47:47 UTC
OOo later, STARTED
Comment 4 Marcus 2017-05-20 11:29:46 UTC
Reset assigne to the default "".