use of au.gov.asd.tac.constellation.views.attributeeditor.editors.operations.UpdateTimeZonePlugin in project constellation by constellation-app.
the class AttributeEditorPanel method updateTimeZoneAction.
private void updateTimeZoneAction(final AttributeData attr) {
final EditOperation editOperation = zoneId -> PluginExecution.withPlugin(new UpdateTimeZonePlugin((ZoneId) zoneId, attr)).executeLater(GraphManager.getDefault().getActiveGraph());
final AbstractEditor<ZoneId> editor = UPDATE_TIME_ZONE_EDITOR_FACTORY.createEditor(editOperation, String.format("Set time-zone for attribute %s", attr.getAttributeName()), TimeZone.getTimeZone(ZoneOffset.UTC).toZoneId());
final AttributeEditorDialog dialog = new AttributeEditorDialog(true, editor);
dialog.showDialog();
}
Aggregations