Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Case Study: Adding "-> Logbook..." to CSS Data Browser

...

  1. Decide on the level of integration
    • I decided to use the "very low level" of integration, because

...

    • this seems

...

...

...

  1. Check out the CSS source code

      ...

        1. Install Mercurial locally

      ...

          • Type "make local" in the top directory
          • Install the MercurialEclipse plugin, too, but don't use it as such (need

      ...

          • usage tips from Kay & Co.)
        1. Clone the CSS repository

      ...

      ...

          • (no account/password)
        1. Increase JVM memory for Eclipse
          • Edit eclipse.ini in $ECLIPSE_HOME (1024 MB is what I ended up with)
        2. Import the necessary CSS plugins as Eclipse projects (by trail & error, need clarification from Kay & Co.)
          • The minimum list of plugins to develop with DataBrowser

      ...

          • :
            Image Modified
      1. Checkout the HLA

      ...

      1. source code (from CVS)
      2. Create the edu.stanford.slac.

      ...

      1. logbook plugin

      ...

        • Copy the HLA Save2Logbook source

      ...

        • code to edu.stanford.slac.logbook
        • Configure the plugin to be used by other plugins (the Eclipse help is good, plus I simply remembered some of it)
      1. Add to the DataBrowser plugin the dependency on

      ...

      1. edu.stanford.slac.

      ...

      1. logbook
        • Eclipse bug: If plugins panel is empty, start typing the plugin name

      ...

      1. Implement the new features in DataBrowser and

      ...

      1. edu.stanford.slac.logbook plugins
        • Find the class in the DataBrowser that handles buttons (Plot)
        • Create a JFace button; set size, label, and background color; add it to the proper JFace figure
        • Add a JFace ActionListener that generates

      ...

        • an Eclipse (Graphics) image from XYGraph
        • Add a method

      ...

        • to edu.stanford.slac.logbook that saves an Eclipse image as a JPEG file and creates the logbook XML files as well as directories
        • Call the new edu.stanford.slac.logbook method from the new JFace ActionListener
      1. Test the save2logbook feature by running DataBrowser as an Eclipse application within Eclipse
      2. Create a SLAC DataBrowser product configuration (the Eclipse help is no good; I needed to understand the SNS CSS product configuration)
        • Select CSS Data Browser as the actual application
        • Modify the CSS splash image
      3. Export the SLAC DataBrowser product to

      ...

      1. a local directory and distribute it from there
      2. When launching the SLAC DataBrowser for the first time, configure the EPICS and DataBrowser

      ...

      1. preferences with correct SLAC settings

      Major To-Dos

      • Headless build
      • "Workspace in use" issues

      ...

      How to develop with CSS

      How to contribute to CSS

      Links