ViewPart with Toolbar [message #1065544] |
Wed, 26 June 2013 08:46  |
Eclipse User |
|
|
|
Hello,
I've got a custom ViewPart in my RAP Application and I'm trying to add a Button to the Toolbar of this view by using the following code:
@Override
public void createPartControl(Composite parent) {
IToolBarManager toolBarManager = getViewSite().getActionBars()
.getToolBarManager();
toolBarManager.add(new Action("ModeSwitch") {
private static final long serialVersionUID = 7203102815117067524L;
@Override
public void run() {
// TODO mach etwas
}
});
}
But the toolbar does not appear at all. Am I missing something here?
Greetings,
Sascha
[Updated on: Wed, 26 June 2013 08:46] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04310 seconds