SlideShare a Scribd company logo
Eclipse Rich Client Platform 1         Sanjay Shah         Email:beamman82@gmail.com
Agenda Adding action to view toolbar Adding pulldown menu to view  Q/A ? 2
Adding actions to  ViewToolbar ,[object Object]
Select the extensions tab  and add “viewActions” extension .
Right click and from context menu select
viewerContribution  and in targetID provide the id of view where contribution is to be made.
Add new action to the contribution from contextmenu.
 Override run method of the Action class which
Implements IViewActionDelegate3
Adding ViewAction extension 4
Creating viewContribution 5
Set the attributes for viewerContribution 6
Adding action  7
Configuring actions 8
Action class stub genarated public class ProfileViewActionDelegate implements IViewActionDelegate { public void init(IViewPart view) { // TODO Auto-generated method stub } @Override public void run(IAction action) { } @Override public void selectionChanged(IAction action, ISelection selection) { // TODO Auto-generated method stub } } 9
Override Run method to perform action public void run(IAction action) { // TODO Auto-generated method stub MessageBox box = new MessageBox(view.getSite().getShell(),SWT.ICON_INFORMATION); box.setMessage("Hello! You clicked view action!"); box.open(); } 10
Adding PullDown Menu to view 11
Configuring Menu 12

More Related Content

Similar to Eclipse Rcp4.1

iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
Ishara Amarasekera
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)
Oro Inc.
 
Android App development III
Android App development IIIAndroid App development III
Android App development III
Thenraja Vettivelraj
 
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
Faina Fridman
 
iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI Components
Asim Rais Siddiqui
 
Google GIN
Google GINGoogle GIN
Google GIN
Anh Quân
 
Guice tutorial
Guice tutorialGuice tutorial
Guice tutorial
Anh Quân
 
Events and Listeners in Android
Events and Listeners in AndroidEvents and Listeners in Android
Events and Listeners in Android
ma-polimi
 
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business ToolsSUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
Anindita Bhattacharya
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
llmeade
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
Akhil Mittal
 
Action Bar in Android
Action Bar in AndroidAction Bar in Android
Action Bar in Android
Prof. Erwin Globio
 
Application Frameworks - The Good, The Bad & The Ugly
Application Frameworks - The Good, The Bad & The UglyApplication Frameworks - The Good, The Bad & The Ugly
Application Frameworks - The Good, The Bad & The Ugly
Richard Lord
 
MPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationMPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_Documentation
Xin Shao
 
COIT20270 Application Development for Mobile PlatformsWeek 4.docx
COIT20270 Application Development for Mobile PlatformsWeek 4.docxCOIT20270 Application Development for Mobile PlatformsWeek 4.docx
COIT20270 Application Development for Mobile PlatformsWeek 4.docx
mary772
 
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax PluginsHnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
dominion
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
Mahmoud Ouf
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
Mahmoud Ouf
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
Praveen Gorantla
 
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senjaMvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
alifha12
 

Similar to Eclipse Rcp4.1 (20)

iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)
 
Android App development III
Android App development IIIAndroid App development III
Android App development III
 
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
 
iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI Components
 
Google GIN
Google GINGoogle GIN
Google GIN
 
Guice tutorial
Guice tutorialGuice tutorial
Guice tutorial
 
Events and Listeners in Android
Events and Listeners in AndroidEvents and Listeners in Android
Events and Listeners in Android
 
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business ToolsSUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
SUG Bangalore - Extending Sitecore Experience Commerce 9 Business Tools
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
 
Action Bar in Android
Action Bar in AndroidAction Bar in Android
Action Bar in Android
 
Application Frameworks - The Good, The Bad & The Ugly
Application Frameworks - The Good, The Bad & The UglyApplication Frameworks - The Good, The Bad & The Ugly
Application Frameworks - The Good, The Bad & The Ugly
 
MPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationMPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_Documentation
 
COIT20270 Application Development for Mobile PlatformsWeek 4.docx
COIT20270 Application Development for Mobile PlatformsWeek 4.docxCOIT20270 Application Development for Mobile PlatformsWeek 4.docx
COIT20270 Application Development for Mobile PlatformsWeek 4.docx
 
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax PluginsHnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
Hnd201 Building Ibm Lotus Domino Applications With Ajax Plugins
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
 
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senjaMvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
 

Eclipse Rcp4.1