SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Eclipse Launching Framework ,[object Object],[email_address] 2010.08
1. Introduction What is Launching? debug.core LaunchConfigurationTypes LaunchConfiguration debug.ui LaunchConfigurationDialog TabGroup Shortcuts 2. Prototype Demo (Run)
1. Introduction
What is Launching? Launching   - running or debugging a program from within Eclipse Launcher   - a set of Java classes that live in an Eclipse plug-in that performs launching   - launcher for Java application, JUnit test suites, ...   - What for  YOUR  application? Launching Framework   - extension mechanism   - Separating model and UI   - debug.core   - debug.ui
debug.core: Launching Framework’s model LaunchConfigurationTypes   - cookie cutters   - how to launch certain types of launch   - Java Application LaunchConfigurations   - cookie made from cutters   - information necessary to perform a launch   - it’s just key/value pair   - boolean, int, Map, List, String   - main class, JRE, VM arguments, ...
LaunchConfigurationTypes Extension point:  org.eclipse.debug.core.launchConfigurationTypes Interface:  org.eclipse.debug.core.model.ILaunchConfigurationDelegate Method:  launch(ILaunchConfiguration configuration, ...) <extension   point=&quot;org.eclipse.debug.core.launchConfigurationTypes&quot;>   <launchConfigurationType   delegate=&quot;test.launch.LaunchConfigurationDelegate&quot;   delegateName=&quot;test.launch.LaunchConfigurationDelegate&quot;   id=&quot;test.launch.launchConfigurationType&quot;   modes=&quot;debug,run&quot;   name=&quot;Test Launcher&quot;>   </launchConfigurationType> </extension>
debug.ui: Launching Framework’s UI LaunchConfigurationDialog Icon TabGroup   - utilize “Jigloo” Shortcuts   - ‘Run As’   - no Dialog   - create, set to default values and launch in a click   -  launch(ISelection selection, ...)   -  launch(IEditorPart editor, ...)
Icon Extension point:  org.eclipse.debug. ui.launchConfigurationTypeImages <extension   point=&quot;org.eclipse.debug.ui.launchConfigurationTypeImages&quot;>   <launchConfigurationTypeImage   configTypeID=&quot;test.launch.launchConfigurationType&quot;   icon=&quot;res/emu.png&quot;   id=&quot;test.launch.launchConfigurationIcon&quot;>   </launchConfigurationTypeImage> </extension>
TabGroup (1) Extension point:  org.eclipse.debug.ui.launchConfigurationTabGroups Interface:  org.eclipse.debug.ui.ILaunchConfigurationTabGroup Method:  createTabs(ILaunchConfigurationDialog dialog, ...) <extension   point=&quot;org.eclipse.debug.ui.launchConfigurationTabGroups&quot;>   <launchConfigurationTabGroup   class=&quot;test.launch.LaunchTabGroup&quot;   id=&quot;test.launch..LaunchTabGroup&quot;   type=&quot;test.launch.launchConfigurationType&quot;>   </launchConfigurationTabGroup>  </extension>
TabGroup (2) Steps:   1. write your own tab   - must implement  ILaunchConfigurationTab   - write UI code in  createControl()  // Jigloo comes in!   - value copying methods   -  setDefaults() ;  called when a new config is created   -  performApply() ; read from GUI   -  initializeFrom() ; read from config   2. write  createTabs()   - construct an array of  ILaunchConfigurationTab   -  setTabs() Notice:   - Extend  AbstractLaunchConfigurationTab   - Include [common] tab
Time to launch Steps:   1. write your own launcher   - must implement  ILaunchConfigurationDelegate   - write code in  launch()   -  ILaunchConfiguration ; config   -  mode ; Run or Debug   -  ILaunch ; DebugTarget/Process   -  IProgressMonitor ; monitor   - Construct a command line and pass it to  Runtime.exec()   - Create debug targets/processes and add to the  ILaunch  object Notice:   - Extend  LaunchConfigurationDelegate   - Check monitor ex.)) user cancelled
Advanced concepts Launch Group   - “category”   - built-in: Run, Debug, External Tools Comparator
2. Prototype Demo (Run)
Steps to run Edit MANIFEST.MF Require-Bundle : org.eclipse.ui,  org.eclipse.core.runtime,  org.eclipse.debug.core;bundle-version=&quot;3.5.1&quot;,  org.eclipse.debug.ui;bundle-version=&quot;3.5.2&quot;,  org.eclipse.jdt.launching;bundle-version=&quot;3.5.1“   org.eclipse.jdt.debug.ui;bundle-version=&quot;3.4.1&quot; Run Eclipse Application   - Create project   - Choose [Run Configurations...]
References & ToDo Item References:   - We Have Lift-off: The Launching Framework in Eclipse   http://www.eclipse.org/articles/Article-Launch-Framework/launch.html ToDo:   - Debug artifacts   - IDebugElement, IDebugTarget, IProcess   - ISuspendResume, IBreakpointListener

Weitere ähnliche Inhalte

Was ist angesagt?

Appl clas nd architect.56
Appl clas nd architect.56Appl clas nd architect.56
Appl clas nd architect.56
myrajendra
 
Applet skelton58
Applet skelton58Applet skelton58
Applet skelton58
myrajendra
 
Java applet basics
Java applet basicsJava applet basics
Java applet basics
Sunil Pandey
 

Was ist angesagt? (20)

L18 applets
L18 appletsL18 applets
L18 applets
 
Java Applets
Java AppletsJava Applets
Java Applets
 
Applet in JAVA
Applet in JAVAApplet in JAVA
Applet in JAVA
 
Java applets
Java appletsJava applets
Java applets
 
ITFT- Applet in java
ITFT- Applet in javaITFT- Applet in java
ITFT- Applet in java
 
Applets
AppletsApplets
Applets
 
java applets
java appletsjava applets
java applets
 
Appl clas nd architect.56
Appl clas nd architect.56Appl clas nd architect.56
Appl clas nd architect.56
 
Basic of Applet
Basic of AppletBasic of Applet
Basic of Applet
 
Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
 
Java swings
Java swingsJava swings
Java swings
 
Java applet - java
Java applet - javaJava applet - java
Java applet - java
 
Applet skelton58
Applet skelton58Applet skelton58
Applet skelton58
 
Java Applet
Java AppletJava Applet
Java Applet
 
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
 
Java Applet
Java AppletJava Applet
Java Applet
 
Java: Java Applets
Java: Java AppletsJava: Java Applets
Java: Java Applets
 
04b swing tutorial
04b swing tutorial04b swing tutorial
04b swing tutorial
 
Java applet basics
Java applet basicsJava applet basics
Java applet basics
 
Maven plugin guide using Modello Framework
Maven plugin guide using Modello FrameworkMaven plugin guide using Modello Framework
Maven plugin guide using Modello Framework
 

Ähnlich wie Eclipse Launching Framework

Quick Intro to Android Development
Quick Intro to Android DevelopmentQuick Intro to Android Development
Quick Intro to Android Development
Jussi Pohjolainen
 

Ähnlich wie Eclipse Launching Framework (20)

Introduction To Eclipse RCP
Introduction To Eclipse RCPIntroduction To Eclipse RCP
Introduction To Eclipse RCP
 
Gui
GuiGui
Gui
 
Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)
 
Using Maven2
Using Maven2Using Maven2
Using Maven2
 
myslide1
myslide1myslide1
myslide1
 
myslide6
myslide6myslide6
myslide6
 
NewSeriesSlideShare
NewSeriesSlideShareNewSeriesSlideShare
NewSeriesSlideShare
 
Unit 7 Java
Unit 7 JavaUnit 7 Java
Unit 7 Java
 
SwingApplet.pptx
SwingApplet.pptxSwingApplet.pptx
SwingApplet.pptx
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
 
Spring boot
Spring bootSpring boot
Spring boot
 
Open Cv 2005 Q4 Tutorial
Open Cv 2005 Q4 TutorialOpen Cv 2005 Q4 Tutorial
Open Cv 2005 Q4 Tutorial
 
Quick Intro to Android Development
Quick Intro to Android DevelopmentQuick Intro to Android Development
Quick Intro to Android Development
 
Pde build
Pde buildPde build
Pde build
 
UI Testing Best Practices - An Expected Journey
UI Testing Best Practices - An Expected JourneyUI Testing Best Practices - An Expected Journey
UI Testing Best Practices - An Expected Journey
 
Maven
MavenMaven
Maven
 
Angular performance slides
Angular performance slidesAngular performance slides
Angular performance slides
 
Uploading files using selenium web driver
Uploading files using selenium web driverUploading files using selenium web driver
Uploading files using selenium web driver
 
Swing
SwingSwing
Swing
 
Burp Suite Extension Development
Burp Suite Extension DevelopmentBurp Suite Extension Development
Burp Suite Extension Development
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Eclipse Launching Framework

  • 1.
  • 2. 1. Introduction What is Launching? debug.core LaunchConfigurationTypes LaunchConfiguration debug.ui LaunchConfigurationDialog TabGroup Shortcuts 2. Prototype Demo (Run)
  • 4. What is Launching? Launching - running or debugging a program from within Eclipse Launcher - a set of Java classes that live in an Eclipse plug-in that performs launching - launcher for Java application, JUnit test suites, ... - What for YOUR application? Launching Framework - extension mechanism - Separating model and UI - debug.core - debug.ui
  • 5. debug.core: Launching Framework’s model LaunchConfigurationTypes - cookie cutters - how to launch certain types of launch - Java Application LaunchConfigurations - cookie made from cutters - information necessary to perform a launch - it’s just key/value pair - boolean, int, Map, List, String - main class, JRE, VM arguments, ...
  • 6. LaunchConfigurationTypes Extension point: org.eclipse.debug.core.launchConfigurationTypes Interface: org.eclipse.debug.core.model.ILaunchConfigurationDelegate Method: launch(ILaunchConfiguration configuration, ...) <extension point=&quot;org.eclipse.debug.core.launchConfigurationTypes&quot;> <launchConfigurationType delegate=&quot;test.launch.LaunchConfigurationDelegate&quot; delegateName=&quot;test.launch.LaunchConfigurationDelegate&quot; id=&quot;test.launch.launchConfigurationType&quot; modes=&quot;debug,run&quot; name=&quot;Test Launcher&quot;> </launchConfigurationType> </extension>
  • 7. debug.ui: Launching Framework’s UI LaunchConfigurationDialog Icon TabGroup - utilize “Jigloo” Shortcuts - ‘Run As’ - no Dialog - create, set to default values and launch in a click - launch(ISelection selection, ...) - launch(IEditorPart editor, ...)
  • 8. Icon Extension point: org.eclipse.debug. ui.launchConfigurationTypeImages <extension point=&quot;org.eclipse.debug.ui.launchConfigurationTypeImages&quot;> <launchConfigurationTypeImage configTypeID=&quot;test.launch.launchConfigurationType&quot; icon=&quot;res/emu.png&quot; id=&quot;test.launch.launchConfigurationIcon&quot;> </launchConfigurationTypeImage> </extension>
  • 9. TabGroup (1) Extension point: org.eclipse.debug.ui.launchConfigurationTabGroups Interface: org.eclipse.debug.ui.ILaunchConfigurationTabGroup Method: createTabs(ILaunchConfigurationDialog dialog, ...) <extension point=&quot;org.eclipse.debug.ui.launchConfigurationTabGroups&quot;> <launchConfigurationTabGroup class=&quot;test.launch.LaunchTabGroup&quot; id=&quot;test.launch..LaunchTabGroup&quot; type=&quot;test.launch.launchConfigurationType&quot;> </launchConfigurationTabGroup> </extension>
  • 10. TabGroup (2) Steps: 1. write your own tab - must implement ILaunchConfigurationTab - write UI code in createControl() // Jigloo comes in! - value copying methods - setDefaults() ; called when a new config is created - performApply() ; read from GUI - initializeFrom() ; read from config 2. write createTabs() - construct an array of ILaunchConfigurationTab - setTabs() Notice: - Extend AbstractLaunchConfigurationTab - Include [common] tab
  • 11. Time to launch Steps: 1. write your own launcher - must implement ILaunchConfigurationDelegate - write code in launch() - ILaunchConfiguration ; config - mode ; Run or Debug - ILaunch ; DebugTarget/Process - IProgressMonitor ; monitor - Construct a command line and pass it to Runtime.exec() - Create debug targets/processes and add to the ILaunch object Notice: - Extend LaunchConfigurationDelegate - Check monitor ex.)) user cancelled
  • 12. Advanced concepts Launch Group - “category” - built-in: Run, Debug, External Tools Comparator
  • 14. Steps to run Edit MANIFEST.MF Require-Bundle : org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.debug.core;bundle-version=&quot;3.5.1&quot;, org.eclipse.debug.ui;bundle-version=&quot;3.5.2&quot;, org.eclipse.jdt.launching;bundle-version=&quot;3.5.1“ org.eclipse.jdt.debug.ui;bundle-version=&quot;3.4.1&quot; Run Eclipse Application - Create project - Choose [Run Configurations...]
  • 15. References & ToDo Item References: - We Have Lift-off: The Launching Framework in Eclipse http://www.eclipse.org/articles/Article-Launch-Framework/launch.html ToDo: - Debug artifacts - IDebugElement, IDebugTarget, IProcess - ISuspendResume, IBreakpointListener

Hinweis der Redaktion

  1. D:works untime-EclipseApplication.metadata.pluginsorg.eclipse.debug.core.launches config1.launch