# CSS Preference Settings at J-PARC.
#
# This file provides a common place to define or override preference settings
# for all Eclipse and CSS plugins.
#
# Specifically, this file contains values for the SNS Office network.
# A separate file SNS_CCR.ini provides overrides for the SNS CCR.
#
# Fundamentally, the Eclipse preference mechanism works like this
# to allow customization at various levels:
# 1. Each plugin might contain default settings that are hardcoded
#    inside the Java sources of the plugin.
# 2. In addition, each plugin might have a file preferences.ini
#    in the root directory of the plugin directory or jar file.
#    When present, those values override the hardcoded settings.
#    Ideally, each plugin with preference settings has such a 
#    preferences.ini file to define the defaults because this
#    provides a convenient place to locate all the available
#    settings of a plugin in one file.
# 3. A plugin_customization.ini file like this one, located
#    in the root of the "Product" plugin directory or jar file
#    can override all of the above.
#    It is ideally used to provide site-specific defaults
#    (as this one does for using CSS at the SNS).
# 4. When starting CSS (or any Eclipse product), a customization file
#    with the same format can be provided via the -pluginCustomization
#    command line option to override settings.
#    NOTE: Eclipse silently ignores missing customization files.
#    THERE IS NO ERROR MESSAGE when the specified file does not exist! 
# 5. Finally, each end user can use the CSS/Preferences menu item to
#    interactively adjust most settings. Those changes are stored in the
#    workspace directory under 
#        {Workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings
#
# @author Masaya Hirose

# Preferences for network settings *** this does not work for the moment ***
#org.eclipse.core.net/proxiesEnabled=true
#org.eclipse.core.net/systemProxiesEnabled=true
#org.eclipse.core.net/proxyData/HTTP/host=192.168.1.130
#org.eclipse.core.net/proxyData/HTTP/port=3128
#org.eclipse.core.net/proxyData/HTTP/hasAuth=false
#org.eclipse.core.net/proxyData/HTTPS/host=192.168.1.130
#org.eclipse.core.net/proxyData/HTTPS/port=3128
#org.eclipse.core.net/proxyData/HTTPS/hasAuth=false

# Diirt Home
# do not set diirt home so that plugin_customization.ini will take effect
#org.csstudio.diirt.util.core.preferences/diirt.home=configuration/diirt_jlan

# EPICS_CA_ADDR_LIST
# 192.153.109.232 : jlandmzcagw01.j-parc.jp
org.csstudio.vtype.pv/addr_list=192.153.109.232
org.csstudio.vtype.pv/max_array_bytes=650000
org.csstudio.vtype.pv/dbe_property_supported=false

# diirt
# it seems that following diirt preferences are not honored in the GUI (Preferences->CSS Core->Data Source->Channel Acces and also in .metadata/.plugins/org.eclipse.core.runtime/.settings/org.csstudio.diirt.util.core.preferences.prefs)
# see: https://github.com/ControlSystemStudio/cs-studio/issues/2086
org.csstudio.diirt.util.core.preferences/diirt.ca.addr.list=192.153.109.232
org.csstudio.diirt.util.core.preferences/diirt.ca.auto.addr.list=true
org.csstudio.diirt.util.core.preferences/diirt.ca.beacon.period=15.0
org.csstudio.diirt.util.core.preferences/diirt.ca.connection.timeout=30.0
org.csstudio.diirt.util.core.preferences/diirt.ca.custom.mask=5
org.csstudio.diirt.util.core.preferences/diirt.ca.dbe.property.supported=false
org.csstudio.diirt.util.core.preferences/diirt.ca.honor.zero.precision=true
org.csstudio.diirt.util.core.preferences/diirt.ca.max.array.size=650000
org.csstudio.diirt.util.core.preferences/diirt.ca.monitor.mask=VALUE
org.csstudio.diirt.util.core.preferences/diirt.ca.pure.java=true
org.csstudio.diirt.util.core.preferences/diirt.ca.repeater.port=5065
org.csstudio.diirt.util.core.preferences/diirt.ca.server.port=5064
org.csstudio.diirt.util.core.preferences/diirt.ca.value.rtyp.monitor=false
org.csstudio.diirt.util.core.preferences/diirt.ca.variable.length.array=auto
org.csstudio.diirt.util.core.preferences/diirt.datasource.default=ca
org.csstudio.diirt.util.core.preferences/diirt.datasource.delimiter=\://

# _default_.diirt.*... does not work...
#org.csstudio.diirt.util.core.preferences/_default_.diirt.ca.auto.addr.list=true
#org.csstudio.diirt.util.core.preferences/_default_.diirt.ca.dbe.property.supported=false

# Data Browser 2
# Removal of these settings results in empty defaults
# URLs to suggest in the "Archives" view
#org.csstudio.trends.databrowser2/archives=Archiver Appliance|0|pbraw\://jkjarchier-ap.mr.jkcont\:17668/retrieval*CSS-Archiver|1|jdbc\:postgresql\://jkjrdb-css.mr.jkcont\:5432/archive

# JLAN only
org.csstudio.trends.databrowser2/archives=Archiver Appliance|1|pbraw\://www-cont.j-parc.jp/retrieval
org.csstudio.trends.databrowser2/urls=pbraw\://www-cont.j-parc.jp/retrieval|Archiver Appliance
org.csstudio.trends.databrowser2/use_default_archives=true

#
org.csstudio.trends.databrowser2/archive_rescale=NONE
org.csstudio.trends.databrowser2/line_width=2
org.csstudio.trends.databrowser2/update_period=30
org.csstudio.trends.databrowser2/scroll_step=30
org.csstudio.trends.databrowser2/plot_bins=800

# setting user and password does not work...
org.csstudio.archive.rdb/user=report
org.csstudio.archive.rdb/password=\$report

org.csstudio.archive.rdb/schema=
#org.csstudio.archive.rdb/user_array_blob=false
org.csstudio.archive.reader.rdb/use_stored_procedure=public.get_browser_data

# Comment out to disable array BLOB
#org.csstudio.archive.rdb/use_array_blob=false

# Default settings OPI Builder
# Final product can override in its plugin_preferences.ini
org.csstudio.opibuilder/color_file=http://www-cont.j-parc.jp/jkpublic-RO/cont/CSS-Workspaces/Default/J-PARC/color.def
org.csstudio.opibuilder/font_file=http://www-cont.j-parc.jp/jkpublic-RO/cont/CSS-Workspaces/Default/J-PARC/font.def
org.csstudio.opibuilder/top_opis=http://www-cont.j-parc.jp/jkpublic-RO/cont/CSS-Workspaces/Default/J-PARC/widgets/launcher.opi, "Alias\=J-PARC Accelerators"
org.csstudio.opibuilder/schema_opi=http://www-cont.j-parc.jp/jkpublic-RO/cont/CSS-Workspaces/Default/J-PARC/widgets/schema.opi
#
org.csstudio.opibuilder/opi_gui_refresh_cycle=40

# Default settings for Display Builder
# Make top displays empty. Are there any way to disable top displays?
org.csstudio.display.builder.rcp/top_displays=

#
org.eclipse.core.resources/refresh.enabled=true
org.eclipse.core.resources/refresh.lightweight.enabled=true

# it seems that following item is not working...
#org.eclipse.core.runtime/line.separator="\n"

# disable auto-update
org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=false

#
org.eclipse.e4.ui.css.swt.theme/themeid=org.eclipse.e4.ui.css.theme.e4_classic

org.eclipse.e4.ui.workbench.renderers.swt/enableMRU=true

# end
