Setting Preferences

This topic describes how to modify Mobile Development preferences. Before creating mobile applications, you can set preferences to determine log message levels and editor settings for creating and editing templates and mobile applications.

  1. Select Window | Preferences from the main menu bar.

    The Preferences dialog box appears.

  2. Expand or select Sybase, Inc, | Mobile Development in the left pane. If you selected Mobile Development, you can define certain preferences of the mobile development environment, described in the tables below. Otherwise, select either Logging or Editors.The tables below explain the preferences for each.

    Mobile Development Preferences screen

    FieldDescription
    Use System Background Color in EditorSelect this option to use the system background color in the editor pages. If unselected, white is the background color.
    Drag and Drop
    • Click Overwrite Existing Entities to maintain the same name of a mobile application that you have dragged and dropped.

    • Click Scan Drag Object Before Drop to provide feedback as to whether or not the interface to which you are dropping the object accepts it.

    Chunking

    Chunking allows you to group a large number of items (templates, mobile applications, and so on) into groups of sub-folders when the Chunk Size is reached. Select the Chunking to enable chunking and enter a Chunk Size that establishes the maximum number of items (templates, mobile applications, and so on) before creating a sub-folder.

    The logging view allows you to filter not only log levels but classes and packages. You can set a logging level to "error." If errors appear, you can then change the logging level to debug. When an error occurs, you can get the debug information from the log file.

    Logging Preferences screen

    FieldDescription
    Log Levels

    The various levels of logging are:

    • Debug - a detailed tracing message with diagnostic messages.

    • Info - a message level for informational messages.

    • Warn - a potential problem.

    • Error - an unexpected error. This may be fatal to the operation, but it cannot be determined since it is unexpected.

    • Fatal - a serious failure.

    Clear All Root Log Receivers

    Some plug-ins add appenders to the root logger, which sends Unwired Accelerator messages to not only the plug-in, but also the appender. This doubles the number of messages that are logged. Click this check box to clear out the log Receivers.

    Console

    Select Enable Console Logging to log messages in the Eclipse Console view.

    Eclipse

    Select Enable Eclipse Logging to receive messages in the Eclipse Error Log view.

    Mobile Development View Log

    The Mobile Development View Log section allows you to define the following logging preferences:

    • Enable View Logging - enable sending of log messages to the Mobile Development Log view.

    • Log Level - select the logging level from the drop-down list.

    • View Text field buffer size - buffer size (in characters) of the text field.

    • Displayed tab width - establish the tab width within the log.

    • Filters - use the Exclude and Include buttons to define various Java packages to either include or exclude from logging.

    • Message Color - define a different color to represent each message log level by clicking the message type, then selecting the color from the palette.

    File

    The File section allows you to direct logging information to a file by defining the following preferences:

    • Enable File Logging - direct logging to a file.

    • Log Level - select the logging level from the drop-down list.

    • Log File - enter a name of the file (or select Browse) to identify the log file.

    • Rollover Frequency - select the frequency that a new log file is generated from the drop-down list. When the rollover frequency time is reached, the current file is appended with a timestamp.

    • Clear Log File on Startup - select this option to clear the log file whenever you restart Sybase WorkSpace.

    The Editor Preferences Screen allows you to define the editor to use when creating or modifying mobile applications and templates. It also allows you to choose which pages to display during the mobile application development process.

    Editor Preferences screen

    FieldDescription
    XML Editor Type

    Choose the XML editor from the drop-down list to use when editing source pages. By default the XML editor is the one provided in Sybase WorkSpace.

    Mobile Applications

    Determine the editor to use when editing mobile applications by selecting it from the Open Source Panel With drop-down list.

    Select which Mobile Application Pages to view during the development process by selecting the check box next to each page you want to display.

    In the Advanced Configuration section, select Show Authentication in the Web Service Element, if you want to display the authentication options available when defining a Web Service element.

    Templates

    Determine the editors to use when editing the various templates by selecting them from the drop-down list next to each template.

    Select which Template Pages to view during the development process by selecting the check box next to each page you want to display.

  3. Click OK.

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com