use of org.talend.designer.runtime.visualization.internal.ui.properties.timeline.LoadChartAction in project tdi-studio-se by Talend.
the class RuntimeGraphcsComposite method createMessagePage.
private Composite createMessagePage(Composite parent) {
messagePage = new Composite(parent, SWT.NONE);
FormLayout messageLayout = new FormLayout();
messageLayout.marginHeight = 0;
messageLayout.marginWidth = 0;
messagePage.setLayout(messageLayout);
messagePage.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
FormToolkit toolkit = new FormToolkit(Display.getDefault());
Hyperlink hyperlink = toolkit.createHyperlink(messagePage, Messages.loadDefaultChartSetLabel, SWT.NONE);
hyperlink.addHyperlinkListener(new HyperlinkAdapter() {
@Override
public void linkActivated(HyperlinkEvent event) {
try {
new LoadChartAction(RuntimeGraphcsComposite.this).loadDefaultChartSet();
} catch (JvmCoreException e) {
Activator.log(Messages.loadChartSetFailedMsg, e);
}
}
});
return messagePage;
}
Aggregations