Topic
5 replies Latest Post - ‏2008-05-09T19:08:48Z by SystemAdmin
SystemAdmin
SystemAdmin
11979 Posts
ACCEPTED ANSWER

Pinned topic LPEX Plug-in WDSC7 - iSeries

‏2008-05-05T21:10:54Z |
Hi,

I am trying to develop a plugin for the LPEX editor for iSeries. Every time I run my plug-in it tells me my class is not found. It seems simple but it just won't find the class. Any help would be appreciated. I've attached my files.

Thanks
plugin.xml

build.properties

output.. = bin/

source.. = src/

bin.includes = META-INF/,\

.,\

plugin.xml

Manifest

Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: LpexExtensions Plug-in

Bundle-SymbolicName: com.mycompany.lpexExtensions;singleton:=true

Bundle-Version: 1.0.0

Bundle-Activator: com.mycompany.lpexextensions.Activator

Bundle-Vendor: MYCOMPANY

Bundle-Localization: plugin

Require-Bundle: org.eclipse.ui,

org.eclipse.core.runtime,

com.ibm.lpex

Eclipse-LazyStart: true

Export-Package: com.mycompany.lpexextensions
Updated on 2008-05-09T19:08:48Z at 2008-05-09T19:08:48Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    11979 Posts
    ACCEPTED ANSWER

    Re: LPEX Plug-in WDSC7 - iSeries

    ‏2008-05-06T13:37:44Z  in response to SystemAdmin
    1.- Two not-that-old articles with step-by-step instructions for
    creating plug-ins that extend LPEX:

    "Creating user profiles for the LPEX editor":
    http://www.ibm.com/developerworks/websphere/library/techarticles/0607_casey/0607_casey.html
    "Extending the LPEX Editor in WDz"
    http://www.ibm.com/developerworks/websphere/library/techarticles/0605_casey/0605_casey.html

    A plug-in with LPEX extensions must define the "preload" extension
    point, for which a class that implements com.ibm.lpex.alef.LpexPreload
    is provided. Otherwise, the LPEX plug-in won't be able to load any
    actions / commands / etc. from this plug-in.

    dmonti wrote:
    Hi,

    I am trying to develop a plugin for the LPEX editor for iSeries. Every time I run my plug-in it tells me my class is not found. It seems simple but it just won't find the class. Any help would be appreciated. I've attached my files.
    • SystemAdmin
      SystemAdmin
      11979 Posts
      ACCEPTED ANSWER

      Re: LPEX Plug-in WDSC7 - iSeries

      ‏2008-05-06T20:15:58Z  in response to SystemAdmin
      Thank you especially for the link to the User Profile example. I was able to get it to work. My mistake was that in some places I was using com.mycompany. lpexextensions and others using com.mycompany. lpexExtensions

      I have another question. When using methods like LpexView.doAction and LpexView.doDefaultCommand, how do you know what the valid command strings are? Is there a guide or something?

      For example in the below code, where would you find a list of action Ids or things you could 'set'?

      lpexView.doAction(view.actionId("contextEnd"));

      lpexView.doDefaultCommand("set default.updateProfile.baseProfile ispf");

      Thanks
      • SystemAdmin
        SystemAdmin
        11979 Posts
        ACCEPTED ANSWER

        Re: LPEX Plug-in WDSC7 - iSeries

        ‏2008-05-07T13:05:16Z  in response to SystemAdmin
        If you go to the LPEX command line (press Esc) and enter

        help

        (or ?) you'll see references to the editor actions, commands, and
        parameters. They can all be used programmatically.

        You may also want to take a look of the code samples that come with
        LPEX. Enter

        ?samples

        from an LPEX command line.

        Also, the following newsgroup

        news://news.gmane.org/gmane.editors.websphere.iseries

        is much more active on subjects of WDSC for iSeries, and LPEX.

        dmonti wrote:
        I have another question. When using methods like LpexView.doAction and LpexView.doDefaultCommand, how do you know what the valid command strings are? Is there a guide or something?

        For example in the below code, where would you find a list of action Ids or things you could 'set'?

        lpexView.doAction(view.actionId("contextEnd"));

        lpexView.doDefaultCommand("set default.updateProfile.baseProfile ispf");
        • SystemAdmin
          SystemAdmin
          11979 Posts
          ACCEPTED ANSWER

          Re: LPEX Plug-in WDSC7 - iSeries

          ‏2008-05-08T14:02:54Z  in response to SystemAdmin
          Thanks again for the all of the information! I have been looking through the help and samples, but haven't found an example of something I want to do.

          What I would like to do is define my own prefix command(such as seu's CC). I would like to use seu prefix commands but also define a few of my own.

          Is this possible?

          Thanks
          • SystemAdmin
            SystemAdmin
            11979 Posts
            ACCEPTED ANSWER

            Re: LPEX Plug-in WDSC7 - iSeries

            ‏2008-05-09T19:08:48Z  in response to SystemAdmin
            Yes, it is possible. Actually, both WDSC and WDz extend the set of SEU
            and ISPF (respectively) prefix commands that comes with the base LPEX
            editor.

            You'll have to redefine the "processPrefix" command. Something along
            these lines:

            1.- If the command's argument is not "seu", call the previously defined
            LpexCommand, if any, or the default editor "processPrefix" command, with
            the same argument.

            2.- Scan through all the lines, process the prefix commands that you
            yourself define, then clear those prefix areas. There are several
            editor parameters for processing the prefix area, such as "prefixText"
            to read or clear the prefix commands typed in by the user.

            3.- Finally, call the previously defined LpexCommand, if any, or the
            default editor "processPrefix" command, to process the prefix commands
            left (e.g., the base SEU ones that you ignored).

            dmonti wrote:
            Thanks again for the all of the information! I have been looking through the help and samples, but haven't found an example of something I want to do.

            What I would like to do is define my own prefix command(such as seu's CC). I would like to use seu prefix commands but also define a few of my own.

            Is this possible?