1 l Class and Method Definitions l Information Hiding and Encapsulation l Objects and Reference l Parameter passing org.eclipse.core.resources.

Slides:



Advertisements
Similar presentations
Goals Give you a feeling of what Eclipse is.
Advertisements

1 Chapter 12 Working With Access 2000 on the Internet.
1 org.eclips.ui package org.eclipse.ui. 2 Package org.eclipse.ui Description l Application programming interfaces for interaction with any extension of.
1 Eclipse Example Guide Example : Java Editor. 2 Introduction l The Java Editor example : »demonstrates the standard features available for custom text.
Eclipse Architecture Dwight Deugo Nesa Matic
Using Objects and Properties
Preferences in Eclipse 3.0 Present by Kun-Tse Wu.
Run time vs. Compile time
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
Using Abstraction to Manage Complexity Abstraction: procedural abstraction & data abstraction. Procedural abstraction=> function development should separate.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
Eclipse resource management. Outline Introduction Basic resource management Further resource management.
1 Standard Widget Toolkit. 2 SWT l a widget toolkit for Java developers l provides a portable API and tight integration with the underlying native OS.
C++ fundamentals.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
LDAP LIGHT WEIGHT DIRECTORY ACCESS PROTOCOL PRESENTATION BY ALAKESH APURVA DHAN AND ASH.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Classes and objects Practice 2. Basic terms  Classifier is an element of the model, which specifies some general features for a set of objects. Features.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 11 Case Study 2: Windows Vista Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
CISC6795: Spring Object-Oriented Programming: Polymorphism.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
Understanding the CORBA Model. What is CORBA?  The Common Object Request Broker Architecture (CORBA) allows distributed applications to interoperate.
Introduction to Object Oriented Programming. Object Oriented Programming Technique used to develop programs revolving around the real world entities In.
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
An Introduction to Java Chapter 11 Object-Oriented Application Development: Part I.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 1.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Methods in Java. Program Modules in Java  Java programs are written by combining new methods and classes with predefined methods in the Java Application.
CORBA Details Three Tier Architecture CORBA API Holders and Helpers COS Naming and Naming Contexts Transient and Persistent Objects Properties Callbacks.
ABC of Platform Workspace | Copyright © IBM Corp., All rights reserved. Source code in this presentation is made available under the EPL, v1.0, remainder.
Selena Extension Christian Brand Eckart Langhuth Matthias Metzler
Summing Up Object Oriented Design. Four Major Components: Abstraction modeling real-life entities by essential information only Encapsulation clustering.
1 Chapter Four Creating and Using Classes. 2 Objectives Learn about class concepts How to create a class from which objects can be instantiated Learn.
CE Operating Systems Lecture 17 File systems – interface and implementation.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 5 Creating Classes.
Introduction to Java Chapter 7 - Classes & Object-oriented Programming1 Chapter 7 Classes and Object-Oriented Programming.
COP INTERMEDIATE JAVA Designing Classes. Class Template or blueprint for creating objects. Their definition includes the list of properties (fields)
Inheritance. Inheritance - Introduction Idea behind is to create new classes that are built on existing classes – you reuse the methods and fields and.
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
Session 07 Module 13 - Collections. Collections / Session 7 / 2 of 32 Review  A delegate in C# is used to refer to a method in a safe manner.  To invoke.
Session 1 Module 1: Introduction to Data Integrity
Chapter 11: Advanced Inheritance Concepts. Objectives Create and use abstract classes Use dynamic method binding Create arrays of subclass objects Use.
Classes, Interfaces and Packages
Extending Eclipse General concepts and Project related APIs Yearly project, Winter 05/06 The Technion.
© 2006 Pearson Addison-Wesley. All rights reserved 1-1 Chapter 1 Review of Java Fundamentals.
Author: DoanNX Time: 45’.  OOP concepts  OOP in Java.
Java Classes Introduction. Contents Introduction Objects and Classes Using the Methods in a Java Class – References and Aliases Defining a Java Class.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Creating Java Applications (Software Development Life Cycle) 1. specify the problem requirements - clarify 2. analyze the problem - Input? Processes? Output.
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
Java for android Development Nasrullah Khan. Using instanceof in Android Development the classes such as Button, TextView, and CheckBox, which represent.
Classes CS 162 (Summer 2009). Parts of a Class Instance Fields Methods.
Object-Oriented Programming Using C++ Third Edition Chapter 7 Using Classes.
Goals Give you a feeling of what Eclipse is.
Chapter 3: Using Methods, Classes, and Objects
OpenStorage API part II
Object-Oriented Programming Using C++
Introduction to javadoc
Eclipse Plug-in Development
Eclipse Plug-in Development
Introduction to javadoc
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Presentation transcript:

1 l Class and Method Definitions l Information Hiding and Encapsulation l Objects and Reference l Parameter passing org.eclipse.core.resources

2 Package org.eclipse.core.resource l Provides basic support for managing a workspace and its resources. l The entire API for the Resources plug-in. l The resources plug-in defines the notions of »Workspaces and »Resources. l The workspace's resource model is similar to a file system. »All resources are backed by a real file or directory in the native file system. »Stored in their native form (i.e., no extra bytes or markup) using their normal names. l In addition to basic resource management, the Resources plug-in supports various workspace lifecycle events such as save and snapshot, and resource change events.

3 Interface summary l interface for rsources l IFile »Files are leaf resources which contain data. l ICommand »A builder command names a builder and supplies a table of name-value argument pairs. l IContainer »Interface for resources which may contain other resources (termed its members). l IFileModificationValidator »The file modification validator is a VCM-related hook for pre- checking operations that modify the contents of files. l IFileState »A previous state of a file stored in the workspace's local history.

4 l IFolder »Folders may be leaf or non-leaf resources and may contain files and/or other folders. l IMarker »Markers are a general mechanism for associating notes and metadata with resources. l IMarkerDelta »A marker delta describes the change to a single marker. l IProject »A project is a type of resource which groups resources into buildable, reusable units. l IProjectDescription »A project description contains the metadata required to define a project. l IProjectNature »Interface for project nature runtime classes. l IProjectNatureDescriptor »A project nature descriptor contains information about a project nature obtained from the plug-in manifest ( plugin.xml ) file.

5 l IResource »The workspace analog of file system files and directories. l IResourceChangeEvent »Resource change events describe changes to resources. l IResourceChangeListener »A resource change listener is notified of changes to resources in the workspace. l IResourceDelta »A resource delta represents changes in the state of a resource tree between two discrete points in time. l IResourceDeltaVisitor »An objects that visits resource deltas. l IResourceStatus »Represents status related to resources in the Resources plug-in and defines the relevant status code constants. l IResourceVisitor »This interface is implemented by objects that visit resource trees. l ISaveContext »A context for workspace save operations. l ISavedState »A data structure returned by addSaveParticipant containing a save number and an optional resource delta.

6 l ISaveParticipant »A participant in the saving of the workspace. l IStorage »A storage object represents a set of bytes which can be accessed. l ISynchronizer »A synchronizer which maintains a list of registered partners and, on behalf of each partner, it keeps resource level synchonization information (a byte array). l IWorkspace »Workspaces are the basis for Eclipse Platform resource management. l IWorkspaceDescription »A workspace description represents the workspace preferences. l IWorkspaceRoot »A root resource represents the top of the resource hierarchy in a workspace. l IWorkspaceRunnable »A runnable which executes as a batch operation within the workspace.

7 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

8 Project-related API l IProject »A project is a type of resource which groups resources into buildable, reusable units. l IProjectDescription »A project description contains the metadata required to define a project. l IProjectNature »Interface for project nature runtime classes. l IProjectNatureDescriptor »A project nature descriptor contains information about a project nature obtained from the plug-in manifest ( plugin.xml ) file.

9 IProjectNature String getLabel() »Returns a displayable label for this nature. »nameAttr l String getNatureId() »Returns the unique identifer of this nature. »plugId + idAttr l String[] getNatureSetIds() »Returns the identifiers of the nature sets that this nature belongs to. l String[] getRequiredNatureIds() »Returns the unique identifiers of the natures required by this nature.

10 IProjectDescription l Contains the metadata required to define a project. »is a project's "content". »not intended to be implemented by clients (Constant) Fields : »static String DESCRIPTION_FILE_NAME »= ".project “ Methods: l boolean hasNature(String natureId) »test if the project nature has been added to the described project. l ICommand newCommand() »Returns a new build command. not become part of build spec until installed via the setBuildSpec method.

11 Properties of IProjectDescriptor l buildSpec :ICommand[] »list of build commands to run when building the described project. l comment :String »comment for the described project l location : IPath »the local file system location for the described project. l name : String »the project name l natureIds : String[] »list of natures associated with the described project. l referencedProjects : IProject[] »referenced projects, ignoring any duplicates.

12 IProjectNature l Interface for project nature runtime classes. »A project can be configured or deconfigure with zero or more project natures. »if configured =>recorded in the list of project natures on the project. »Individual project natures may expose a more specific runtime type, with additional API for manipulating the project in a nature-specific way. »Clients may implement this interface.

13 Methods of IProjectNature void configure() »Configures this nature for its project. »called by the workspace when natures are added to the project using IProject.setDescription and should not be called directly by clients. l void deconfigure() »Deconfigures this nature for its project. »called by worksapce and should not be called by client. l IProject getProject() »Returns the project to which this project nature applies. l void setProject(IProject project) »Sets the project to which this nature applies. »Used when instantiating this project nature runtime. This is called by IProject.create() or IProject.setDescription() and should not be called directly by clients.

14 IProject l public interface IProject extends IContainer, IAdaptable l is a type of resource which groups resources into buildable, reusable units. l Features of projects include: »collects together a set of files and folders. »A project's location controls where the project's resources are stored in the local file system. »A project's build spec controls how building is done on the project. »A project can carry session and persistent properties. »A project can be open or closed; a closed project is passive and has a minimal in-memory footprint. »A project can carry references to other projects. »A project can have one or more project natures. l This interface is not intended to be implemented by clients.

15 IResource l The workspace analog of file system files and directories. l There are four types of resource: »IFile, IFolder, IProject, IWorkspacRoot l Features of resources: » IResource objects are handles to state maintained by a workspace,but some methods and operations require that an actual resource be available. »can have two kinds of properties (identified by qualified name key) –session properties :Object value –persistent properties:String value »Resources are identified by type and by their path »Resources can be local or non-local »Phantom resource represent incoming additions or outgoing deletions which have yet to be reconciled with a synchronization partner l not intended to be implemented by clients