Instant Eclipse 4 RCP Development How-to [Instant]


This title is available as an eBook only
Instant Eclipse 4 RCP Development How-to [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
$12.74
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Produce rich client standalone applications using Eclipse 4
  • Create an application user interface using an application model
  • Customize and package your applications for multiple target platforms

Book Details

Language : English
eBook : 68 pages
Release Date : May 2013
ISBN : 1782169520
ISBN 13 : 9781782169529
Author(s) : Ram Kulkarni
Topics and Technologies : All Books, Application Development, Instant, Open Source

Table of Contents

Preface
Instant Eclipse 4 RCP Development How-to
  • Instant Eclipse 4 RCP Development How-to
    • Setting up a development environment (Simple)
    • Creating a skeleton E4 application (Simple)
    • Adding menu and toolbar items (Intermediate)
    • Adding views (Intermediate)
    • Injecting your own objects (Advanced)
    • Creating a pop-up menu (Intermediate)
    • Creating custom events and handlers (Intermediate)
    • Adding a keyboard shortcut (Simple)
    • Creating custom objects using DI (Intermediate)
    • Creating views dynamically (Advanced)
    • Styling an application using CSS (Simple)
    • Customizing and exporting the application (Simple)

Ram Kulkarni

Ram Kulkarni has more than 20 years of experience in developing software. He has architected and developed enterprise web applications, client-server and desktop applications, application servers, IDEs, and mobile applications. He works at Adobe and has implemented many features of the ColdFusion server and ColdFusion Builder. He blogs at ramkulkarni.com.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 10 submitted: last submission 26 Aug 2013

Errata Type: Typo | Page number: 19 | Date: July 03, 2013

This line

You will find Main Menu at Application | Windows | Trimmed Window | Main Manu, and Toolbar at Application | Windows| Trimmed Window | TrimBars | Window Trim | Toolbar.

Should be

You will find Main Menu at Application | Windows | Trimmed Window | Main Menu, and Toolbar at Application | Windows| Trimmed Window | TrimBars | Window Trim | Toolbar.

Errata Type: Typo | Page number: 24 | Date: July 03, 2013

This code line in step 5

nippetDetailsComposite.setLayout(new GridLayout(2, false));

Should be

snippetDetailsComposite.setLayout(new GridLayout(2, false));

Errata Type: Grammar | Page number: 55 | Date: July 03, 2013

This line

We have set the launcher name CodeSnippetsApp.

Should be

We have set the launcher name to CodeSnippetsApp.

Errata Type: Technical | Page number: 23 | Date: July 03, 2013

This line

Open SnippetDetailsView.java. Modify the code in this file as follows (the code that you need to add is highlighted):

Should be

Open SnippetListView.java. Modify the code in this file as follows (the code that you need to add is highlighted):

Errata Type: Layout | Page number: 16 | Date: July 03, 2013

The following are the highlighted lines in the code:

package codesnippetapp.handlers;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.e4.core.di.annotations.Execute;
public class FindCommandHandler {
@Execute
public void execute(Shell shell) {
MessageDialog.openInformation(shell,
"Find Command", "Find command executed");
}

}

Errata Type: code | Page number: 28 | Date: July 03, 2013

This code line in step 3

SnippetRepository repository = ctx.get(SnippetRepository.class)

Should be

SnippetRepository repository = ctx.get(SnippetRepository.class);

Errata Type: Technical | Page number: 33 | Date: July 03, 2013

This line

So, when you right-click on an area of TreeViewer that does not have any snippet at that location, the Delete option should not be displayed, only the New Snippet option.

Should be

So, when you right-click on an area of TableViewer that does not have any snippet at that location, the Delete option should not be displayed, only the New Snippet option.

Errata Type: typo | Page number: 53 | Date: July 03, 2013

This line

Create application icons (PNG) images of different sizes, for example, 16x16, 32x32, 64x64, and 128x128 (sizes are in pixels).

Should be

Create application icon (PNG) images of different sizes, for example, 16x16, 32x32, 64x64, and 128x128 (sizes are in pixels).

Errata Type: typo | Page number: 54 | Date: July 03, 2013

This line

We need to add the icons folder to the binary build before we export the application, else t icons files will not be part of the exported application.

Should be

We need to add the icons folder to the binary build before we export the application, else the icons files will not be part of the exported application.

Errata Type: Typo | Page number: 52 | Date: July 05, 2013

This line

The open operation desterilizes the data and loads in the application.

Should be

The open operation deserializes the data and loads in the application.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Eclipse 4 RCP Development How-to [Instant] +    Expert Metasploit Penetration Testing [Video] =
50% Off
the second eBook
Price for both: €13.99

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Add custom menus, toolbar items, and keyboard shortcuts using an application model
  • Create static and dynamic views
  • Generate a dynamic pop-up menu
  • Use core expressions to show/hide menu items
  • Use Dependency Injection and annotations to access Eclipse 4 framework objects and services
  • Create custom events and handlers for notifications and to share data in the application
  • Style applications using CSS
  • Customize and export the application to different target platforms

In Detail

Standalone desktop applications are important in this era of web and mobile applications. Eclipse provides a rich set of APIs and tools, not just to create IDEs but also to create cross-platform standalone applications. Eclipse 4 has introduced many new concepts and APIs that make creating rich client application a lot easier.

Instant Eclipse 4 RCP Development How-to is a practical and hands-on guide to developing standalone applications. It also describes concepts and APIs used to perform specific tasks. The tasks identified in this book are most commonly performed in developing standalone applications of various levels of complexity.

Instant Eclipse 4 RCP Development How-to takes the approach of learning new features of Eclipse 4 by breaking them into specific tasks and progressively building a sample application using new features.

The book covers end-to-end workflow from setting up the development environment, creating the user interface, event handling, and displaying and saving data, to customizing and packaging the application. It provides code snippets for each task and explains the Eclipse 4 APIs and concepts used in them.The code will be easy to follow, making up part of the process of creating the entire sample application.

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks.A concise guide that delivers immediate results with practical recipes on learning practical hints and avoiding pitfalls in Eclipse 4 development.

Who this book is for

You will find this book useful if you are looking to create cross-platform rich client applications. Eclipse platform is built with Java, so basic knowledge of Java is essential. The focus of this book is to understand the new APIs and concepts of the Eclipse 4 platform. Prior knowledge of basic concepts of the Eclipse framework (plugin, extension, perspective, workspace, and so on), SWT (Standard Widget Toolkit), and JFace would be beneficial in understanding the examples in this book quicker.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software