ad102 - extreme makeover -- lotusscript and java editor edition

37
AD102: Extreme Makeover, LotusScript® and Java TM Editor Editions David Taieb | Senior Software Engineer | IBM Santosh Kumar | Advisory Software Engineer | IBM

Upload: ddrschiw

Post on 14-May-2015

1.834 views

Category:

Technology


3 download

DESCRIPTION

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!

TRANSCRIPT

Page 1: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

AD102: Extreme Makeover, LotusScript® and JavaTM Editor EditionsDavid Taieb | Senior Software Engineer | IBMSantosh Kumar | Advisory Software Engineer | IBM

Page 2: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Financial Disclaimer

Page 3: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 4: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 5: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 6: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 7: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 8: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

8

Code and Comment Templates●Error handling standardization●Documentation generation●Can use dynamic variables

Page 9: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

9

Creating the LotusScript Agent and LibraryPick the type at creation

Page 10: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 11: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

11

Creating the stub methods with Auto-Complete

Press [ENTER]

Create section with Code and

Comment

Automatically edits/indents/ completes common code elements

Page 12: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 13: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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!

Page 14: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 15: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

15

Get instant feedback with continuous error reportingWithin section

Across sections

Changing to private causeserror in method

Page 16: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

16

Better manage your custom classes

Class Browser shows field information and their modifier

Icon denotes Private modifier

Hover help shows developer comments and aggregated class information (including superclass)

Page 17: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Problem view list all the errorsDouble-click sets the focus on the error in the editor

Error indicator in the editor tab andthe Database Navigator

Page 18: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 19: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 20: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

20

Getting started with Java Editor Preferences Domino Designer Preferences Eclipse Java Editor Preferences

Page 21: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 22: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 23: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 24: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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)

Page 25: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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.

Page 26: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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.

Page 27: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 28: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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.

Page 29: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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)

Page 30: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 31: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

31

● New LS Editor for Database Script

New features in IBM Lotus Domino Designer 8.5.x maintenance stream

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

Page 32: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 33: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

33

● Auto Save of Java library when sources are saved.

● Expanded contents of jar or zip files

● Support for refactoring across library.

New features in IBM Lotus Domino Designer 8.5.x maintenance stream

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

Page 34: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

34

● Support for WSDL input while creating WS provider

● Updating the WSDL in WSDL editor regenerates the WebService provider

New features in IBM Lotus Domino Designer 8.5.x maintenance stream

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

Page 35: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 36: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

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

Page 37: Ad102 - Extreme Makeover -- LotusScript and Java Editor Edition

37

Legal Disclaimer© IBM Corporation 2009. All Rights Reserved.

The information contained in this publication is provided for informational purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this publication, it is provided AS IS without warranty of any kind, express or implied. In addition, this information is based on IBM’s current product plans and strategy, which are subject to change by IBM without notice. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this publication or any other materials. Nothing contained in this publication is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.

References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in this presentation may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. Nothing contained in these materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.

All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer.

IBM, the IBM logo, Lotus, Lotus Notes, Notes, Domino, Quickr, Sametime, WebSphere, UC2, PartnerWorld and Lotusphere are trademarks of International Business Machines Corporation in the United States, other countries, or both. Unyte is a trademark of WebDialogs, Inc., in the United States, other countries, or both.

Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.