Introduction to Eclipse and Subversive Plugin-Software Engineering-Lecture Slides, Slides of Software Engineering

Software engineering is about the development and application of processes and tools for managing the complexities inherent in creating high quality software systems. It introduces the fundamental software engineering concepts and terminology. This lecture includes: Introduction, Eclipse, Subversive, Plugin, Perspective, Program, Integrated, Development, Environment, Applications, Command

Typology: Slides

2011/2012

Uploaded on 08/09/2012

parthivi
parthivi 🇮🇳

4.1

(8)

85 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Introduction to Eclipse
This Lab will cover:
Getting Started with Eclipse
Choosing a Perspective
Creating a Project
Creating a Java Program
Compiling and Running a Java Program
Run Java Applications from the Command Line
Introduction to Eclipse:
Eclipse is a multilanguage software development environment comprising an integrated
development environment (IDE) and an extensible plugin system. It is written primarily in Java and
can be used to develop applications in Java and, by means of various plugins, other languages
including C, C++, COBOL, Python, Perl, PHP etc. The IDE is often called Eclipse ADT for Ada, Eclipse
CDT for C/C++, Eclipse JDT for Java and Eclipse PDT for PHP.
Installing Eclipse:
1. Download Eclipse (i.e. eclipseSDK3.0.1win32.zip) from
http://download.eclipse.org/eclipse/downloads/
2. Extract Eclipse (eclipseSDK3.0.1win32.zip) and copy to C:\eclipse. It can be uninstalled by
removing the directory (there is no entry in the registry).
3. Eclipse directory will be
C:\eclipse\
C:\eclipse\configuration\ Plug in configuration directory
C:\eclipse\features\ Features directory
C:\eclipse\plugins\ Plug in directory
C:\eclipse\eclipse.exe Eclipse executable file
4. Start and Close Eclipse
You just need to execute (double click) eclipse.exe file in the eclipse directory. When you start first
time, you can select a workspace. The workspace is to store your projects in the directory. You may
select C:\eclipse\workspace or elsewhere.
5. Click a workbench icon to start using eclipse.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Introduction to Eclipse and Subversive Plugin-Software Engineering-Lecture Slides and more Slides Software Engineering in PDF only on Docsity!

Introduction to Eclipse

This Lab will cover:

  • Getting Started with Eclipse
  • Choosing a Perspective
  • Creating a Project
  • Creating a Java Program
  • Compiling and Running a Java Program
  • Run Java Applications from the Command Line

Introduction to Eclipse:

Eclipse is a multi‐language software development environment comprising an integrated development environment (IDE) and an extensible plug‐in system. It is written primarily in Java and can be used to develop applications in Java and, by means of various plug‐ins, other languages including C, C++, COBOL, Python, Perl, PHP etc. The IDE is often called Eclipse ADT for Ada , Eclipse CDT for C/C++, Eclipse JDT for Java and Eclipse PDT for PHP.

Installing Eclipse:

1. Download Eclipse (i.e. eclipse‐SDK‐3.0.1‐win32.zip) from http://download.eclipse.org/eclipse/downloads/ 2. Extract Eclipse (eclipse‐SDK‐3.0.1‐win32.zip) and copy to C:\eclipse. It can be uninstalled by removing the directory (there is no entry in the registry). 3. Eclipse directory will be C:\eclipse
C:\eclipse\configuration\ Plug in configuration directory C:\eclipse\features\ Features directory C:\eclipse\plugins\ Plug in directory C:\eclipse\eclipse.exe Eclipse executable file 4. Start and Close Eclipse You just need to execute (double click) eclipse.exe file in the eclipse directory. When you start first time, you can select a workspace. The workspace is to store your projects in the directory. You may select C:\eclipse\workspace or elsewhere. 5. Click a workbench icon to start using eclipse.

Figure 1 Eclipse Startup Window

6. To close Eclipse, click [x] button, or select [File] ‐> [Exit] from menu.

Note: You must install JDK 1.5 before installing Eclipse. JDK

1.5 can be downloaded from http://java.sun.com/j2se/1.5/download.html. Eclipse can run on any platform with a Java Virtual Machine.

1. Getting Started with Eclipse

Suppose that you have installed Eclipse files in c:\eclipse. To start Eclipse, double‐click on the eclipse icon in the c:\eclipse folder, as shown in Figure 2.

Choosing a Perspective

A perspective defines the initial set and layout of views in the window. Perspectives control what appears in certain menus and toolbars. For example, a Java perspective contains the views that you would commonly use for editing Java source files, while the Debug perspective contains the views you would use for debugging Java programs. You may switch perspectives, but you need to specify an initial perspective for a workspace. To create Java programs, set the Java perspective by choosing Window , Open Perspective , Java from the main menu, as shown in Figure 5.

The new UI is shown in Figure 6.

Creating a Program (or Class)

Now you can create a program in the project by choosing File, New, Class to display the New Java Class wizard, as shown in Figure 9.

Type Welcome in the Name field. Check the option public static void main(String[] args). Click Finish to generate the template for the source code Welcome.java, as shown in Figure 10.

NOTE: You may use a package by entering a package name in the Package field in Figure 10. Since the source code in the book does not use packages, the Package field is left blank to match the code in the book.

Compiling and Running a Program

By default, your source code is dynamically compiled as you type. For example, if you forgot to type the semicolon (;) to end the statement, as shown in Figure 12, you will see the red wriggly line in the editor pointing to the error. To run the program, right‐click the class in the project to display a context menu, as shown in Figure 13. Choose Run , Java Application in the context menu to run the class. The output is displayed in the Console pane, as shown in Figure 14.

3. Click on Add 4. Type Subversive in name and click Local and select subversive plug‐in

  1. Select Subversive Team Provider and Uncategorized as shown in figure below 6. Click Next

8. Click on Window‐>Open Perspective ‐> SVN Repository Exploring

  1. Select Latest SVN Kit and latest native JavaHL and click finish
    1. Add the new SVN Repository and give URL of google SVN that you setup in Lab