Skip to content
Snippets Groups Projects
Commit 95a505b9 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Bugfixing

parent 8a62ba34
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ public final class CockpitEditorBean {
this.loadProject();
if (this.project != null) {
this.resetTimeStamp();
this.resetTimeStampFromLastSaving();
this.reloadAvailableComponents();
this.createDashboardComponent();
......@@ -181,11 +181,13 @@ public final class CockpitEditorBean {
return Collections.nCopies(3, null);
}
/**
* This method sets the time stamp to the current system time.
*/
public void resetTimeStamp() {
this.timeStampSinceLastSaving = System.currentTimeMillis();
private void resetTimeStampFromLastSaving() {
// TODO Handle exceptions correctly
try {
this.timeStampSinceLastSaving = this.projectService.getCurrTimeStamp(this.projectName);
} catch (final ProjectNotExistingException ex) {
ex.printStackTrace();
}
}
public MIView getSelectedView() {
......@@ -426,7 +428,7 @@ public final class CockpitEditorBean {
this.cockpitLayout.serializeToString());
GlobalPropertiesBean.showMessage(FacesMessage.SEVERITY_INFO, this.globalPropertiesBean.getMsgProjectSaved());
// Update the time stamp!
this.resetTimeStamp();
this.resetTimeStampFromLastSaving();
this.clearModificationsFlag();
} catch (final IOException ex) {
......
......@@ -56,7 +56,7 @@
title="#{display.name}" value="#{cockpitBean.getXYPlotUpdate(display.name)}" rendered="#{cockpitBean.getDisplayType(display.name) == XY_PLOT}"/>
<p:meterGaugeChart title="#{display.name}" value="#{cockpitBean.getMeterGaugeUpdate(display.name)}" rendered="#{cockpitBean.getDisplayType(display.name) == METER_GAUGE}"/>
<h:outputText value="#{cockpitBean.getPlainTextUpdate(display.name)}" rendered="#{cockpitBean.getDisplayType(display.name) == PLAIN_TEXT}"/>
<h:outputText value="N/A" rendered="#{empty cockpitBean.getDisplayType(display.name)}"/>
<h:outputText value="N/A" rendered="#{cockpitBean.getDisplayType(display.name) == UNKNOWN}"/>
<p:pieChart fill="#{cockpitBean.getPieChartDisplaySettings(display.name).usingFilledChart}"
shadow="#{cockpitBean.getPieChartDisplaySettings(display.name).usingShadows}"
showDataLabels="#{cockpitBean.getPieChartDisplaySettings(display.name).usingVisibleDataLabels}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment