Permalink
Browse files

#4209 Dashboards: advanced bundle

  • Loading branch information...
serge-rider committed Feb 10, 2019
1 parent 70e49c0 commit 15aec0306bb69cd157ec8521920f9af16a9bc1bd
@@ -108,15 +108,20 @@ public void run() {
}
});

manager.add(new Separator());
if (hasConfigurationDialog()) {
manager.add(new Separator());

manager.add(new Action("Settings ...", DBeaverIcons.getImageDescriptor(UIIcon.CONFIGURATION)) {
@Override
public void run() {
showChartConfigDialog();
}
});
manager.add(new Action("Settings ...", DBeaverIcons.getImageDescriptor(UIIcon.CONFIGURATION)) {
@Override
public void run() {
showChartConfigDialog();
}
});
}
}

protected boolean hasConfigurationDialog() {
return true;
}

protected boolean showChartConfigDialog() {
@@ -17,6 +17,8 @@

package org.jkiss.dbeaver.ui.controls.resultset;

import org.jkiss.dbeaver.model.exec.DBCResultSet;

/**
* Result set context
*/
@@ -27,4 +29,8 @@
boolean supportsDocument();

String getDocumentContentType();

DBCResultSet getResultSet();


}
@@ -517,6 +517,11 @@ public String getDocumentContentType() {
DBDAttributeBinding docAttr = model.getDocumentAttribute();
return docAttr == null ? null : docAttr.getValueHandler().getValueContentType(docAttr);
}

@Override
public DBCResultSet getResultSet() {
return resultSet;
}
};
final List<ResultSetPresentationDescriptor> newPresentations = ResultSetPresentationRegistry.getInstance().getAvailablePresentations(resultSet, context);
changed = CommonUtils.isEmpty(this.availablePresentations) || !newPresentations.equals(this.availablePresentations);
Oops, something went wrong.

0 comments on commit 15aec03

Please sign in to comment.