Changeset 641


Ignore:
Timestamp:
Mar 28, 2008, 2:55:23 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

References #103.
Added "About" information to xml file and a minor fix to synchronize with latest core changes.

Location:
extensions/net.sf.basedb.examples/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml

    r636 r641  
    11<?xml version="1.0" encoding="UTF-8" ?>
    22<extensions xmlns="http://base.thep.lu.se/extensions.xsd">
     3  <about>
     4    <name>Extensions example package</name>
     5    <description>
     6      This package contains several simple example extensions.
     7      Most of them are variants of the well-known "Hello world"
     8      code example.
     9    </description>
     10    <version>1.0</version>
     11    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url>
     12  </about>
    313  <extension
    414    id="net.sf.basedb.clients.web.menu.extensions.helloworld"
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/HelloWorldFactory.java

    r636 r641  
    1616{
    1717
    18   private MenuItemBean[] helloWorld;
     18  private MenuItemAction[] helloWorld;
    1919
    2020  // A public, no-argument constructor is required
    2121  public HelloWorldFactory()
    2222  {
    23     helloWorld = new MenuItemBean[1];
     23    helloWorld = new MenuItemAction[1];
    2424  }
    2525   
     
    3939    if (helloWorld[0] == null)
    4040    {
    41       helloWorld[0] = new MenuItemBean();
    42       helloWorld[0].setTitle("Hello factory world!");
    43       // TODO - implement jspContext.getRoot() or something similar
    44       helloWorld[0].setIcon("/extensions" + "/images/info.gif");
    45       helloWorld[0].setOnClick("alert('Hello factory world!')");
     41      MenuItemBean bean = new MenuItemBean();
     42      bean.setTitle("Hello factory world!");
     43      bean.setIcon(jspContext.getRoot() + "/images/info.gif");
     44      bean.setOnClick("alert('Hello factory world!')");
     45      helloWorld[0] = bean;
    4646    }
    4747    return helloWorld;
Note: See TracChangeset for help on using the changeset viewer.