Eclipse 4 Plug-in Development by Example: Beginner's Guide

Dr Alex Blewitt

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-24
  • 售價: $1,820
  • 貴賓價: 9.5$1,729
  • 語言: 英文
  • 頁數: 348
  • 裝訂: Paperback
  • ISBN: 1782160329
  • ISBN-13: 9781782160328
  • 相關分類: Java 相關技術
  • 無法訂購

買這商品的人也買了...

相關主題

商品描述

How to develop, build, test, package, and release Eclipse plug-ins with features for Eclipse 3.x and Eclipse 4.x

Overview

  • Create plug-ins to extend the Eclipse runtime covering Eclipse 3.x and the changes required for Eclipse 4.x
  • Plug-ins from design to distribution — wide coverage of the entire process
  • No prior OSGi or Eclipse plug-in development experience necessary

In Detail

As a highly extensible platform, Eclipse is used by everyone from independent software developers to NASA. Key to this is Eclipse’s plug-in ecosystem, which allows applications to be developed in a modular architecture and extended through its use of plug-ins and features.

"Eclipse Plugin Development by Example: Beginner's Guide" takes the reader through the full journey of plug-in development, starting with an introduction to Eclipse plug-ins, continued through packaging and culminating in automated testing and deployment. The example code provides simple snippets which can be developed and extended to get you going quickly.

This book covers basics of plug-in development, creating user interfaces with both SWT and JFace, and interacting with the user and execution of long-running tasks in the background.

Example-based tasks such as creating and working with preferences and advanced tasks such as well as working with Eclipse’s files and resources. A specific chapter on the differences between Eclipse 3.x and Eclipse 4.x presents a detailed view of the changes needed by applications and plug-ins upgrading to the new model. Finally, the book concludes on how to package plug-ins into update sites, and build and test them automatically.

What you will learn from this book

  • How to create plug-ins for Eclipse 3.x and 4.x and automatically test plug-ins with JUnit
  • How to display tree and table information in views
  • What are the specific differences between the Eclipse 3.x model and the Eclipse 4.x model
  • How and when to build user interfaces from SWT and JFace
  • How to run tasks in the background and update the user interface asynchronously
  • How to build plug-ins, features and update sites with Maven Tycho and automate user interface tests with SWTBot
  • How to store and obtain preferences, and how to integrate with the Preferences panel
  • How to work with the Eclipse resources model for creating and updating files and reporting errors to the user

Approach

A Beginner's Guide following the "by Example" approach. There will be 5-8 major examples that will be used in the book to develop advanced plugins with the Eclipse IDE.

Who this book is written for

This book is for Java developers who are familiar with Eclipse as a Java IDE and are interested in learning how to develop plug-ins for Eclipse. No prior knowledge of Eclipse plug-in development or OSGi is necessary, although you are expected to know how to create, run, and debug Java programs in Eclipse.

商品描述(中文翻譯)

如何開發、建構、測試、打包和釋出 Eclipse 插件,並為 Eclipse 3.x 和 Eclipse 4.x 提供功能。

概述:
- 創建插件以擴展 Eclipse 執行時環境,涵蓋 Eclipse 3.x 和 Eclipse 4.x 所需的更改。
- 從設計到分發的插件 —— 全面涵蓋整個過程。
- 無需先前的 OSGi 或 Eclipse 插件開發經驗。

詳細內容:
作為一個高度可擴展的平台,Eclipse 被從獨立軟體開發人員到 NASA 的所有人使用。其中關鍵是 Eclipse 的插件生態系統,它允許應用程式以模塊化架構開發並通過使用插件和功能進行擴展。

《Eclipse Plugin Development by Example: Beginner's Guide》將帶領讀者完成插件開發的完整過程,從介紹 Eclipse 插件開始,繼續進行打包,最終實現自動化測試和部署。示例代碼提供了簡單的片段,可以進行開發和擴展,讓您快速上手。

本書涵蓋了插件開發的基礎知識,使用 SWT 和 JFace 創建用戶界面,與用戶進行交互以及在後台執行長時間任務。

示例任務包括創建和使用偏好設定,以及與 Eclipse 的文件和資源一起工作。一個特定的章節介紹了 Eclipse 3.x 和 Eclipse 4.x 之間的差異,詳細介紹了應用程式和插件升級到新模型所需的更改。最後,本書介紹了如何將插件打包成更新站點,並自動建構和測試它們。

本書將學到以下內容:
- 如何為 Eclipse 3.x 和 4.x 創建插件,並使用 JUnit 自動測試插件。
- 如何在視圖中顯示樹狀和表格信息。
- Eclipse 3.x 模型和 Eclipse 4.x 模型之間的具體差異。
- 如何從 SWT 和 JFace 建立用戶界面的方法和時機。
- 如何在後台運行任務並異步更新用戶界面。
- 如何使用 Maven Tycho 建構插件、功能和更新站點,並使用 SWTBot 自動化用戶界面測試。
- 如何存儲和獲取偏好設定,以及如何與偏好設定面板集成。
- 如何使用 Eclipse 資源模型創建和更新文件,並向用戶報告錯誤。

方法:
本書遵循「以實例為例」的初學者指南方法。書中將使用 5-8 個主要示例來開發具有 Eclipse IDE 的高級插件。

本書的讀者對 Eclipse 作為 Java IDE 有所了解,並有興趣學習如何為 Eclipse 開發插件的 Java 開發人員。無需先前的 Eclipse 插件開發或 OSGi 知識,但您應該知道如何在 Eclipse 中創建、運行和調試 Java 程序。