Displaying an About box in your Eclipse RCP Application/Product is actually very simple. However as is typical of a framework ("don't call us, we'll call you" principle), there are conventions you must follow.
Before you do this, you must already create an Eclipse RCP Application class that implements IApplication and register it as an Eclipse extension in your plugin.xml.Adding the Help > About Menu Item
First, edit your ApplicationActionBarAdvisor class (which extends org.eclipse.ui.application.ActionBarAdvisor base class), as follows: protected void makeActions(IWorkbenchWindow window) {
aboutAction = ActionFactory.ABOUT.create(window);
register(aboutAction);
} That will register the About action. You will also need to add the menu action itself to the menu bar: protected void fillMenuBar(IMenuManager menuBar) {
MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
menuBar.add(helpMenu);
helpMenu.add(aboutAction);
} Launch your Eclipse RCP application and you can display the About dialog.
Customizing the About Dialog Box
To customize the About dialog box's contents, first you must create an Eclipse RCP Product Configuration.
Click File > New > Product Configuration and define your product. This should also add your product to extension point 'org.eclipse.core.runtime.products'. Edit your project's Launch Configuration to use the your Product Configuration instead of Eclipse Application. Verify that it works well. Now you can customize the About box contents by editing your Product Configuration (.product file), go to Branding tab and About Dialog section. Specify the About Image and About Text there. To specify the image, import an image resource (PNG, GIF, JPG) to your plugin project (e.g. inside an /icons folder). Important: Your image will need to be included inside your resulting plugin binary. Edit your plugin's manifest, go to Build tab, and make sure your images/icons are included (checked) for the binary build and source build. After editing your Product Configuration, you must synchronize it with the plugin manifest. Go to the Product's Overview tab and click Synchronize (under Testing). That action will update several properties in the org.eclipse.core.runtime.products extension, for example: <extension
id="abispulsa_rcp"
point="org.eclipse.core.runtime.products">
<product
application="com.abispulsa.bisnis.rcp.application"
description="Layanan bagi korporasi untuk dapat dengan mudah mengisi pulsa."
name="AbisPulsa Bisnis RCP">
<property
name="appName"
value="AbisPulsa Bisnis RCP">
</property>
<property
name="aboutText"
value="AbisPulsa Bisnis merupakan layanan bagi korporasi untuk dapat dengan mudah mengisi pulsa.">
</property>
<property
name="aboutImage"
value="icons/AbisPulsa_icon_75x75.png">
</property>
</product>
</extension> For your information: Other properties you can use include:
- windowImages
- aboutImage
- aboutText
- appName
- welcomePage
- preferenceCustomization
References:
Concise package money, bare nothing, but it is a brand of coat of paint material light, the super invincible joker, very street van Cambridge satchel bag.
ReplyDeleteBag bag tassel part is made of genuine leather oh, very thick soft, package itself is the quality of the skin of PU, quality is good. Much super tassel walking around up born swaying posture, very attract eyeball oh.
Europe and a bag of wind, appearance is very simple, less is more big oh. Bag body skeleton complex moment modelling, a bit cool taste.
Give people a feeling of very warm is the purpose of Cambridge satchel company, this season it continued the popular bright colour elements, such as pink fluro and yellow fluro. It is so fashion and beautiful. You can also embossing your names on your bag, you will like it very much.
what a fantastic find - can't wait to see what you two come up with!
ReplyDeleteTote handbag tassel part Runescape Goldis made of real natural leather oh, very heavy delicate, bundle is the standard of your skin associated with Pick up, top quality is nice. Considerably tremendous tassel running aroundCheap MapleStory Mesos upward born swaying healthy posture, quite draw in eyeball oh yeah.
ReplyDeleteThanks for the information. I really enjoyed, I would like get more information about this,because is very beautiful, thanks for sharing Smoking Effects.
ReplyDeleteWonderful recipe! I have began producing my own washing cleaning soap just just lately - along with love it along with have a pretreatment squirt -- These are Effortless components and I'm going to give mtss is a try out!!! Appreciate your posting the idea!
ReplyDeleteBuy D3 Items
Cheap Runescape Gold
Be transmitted, Groundhog Day transferred tanks, offensive combo point to archers who start output archers will continue with the output decreased pop-up ball of energy from the body.buy wow gold
ReplyDeleteThanks for the infromation about the ABOUT dialog :)
ReplyDeleteCould you please provide a detailed information about implementing the Welcom Page (Intro part) for the application?
I have implemented the Welcome page using the IIntroPart (this is not html or xml based) but by implementing the IIntroPart in my application. The problem is when the user tries to open any perspectiv (through "Window -> Open Perspective -> MyPerspective") when the welcome page is still visible (not closed), then the welcome page is getting closed (am closing it manually by adding the part listener to my IIntroPart class). But when the welcome page is closed, the selected perspective is not shown. Am empty part is visible but not my perspective. But the perspective shortcut bar is getting updated with the perspective that i have selected.
Any help on this is welcomed...am using eclipse 3.6.2
Thanks
Awesome. Awesome. buy android phones Awesome!!
ReplyDeleteIt's a good deal better ones compared to plastic-type material ones with retailers on a Billige Smartphones ohne Vertrag online bestellen regular basis.
ReplyDeleteEdit your project's Launch Configuration to use the your Product Configuration instead of Eclipse Application. Verify that it works well.
ReplyDeletemeizu mx5
xiaomi redmi note 2
meizu m2
This comment has been removed by the author.
ReplyDelete