public class CoreProvider extends Provider
Provider.PortEntry| Modifier and Type | Field and Description |
|---|---|
static AbstractMenuAction |
ABOUT_ACTION
This Action performs the operations needed to open the About dialog, identifying and
describing the YAAC application.
|
static AbstractMenuAction |
CONFIGURE_ACTION
This Action performs the operations needed to open the expert-mode Configuration dialog.
|
static AbstractMenuAction |
EXIT_ACTION
This Action performs the operations needed to cleanly shut down YAAC and free up the
system resources it is using.
|
static java.lang.String[] |
PRE_LOCALIZED_FILE_LOAD_MENU
This menu tag hierachy covers the File->Load menu.
|
static java.lang.String[] |
TOP_MENU
The pre-localization hierarchy of sub-menu names for a menu at the top level, made available
for use by plugins creating new menus.
|
PROVIDER_API_VERSION| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAboutAttributions()
Specify attributions, credits/acknowledgements, and license references to be displayed in the
About dialog box.
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationPanels()
Get any panels needed by this Provider to provision or configure the services
offered by the Provider.
|
HttpServer |
getCoreWebServer()
Get the web server instance associated with the core services of YAAC.
|
Filter[] |
getFilters()
Get any filters to add to the main CumulativeBooleanAndFilter in the main class of YAAC.
|
javax.help.HelpSet |
getHelpSet()
Provide the base HelpSet for complete
online documentation.
|
java.lang.String |
getImageIconPath()
Return an icon image associated with this Provider.
|
static CoreProvider |
getInstance()
Get the core instance of Provider for YAAC.
|
AbstractMenuAction[] |
getMenuItems()
Get Actions to define new menu items from this Provider.
|
static ChangeSet[] |
getOSMChangeSetIds(boolean getBoth)
Get the local and remote OSM ChangeSet records for the versions of the OpenStreetMap data stored
locally and available on the tile server website.
|
Provider.PortEntry[] |
getPortConnectorTypes()
Get PortConnector drivers provided by this Provider.
|
static ChangeSet |
getServerOSMChangeset()
Query the author's website for the currently available changeset of the pre-imported OpenStreetMap tile files.
|
java.lang.String |
getUserAgent()
Return a standard string for identifying this installation of YAAC to a web server in the
User-Agent HTTP header property.
|
boolean |
hasRXTX()
Report whether this plugin was able to load the RXTX native library for accessing serial ports.
|
static void |
logCurrentStateToPrefs(java.util.prefs.Preferences prefs)
Checkpoint a description of YAAC's current execution environment into the Preferences
so that the information can be saved in a configuration save file.
|
void |
runInitializersAfter()
Execute this function after calling all of the other functions of the
CoreProvider.
|
boolean |
runInitializersBefore(int providerApiVersion)
Execute this function before calling any of the other functions of the
Provider.
|
findHelpSet, getAuthor, getInfo, getName, getVersionpublic static final java.lang.String[] TOP_MENU
public static final AbstractMenuAction EXIT_ACTION
public static final java.lang.String[] PRE_LOCALIZED_FILE_LOAD_MENU
public static final AbstractMenuAction CONFIGURE_ACTION
public static final AbstractMenuAction ABOUT_ACTION
public static CoreProvider getInstance()
public Provider.PortEntry[] getPortConnectorTypes()
getPortConnectorTypes in class Providerpublic java.util.Map<java.lang.String,java.lang.String> getConfigurationPanels()
getConfigurationPanels in class ProviderYAAC.getMsg(String),
YAAC.getMsg(String, String),
YAAC.getMsgBundle(),
YAAC.getMsgBundle(String)public Filter[] getFilters()
getFilters in class Providerpublic static ChangeSet[] getOSMChangeSetIds(boolean getBoth)
getBoth - boolean true if both local and server changesets should be obtained, false if only localpublic static ChangeSet getServerOSMChangeset()
public AbstractMenuAction[] getMenuItems()
getMenuItems in class ProviderAbstractMenuAction,
AbstractPopupMenuActionpublic static void logCurrentStateToPrefs(java.util.prefs.Preferences prefs)
prefs - Preferences node to write the descriptive information topublic java.lang.String[] getAboutAttributions()
getAboutAttributions in class Providerpublic javax.help.HelpSet getHelpSet()
getHelpSet in class Providerpublic java.lang.String getImageIconPath()
getImageIconPath in class Providerpublic boolean runInitializersBefore(int providerApiVersion)
runInitializersBefore in class ProviderproviderApiVersion - the int version of the Provider API supported by
the build of YAAC trying to load this pluginpublic void runInitializersAfter()
runInitializersAfter in class Providerpublic HttpServer getCoreWebServer()
public boolean hasRXTX()
getPortConnectorTypes()public java.lang.String getUserAgent()