facebook

XDoclet and syntax completion – Orion / oc4j

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #204203 Reply

    gslonim
    Member

    Have myeclipse workbench 030700RC2

    Trying to replace XDoclet weblogic-specific tags with oc4j tags. Found that @weblogic.* XDoclet assists works fine where @orion.* or @oc4j.* code completion DOES NOT WORK.

    1. Tried downloading XDoclet v 1.2 and replacing the 1.2b jars in
    $MYECLIPSE_HOME\eclipse\plugins\org.jboss.ide.eclipse.xdoclet.core_3.6.200\
    directory with 1.2 that came with XDoclet install and refreshing from the preferences. No avail.
    Please help understand how we can enable XDoclet syntax completion for orion and oc4j. Thanks

    #204205 Reply

    Scott Anderson
    Participant

    Have you added the Orion and OC4J tasks to your ejbdoclet for the project?

    #204213 Reply

    gslonim
    Member

    Scott,
    We are not building these projects using built-in-eclipse XDoclet build support. We are using ExternalToolBuilder where Maven is the tool. All XDoclet-related activity is being executed from Maven. All we want from Workbench is to do syntax completion. Please correct me if I am wrong but building using XDoclet support and syntax completion when typing are independent, aren’t they? We do not have anything defined under Project / Properties / MyEclipse-XDoclet and syntax completion for Weblogic works just fine. Almost any syntax completion works, @ejb, @jmx, @jboss, you name it, but not what we need. As a matter of fact as I am typing this, I went and checked this, and the only thing the syntax completion offers after either @orion. or @oc4j. is “bean” and nothing further. Please advise.
    –Greg

    #204214 Reply

    Scott Anderson
    Participant

    Greg,

    Looking at the xtags.xml file in the xdoclet-orion-module-1.2.jar file in the xdoclet core plugin there should be three tags for orion completion: orion.bean for all EJB’s at the class level, orion.field-persistence-manager-property for entity bean methods, and orion.persistence for entity bean methods. No other tags are defined. Are you seeing all three, or is the problem something else?

    #251774 Reply

    ahocking
    Member

    I know this is an old thread, but has this been resolved. I am running into the same issue with the latest version of MyEclipse (20060309-4.1.1-GA).

    Specifically, after typing “@oc4j.” and pressing <ctrl>-space, I see a red “ERROR” down in the lower left of the status bar. If I complete the tag “@oc4j.bean” it shows a yellow invalid tag warning marker. Don’t see anything in .metadata/.log. Is there anywhere else it would show the error info?

    The project is a new (dummy) MyEclipse EJB project with no parent builder project or anything, using the standard J2EE 1.4 Library Container libraries. Simple session bean. I see lots of tag definitions in xdoclet-oracle-module-1.2.3.jar xtags.xml file.

    This is a clean install of Eclipse 3.1 and MyEclipse 4.1.1 in a separate config/plugins dir, installed manually.

    *edit*
    Ok, so the invalid tag marker from eclipse was only because I had not properly filled out the tag properties. This issue is strictly with code assist code completion

    #251777 Reply

    Riyad Kalla
    Member

    Can you give me a full code snippet of where you are trying to autocomplete that tag? The XDoclet support (we will improve it soon) is actually semi-intelligent in that you can’t blindly markup anything with any XDoclet tag and it actually depends on what you are trying to markup with what kind of tags you will get.

    #255973 Reply

    crassy303
    Member

    @support-scott wrote:

    Have you added the Orion and OC4J tasks to your ejbdoclet for the project?

    Hello!
    Hope someone checks this old thread… How do I add the tasks to ejbdoclet? And how do I make Eclipse recognize @oc4j for code completion? Please help!

    #255978 Reply

    Riyad Kalla
    Member

    From that screenshot it doesn’t look like you are using MyEclipse. Chances are you have WTP installed, if that’s the case please ask your question on the WTP mailing lists for the most accurate answer.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: XDoclet and syntax completion – Orion / oc4j

You must be logged in to post in the forum log in