Adding menu for perspective Plugin development [message #1833642] |
Tue, 20 October 2020 09:40 |
Duy Tran Messages: 8 Registered: October 2020 |
Junior Member |
|
|
Hello team,
I am creating a customized Perspective in Eclipse E4 plugin development. I created a Perspective and added Part Stack > Part > Menu > Handled Menu Item but when I changed to the new Perspective the Menu did not appear. In the Part Class URI I linked with the follow Java Class:
public class PerspectivePart
{
private Label myLabelInView;
@PostConstruct
public void postConstruct(Composite parent)
{
myLabelInView = new Label(parent, SWT.BORDER);
myLabelInView.setText("This is a sample E4 view");
// MessageDialog.openInformation(null, "E4 Information Dialog", "Goodbye cruel world from a pure Eclipse 4 plug-in");
System.out.println("Perspective opened");
}
}
There was nothing except the string "Perspective opened" printed on the console. Can you show me how to make the menu or a window appear when I open my Perspective?
Thanks and best regards,
Duy Tran
[Updated on: Tue, 20 October 2020 15:50] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02858 seconds