1 Eclipse Example Guide Example : Java Editor. 2 Introduction l The Java Editor example : »demonstrates the standard features available for custom text.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse plugin development for CSU 670 course project, Selector language (Xaspect) editor plugin implementation.
Advertisements

Visual Designer for JasperReports
Tutorial 8: Developing an Excel Application
Goals Give you a feeling of what Eclipse is.
© by Pearson Education, Inc. All Rights Reserved.
Extensions to Svetovid students’ submission environment Doni Pracner, Ivan Pribela, Mirjana Ivanović, Zoran Budimac.
Web Content Management System Website Maintenance Demonstration Introduction to Macromedia Contribute Jamie Uprichard.
Week 2 Recap CSE 115 – Spring Object Oriented Program System of objects that communicate with one another to solve some problem.
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
1 org.eclipse.ui.texteditor-api l Provides a framework for text editors obeying to the desktop rules. org.eclipse.ui.texteditor.
Eclipse Introduction Dwight Deugo Nesa Matic
UIMA Overview Fall 2005 OOPD John Anthony. UIMA Conceptual Overview.
Plug-in Development Dwight Deugo Nesa Matic
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
1 Eclipse Platform Plug-in developper Guide PDG HowTos.
Eclipse Begin at the Beginning. Where to Find it:
Views Dwight Deugo Nesa Matic
New Plug-in Template Wizard Present by Kun-Tse Wu.
Meaningful Use (MU) Cancer Registry Report Validation Tool Quick Guide Andrew McCaffrey National Institute of Standards and Technology November 29 th,
What is so good about Archie and RevMan 5
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Copyright © IBM Corp., All rights reserved; made available under the EPL v1.0 | March 17, 2008 Extending the XML and SSE editors from the Web.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Creating.NET Add-ins.
Duke University Program Design & Construction Course Application Development Tools Sherry Shavor
What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.
Introduction to Android Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Workbench Overview Dwight Deugo Nesa Matic
Graph Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 10/2003 How To Finish your Project within Four Weeks.
Copyright © Curt Hill Java Looking at our first console application in Eclipse.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 4.
Productivity Programs Common Features and Commands.
Selected Topics in Software Engineering - Distributed Software Development.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
DEV-8: OpenEdge® Architect – Extensibility & Third Party Integration Sunil Belgaonkar Principal Software Engineer Architect Phillip Magnay.
Eclipse 3.1 IDE Overview.
ABC of Platform Workspace | Copyright © IBM Corp., ABC of Platform Workspace Szymon Brandys Tomasz Zarna IBM Krakow Software Lab.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
15/06/2006 The Future of Visual DCT EPICS Collaboration 2006 Argonne National Laboratory
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Eclipse 24-Apr-17.
Wizards for the OMNeT++ IDE András Varga OMNeT++ Workshop March 19, 2010 Malaga, Spain.
Copyright © 2012 MICS‘12 and Curt Hill Development Systems: A Review Curt Hill Professor of Math and Computer Science Valley City State University
© 2002 IBM Corporation Transaction Processing Facility TPF Users Group Acapulco May 2004 © 2004 IBM Corporation Pete Nicholls IBM Toronto Lab TPF Toolkit.
Visual DCT upgrade Gasper Jansa, Cosylab SLAC, April 2005.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
Introduction 1 Lars Vogel 4/22/2009.  Who am I?  Eclipse as a platform  What is Eclipse RCP?  Extension Points / Extensions  Equinox  SWT & JFace.
Microsoft Office 2003 What’s New for 2003? Improved Features Better collaboration tools Extra Security options Increased use of task panes Capability.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
Jan Hatje, DESY SNL Editor and Debugger EPICS collaboration meeting SNL Editor and Debugger EPICS collaboration meeting 2008 Shanghai Institute.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
Overview of Previous Lesson(s) Over View 3 Program.
An EPICS IDE Using Eclipse Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting June 15, 2006 Argonne National Laboratory, Argonne, IL.
How to run source code For scxml visual editor tool Author : Gui Xun Long
1 Eclipse Example Guide Example : Java Editor. 2 Introduction l The Java Editor example : »demonstrates the standard features available for custom text.
Textual Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 02/2004.
Introduction to Android Programming
Chapter 2: The Visual Studio .NET Development Environment
Goals Give you a feeling of what Eclipse is.
ATS Application Programming: Java Programming
LMEvents SharePoint Portal How-to Guide
Introduction to the Visual C# 2005 Express Edition IDE
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Java Looking at our first console application in Eclipse
Review of Previous Lesson
Java Code Review with CheckStyle
Presentation transcript:

1 Eclipse Example Guide Example : Java Editor

2 Introduction l The Java Editor example : »demonstrates the standard features available for custom text editors. »shows how to register an editor for a file extension (in this case.jav) and »how to define a custom Document provider for use by that editor. »only for demonstration purposes. Java editing support is provided by the Eclipse Java Tooling.

3 Learn by Doing l All programs in the book are available on the CD that comes with the book l It is a good idea to run the programs as you read about them Do not forget that you will need the SavitchIn.java file for keyboard input l Classes are used to define objects and provide methods to act on the objects l Classes are also programs that declare these objects and process them to solve the problem

4 Features demonstrated l syntax highlighting l content type sensitive content assist (JavaDoc and Java code) l communication between content outliner and editor, »i.e. content outliner selection feeds the highlight range of the editor l two different presentation modes »marking the highlight range using a visual range indicator »confining the editor to show only text within the highlight range (e.g. show a single method of a Java class) l marker handling l document sharing

5 How to run the editor

6 Principles for creating custom text editors 1. Create a document provider. 2. Create a document partitioner 3. Determine source viewer plugins to be provided 4. Create for all source viewer plugins the appropriate extensions for each supported content type 5. Build a source viewer configuration using the previously created plugins and extensions.

7 6. Customize the class TextEditor or AbstractTextEditor with the developed document partitioner and source viewer configuration. »Add or replace actions and adapt the construction of the editor's context menu. In the actual version, this customization must be done in a subclass. See JavaEditor in the example editor. 7. Set up an appropriate action bar contributor who contributes editor-related actions to the desktop's toolbar and menus. See JavaActionContributor in the example editor. 8. Extend the XML configuration file of the editor's plugin, so that the editor registers at the predefined editor extension point for a specific set of file extensions. Also set up the action bar contributor in the XML file. See plugin.xml of this example.

8 Code organization l four packages: l org.eclipse.ui.examples.javaeditor »contains all the editor specific classes. l org.eclipse.ui.examples.javaeditor.java »contains all Java specific source viewer plugins such as the JavaDamagerRepairer as well as the Java specific document partitioner. l org.eclipse.ui.examples.javaeditor.javadoc »contains all JavaDoc specific source viewer plugins such as the JavaDocDamagerRepairer. l org.eclipse.ui.examples.javaeditor.util »contains convenience classes shared by the three other packages.