Join us as we "reveal" the new LotusScript and Java editing capabilities in Lotus Designer 8.5.1. You'll learn how to leverage key features such as a class browser, automatic recompilation, code templates, content assist, hover help, hyperlinking and many other to make writing your LotusScript code a 'snap'.
Also, you'll learn how editing your Java libraries, agents, web service consumers, and web service providers in Lotus Domino Designer 8.5.1 can give your Java skills a wake up call!
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition
1. AD102: Extreme Makeover, LotusScript® and
TM
Java Editor Editions
David Taieb | Senior Software Engineer | IBM
Santosh Kumar | Advisory Software Engineer | IBM
2. Financial Disclaimer
The information on the new product is intended to
outline our general product direction and it should
not be relied on in making a purchasing decision.
The information on the new product is for
informational purposes only and may not be
incorporated into any contract. The information on
the new product is
3. Agenda
● New Editors in IBM Lotus Domino® Designer 8.5.1
▬ Benefits of Eclipse based Source Editor
▬ Which design elements are getting the new editors
● Live demo: deep dive on the new LotusScript and Java Editors
capabilities by building a sample application
▬ LotusScript Agent to create documents with company stock quotes information
▬ Java Agent to export documents into Symphony spreadsheet and send email notification
● New features in IBM Lotus Domino Designer 8.5.x maintenance stream
● Q&A
3
4. Benefits of Eclipse based source editors
● Core features provided by the JFace Text framework: content assist, hover
help, syntax highlighting, continuous error reporting, search, etc...
● Rich set of standard preferences that work consistently across all editors
● Lots of views give you access to the right information when you need it:
Properties, Problems, Outline, etc...
● Extensibility: Lots of extension points allow you to create your own plugins.
● Robust code base: actively tested and maintained by a large and vibrant
open source community.
● Strong Accessibility support.
Learn more at http://www.eclipse.org
4
5. New Editors in IBM Lotus Domino Designer 8.5.1
● New LotusScript Editor:
▬ Script Libraries
▬ Agents
● New Java Editor:
▬ Script Libraries
▬ Agents
▬ Web Service Providers
▬ Web Service Consumers
5
6. Agenda
● New Editors in IBM Lotus Domino Designer 8.5.1
▬ Benefits of Eclipse based Source Editor
▬ Which design elements are getting the new editors
● Live demo: deep dive on the new LotusScript and Java Editors
capabilities by building a sample application
▬ LotusScript Agent to create documents with company stock quotes information
▬ Java Agent to export documents into Symphony spreadsheet and send email notification
● New features in IBM Lotus Domino Designer 8.5.x maintenance stream
● Q&A
6
7. Getting started with LotusScript Editor Preferences
●Can be disabled
●New “Automatic recompilation“ options
●New “Saving with Errors” options
●Enhanced Code Assistance
●New Code Templates options
●New Comment Templates options
●Enhanced “Font and Colors” options
Tip: Preferences can be Imported/Exported
7
8. Code and Comment Templates
●Error handling standardization
●Documentation generation
●Can use dynamic variables
8
10. New LotusScript Editor UI Improvements
● Full-Text Editing
▬ Copy/Paste entire code
● Class Browser
▬ Variables and methods
▬ Icons for Public/Private/Static
▬ Continuous error reporting
▬ Sorted
● Automatic scrolling
● Undo/Redo across section
● Eclipse Based Editor
▬ Find/Replace with regular expression
▬ Line numbering
▬ Whitespace characters
▬ Accessibility
● Contextual Properties View
● Problems View
10
11. Creating the stub methods with Auto-Complete
Press [ENTER]
Create section
with Code and
Comment
Automatically edits/indents/
completes common code elements
11
12. Get a productivity boost with Content Assist
● Provide completion proposal
based on the current scope
▬ Methods
▬ Variables
▬ Use statement
● Works for backend as well
as custom classes
● Secondary popup window
shows help messages or
user generated comments
12
13. Content Assist also works with custom code
● List of proposals also include custom methods and class
● Shows developer comments in secondary popup
▬ works also for Properties Get/Set, Types, Variables, even Libraries!
13
14. Get started on the code quicker with Hover help
● Shows help documentation
for backend classes
▬ In place navigation
▬ Lots of code examples
▬ Allow Copy/Paste
● Shows developer comments
for custom classes and
methods
14
15. Get instant feedback with continuous error reporting
Within section
Across sections
Changing to private causes
error in method
15
16. Better manage your custom classes
Class Browser shows field
information and their modifier
Hover help shows developer
comments and aggregated class
Icon denotes information (including superclass)
Private modifier
16
17. Refactoring made easier with automatic recompilation
● Change the signature of a
method
● Instantly get all the related
errors from the problem view
● Easily access the errors in the
code
Error indicator in the editor tab and
the Database Navigator
Problem view list all the errors
Double-click sets the focus on the error in the editor
17
18. Easier source code navigation with Hyperlink
● Navigate to class or method declarations
● Support Use statements
● Works also with external LSS files
Click to switch to declaration
Click to switch to declaration
18
19. Agenda
● New Editors in IBM Lotus Domino Designer 8.5.1
▬ Benefits of Eclipse based Source Editor
▬ Which design elements are getting the new editors
● Live demo: deep dive on the new LotusScript and Java Editors
capabilities by building a sample application
▬ LotusScript Agent to create documents with company stock quotes information
▬ Java Agent to export documents into Symphony spreadsheet and send email notification
● New features in IBM Lotus Domino Designer 8.5.x maintenance stream
● Q&A
19
20. Getting started with Java Editor Preferences
Domino Designer Preferences Eclipse Java Editor Preferences
20
21. Creating Java Design elements
● Enable Java based design
elements use Eclipse based
Java interface
● Leverage features of Eclipse
Java editor.
● New Eclipse based editor
supported in
▬ Agent
▬ Library
▬ Web Service Consumer
▬ Web Service Provider
21
22. Getting started with Eclipse based Java Interface
• Creating a Java design element
– Opens Java Interface for
specific design element.
• Java design element
– tree representation of the
resource and source files in
the element.
• It supports following actions for
common operations for working
on design element
– New Java Class
– Import
– Export
– Compile All
• Properties tab defines the
behavior of design element
22
23. Enhanced productivity with Eclipse Java Editor
■ Java editor provides specialized features
for editing Java code.
■ The editor includes following features
Syntax highlighting
Content/code assist
– opens a scrollable list of available
code completions
– hover over a selected line in the
content assist list, you can view
Javadoc information for that line
Code formatting
Quick fix
– problems underlined with a problem
highlight line, Quick fix can offer
corrections
23
24. Enhanced productivity with Eclipse Java Editor...
■ Leverage following Eclipse Views for
exploring Java code.
Java Outline
– displays an outline of the structure of
the currently-active Java file in the
editor area.
Type Hierarchy View
– shows the hierarchy of a type
Call Hierarchy View
– shows callers and callees for a
selected Java member.
– *Currently limited to open design
element(s)
24
25. Leverage external library
■ Import Operation : Brings up dialogs for
importing
Java source file
Java archive (.jar, .zip)
Java Script library
Web service consumer
Resource file
■ The invoked dialog box will aid in
importing files into Java design
element.
• Importing Archives, Script Library and WS consumer adds to Java Build Path
• The classes of an imported library are added to the classpath.
25
26. Error markers
• Errors are flagged in the folder hierarchy as an
X in a red box
• The specific errors are listed in the Problems
view at the bottom of the screen.
• Clicking on specific error in problem view will
open the Java design element or Java source
which is resulting in a specific error.
• Tip*: The error markers are persisted and are
shown when application is re-opened.
26
27. Other Java Editor improvements
• Refactoring support
– Rename operation also updates the
“Base Class” for Java type design
element.
• Delete action lets you preview the
deletion before making the decision.
• Project level support for Java compiler
versions
• Basic level support for Eclipse remote
debugging of Java design elements
27
28. Web service consumer and provider
• Web service consumer and provider
supports similar Java interface with
similar operations.
• They also show the generated WSDL file
in the WS contents.
• - The WSDL can be opened in Eclipse
WSDL editor to show graphical view of
WSDL contents.
• Both elements support property panel to
define the behavior.
28
29. In summary...
Top new editor features list
● Continuous error reporting
● Code/Comment templates
● Content Assist
● Hover Help
● Hyperlink
● Save with Errors
● Automatic recompilation and Problem view
● Class browser
● Refactoring and Code Formatting ( Java only)
● Type and Class hierarchy View (Java only)
29
30. Agenda
● New Editors in IBM Lotus Domino Designer 8.5.1
▬ Benefits of Eclipse based Source Editor
▬ Which design elements are getting the new editors
● Live demo: deep dive on the new LotusScript and Java Editors
capabilities by building a sample application
▬ LotusScript Agent to create documents with company stock quotes information
▬ Java Agent to export documents into Symphony spreadsheet and send email notification
● New features in IBM Lotus Domino Designer 8.5.x maintenance stream
● Q&A
30
31. New features in IBM Lotus Domino Designer 8.5.x
maintenance stream
● New LS Editor for Database Script
The information on the new product is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information on the new product is for
informational purposes only and may not be incorporated into any contract. The information on the new product is not a commitment, promise, or legal obligation to deliver any material, code or
functionality. The development, release, and timing of any features or functionality described for our products remains at our sole discretion
31
32. New features in IBM Lotus Domino Designer 8.5.x
maintenance stream
● Formula Editor integration for Database Script
The information on the new product is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information on the new product is for
informational purposes only and may not be incorporated into any contract. The information on the new product is not a commitment, promise, or legal obligation to deliver any material, code or
functionality. The development, release, and timing of any features or functionality described for our products remains at our sole discretion
32
33. New features in IBM Lotus Domino Designer 8.5.x
maintenance stream
● Auto Save of Java library when sources
are saved.
● Expanded contents of jar or zip files
● Support for refactoring across library.
The information on the new product is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information on the new product is for
informational purposes only and may not be incorporated into any contract. The information on the new product is not a commitment, promise, or legal obligation to deliver any material, code or
functionality. The development, release, and timing of any features or functionality described for our products remains at our sole discretion
33
34. New features in IBM Lotus Domino Designer 8.5.x
maintenance stream
● Support for WSDL input while creating WS
provider
● Updating the WSDL in WSDL editor
regenerates the WebService provider
The information on the new product is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information on the new product is for
informational purposes only and may not be incorporated into any contract. The information on the new product is not a commitment, promise, or legal obligation to deliver any material, code or
functionality. The development, release, and timing of any features or functionality described for our products remains at our sole discretion
34
35. Agenda
● New Editors in IBM Lotus Domino Designer 8.5.1
▬ Benefits of Eclipse based Source Editor
▬ Which design elements are getting the new editors
● Live demo: deep dive on the new LotusScript and Java Editors
capabilities by building a sample application
▬ LotusScript Agent to create documents with company stock quotes information
▬ Java Agent to export documents into Symphony spreadsheet and send email notification
● New features in IBM Lotus Domino Designer 8.5.x maintenance stream
● Q&A
35
36. Related Lotusphere Sessions
● Meet the developer lab
▬ Domino Designer
▬ Xpages
● Jumpstart sessions
▬ JMP101 - IBM Lotus Domino Designer 101
▬ JMP102 - The Top Things All New IBM Lotus Domino Developers Need to Know
▬ JMP103 - LotusScript JumpStart
● Application Development Track
▬ AD101 - IBM Lotus Domino Designer: Full Speed Ahead
▬ AD107 - Enhance Your Existing Applications with XPages
● KeyNote
▬ KEY104 - IBM Lotus Notes and Domino: Strategy and Future Directions
36