| Adding Outlines to Toolbar [message #650793] |
Wed, 26 January 2011 10:22  |
Rob Egan Messages: 1 Registered: January 2011 |
Junior Member |
|
|
I was glancing at the slides from from EclipseCon. It one screen-shot it shows that Outlines can be activated from a toolbar. How does one go about adding an outline to the toolbar?
Thanks,
Rob
|
|
|
| Re: Adding Outlines to Toolbar [message #650807 is a reply to message #650793] |
Wed, 26 January 2011 11:33   |
Arthur vD Messages: 47 Registered: March 2010 |
Member |
|
|
Hi Rob
In the class AbstractDesktop you can overwrite the method getConfiguredOutlines() to add your Outlines. If you want the creation and adding of an Outline in one go you can use the Scout Perspective:
In the Scout Explorer navigate to your client package which has a child called "Desktop". On its child node "Outlines" is a context menu "New Outline..." which guides you through the process.
Have fun.
Regards, Arthur.
(Correction: Changed getConfiguredDesktops() to getConfiguredOutlines()...)
[Updated on: Wed, 26 January 2011 14:42] Report message to a moderator
|
|
|
| Re: Adding Outlines to Toolbar [message #659701 is a reply to message #650807] |
Tue, 15 March 2011 06:02  |
Adrian Moser Messages: 66 Registered: March 2011 |
Member |
|
|
Maybe you want to add a button for your outline as well - you can do this by adding an AbstractOutlineViewButton in your Desktop, e.g.:
public class SettingsOutlineViewButton extends AbstractOutlineViewButton {
public SettingsOutlineViewButton() {
super(Desktop.this, SettingsOutline.class);
}
}
Regards,
Adrian
|
|
|
Powered by
FUDForum. Page generated in 0.02441 seconds