Can't generate code from class diagram

I have installed Studio Enterprise 8. I tried to create a class, but when I right-clicked on a class, there was no "Generate Code" on the contextual menu.
I've tried the Help guide as pasted below. Would appreciate anybody's help. Thanks.
To generate code:
In the Projects window or in a diagram, right-click the element or elements for which you want to generate code.
In the Projects window, this code generation function is supported for entire UML projects and for individual diagram elements.
On the contextual menu, choose Generate Code. The IDE generates source code for all of the target items and displays the code in the Source Editor.

Thanks, but I still have problem.
File / New Project
UML / Java Platform Model
Name: UMLTest Location: D:\UML Unchecked Generate Code
The UMLTest Project appears in the Project Window
--- So far so good
File / New Project
General / Java Application
--- There is no General category
Under Category: Samples, Standard, UML, Web
Under Samples, there is general, but project = Anagram Game.
I still can't create a Java application from scratch.
Using Web and Standard, I must provide ANT

Similar Messages

  • Can anyone tell me the class diagrams of a simple java notepad

    hi,
    Can anyone tell me the class diagrams of a simple java notepad.
    i'm a very beginner in UML.
    thanks in advance.
    Moazzam

    Don't worry too much about that. Figure out what it needs to do. Then grab JUnit and start writing tests & code.
    On xprogramming.com there is a series of articles developing a notepad type app in C#. That might be of some help.
    Dave

  • How can I generate email from report 6i.

    Dear Sir,
    When I click on e-mail button on report 6i (Win2k User) Generate following error:-
    Rep-4203 error occurred while a mail message.
    Rep-4220 There is a problem with the email subsystem.
    When I generate report from administrator then email generated no error occurred.
    Please help me how can I generate email from report 6i without administrator rights.
    Thanks and Regards
    Brij

    You can try this at form that calling your report;
    add_parameter(p_id,'DESFORMAT','HTML');
    hope this helps...
    defne
    ps: raporu cagiridigin form program units'ine, bu add_parameter'i eklersen, HTML olarak raporunu emailleyebilirsin...

  • Error while deploying generated code from sup to iPhone

    Hi
    I generated the code using Sap unwired platform for Objective-c.  I followed the steps specified in the below link
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01213.0153/doc/html/mqu1264543829068.html
    for deploying the generated code into iPhone simulator, i am getting the following error
    Undefined symbols:
      "_OBJC_CLASS_$_SUPEntityAlias", referenced from:
          objc-class-ref-to-SUPEntityAlias in SUP101_Customer.o
          objc-class-ref-to-SUPEntityAlias in SUP101_LogRecordImpl.o
    Can any one help me in this
    Edited by: KiranSanka on Dec 2, 2010 1:18 PM
    Edited by: KiranSanka on Dec 3, 2010 7:26 AM

    Hi
    While compiling did you get a warning? something along the line "missing required architecture i386 in fileu201D? if so refer this link http://stackoverflow.com/questions/1456185/build-error-missing-required-architecture-i386-in-file
    Regards
    Jinesh

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • Generate code from XMI files

    Hi,
    I want to generate Java code from XMI files. Is JMI the right way? If so: I found the JMI specification but not the classes. Can anybody tell me where they are hidden?
    Thanks in advance for your help.
    Phil

    you can find some info about a project (MDR) that uses jmi here:
    http://mdr.netbeans.org/architecture.html#jmi
    http://mdr.netbeans.org/docs.html
    As I understand it, jmi provides a standard way to generate java interfaces to MOF models. So code generation focused on jmi is usually only interesting for metamodel repository developers.
    If you like the idea of JMI, you could build on top of a tool that is JMI compliant. You could extend MDR. Or you could extend a template based tool like AndroMDA,http://www.andromda.org, which itself is built on MDR.
    Or, you could forget MOF and JMI and work with Eclipse EMF which provides java generation capabilities. http://www.eclipse.org/emf/
    If you want to generate from xmi directly then you are looking at building your own tool using DOM or XSLT etc. but it would be better to read the xmi into a metamodelling tool/repository and use the services they provide.
    Anyway you need to get your xmi from somewhere, and that source will restrict your choice for code generation.
    You could use/buy a tool like Together, but it doesn't look like you are interested in that.

  • How to create OO Database from class diagrams?

    I am new to use JDeveloper. I create UML class diagrams (using Entity Object) in JDeveloper, which has inheritances and associations, and then choose Create Database Objects... try to create oo database, but it only create some tables in the database, not any object types ... .
    What do I missed? Or I have to create those oo database objects manually?
    Thanks.

    If the Location of the datafiles is similar to that of source database then you can consider below steps
    Create Oracle Service using oradim
    set ORACLE_SID=NEWDB
    oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
    Connect to the RMAN
    rman>rman target /
    restore spfile/pfile and control file from backup
    rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
    rman>startup nomount pfile='localtion of the initNEWDB.ora';
    rman>restore controlfile from 'file location of the controlfile Backuppiece';
    rman>alter database mount;
    Catalog the RMAN backuppiece of source database
    rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
    resotore & recover database
    rman>restore database;
    rman>recover database;
    open the database with reset logs
    rman>alter database open resetlogs;
    rman>create spfile from pfile;
    rman>shutdown immediate;
    rman>startup;
    ==================
    If you have access to source database then you can clone using below rman command:
    +rman target _<source database>_ auxiliary _<new database>_+
    rman>duplication target database to _<your new database name>_;
    ==========
    If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process.

  • Can we generate code for Oracle 10g Release2

    hi,
    We have ODM Java Code Generator for model build using Oracle 10g Release1. Do we have ODM Code genrator for model build on Oracle10g Release2 using Oracle Data Miner 10.2. What version of JDeveloper will be required.

    Hi,
    We will be releasing a code generator in the early Summer.
    Instead of Java though, we will be generating PL/SQL packages.
    You will still be able to invoke the package via JDBC so it does not exclude Java integration.
    You will be able to generate the code from either JDeveloper (current release), SQLDeveloper or ODMr.
    More info on this as we get closer to our release.
    Thanks, Mark

  • Can't generate PDF from xdp and XML

    Hello,
    I'm new to livecycle and flashbuilder.
    I assigned as a task to send to a  livecycle server a xdp template and a XML file with the data in order to create the pdf.
    So far, I created a class with two methods that returns as a BLOB the strings of a xdp template and the XML data to populate the template.
    On the main application I'm calling the generatePDFOutput method from the OutputService and as far as I know I'm supposed to get a Blob which I can manipulate to save it as a PDF.
    What could be my error? or how should I approach this problem? I came here since I can't find some document that shows how to create pdf from a flex app using livecycle...
    I appreaciate your help.
    I attach below the code of the main class
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="initializeChannelSet();">
        <fx:Script>
            <![CDATA[
                import flash.sampler.Sample;
                import mx.messaging.ChannelSet;
                import mx.messaging.channels.AMFChannel;
                import mx.rpc.CallResponder;
                import mx.rpc.events.ResultEvent;
                import services.outputservice.OutputService;
                import valueObjects.BLOB;
                import valueObjects.OutputResult;
                import valueObjects.PDFOutputOptionsSpec;
                import valueObjects.RenderOptionsSpec;
                private var parentResourcePath:String="/";
                private var serverPort:String="192.168.3.46:8080";
                private function initializeChannelSet():void{
                    var cs:ChannelSet= new ChannelSet();
                    cs.addChannel(new AMFChannel("remoting-amf", "http://"+serverPort+"/remoting/messagebroker/amf"));
                    outputService.setCredentials("administrator","password");
                    outputService.channelSet=cs;
                protected function btn_clickHandler(event:MouseEvent):void
                var pdf:OutputService= new OutputService();
                var x:TestPDF= new TestPDF();
                var wsCall:CallResponder= new CallResponder();
                var out:PDFOutputOptionsSpec= new PDFOutputOptionsSpec();
                out.fileURI="D:\PDF_Output\test.pdf";
                var render:RenderOptionsSpec= new RenderOptionsSpec();
                wsCall.token=pdf.generatePDFOutput("PDF","Form.xdp","D:\\PDF_Output",out,render,TestPDF.D ata());
                var res:BLOB= wsCall.lastResult as BLOB;
                var result:ByteArray= new ByteArray();
                    result=res as ByteArray;
                var a:Number=2;
                protected function outputService_resultHandler(event:ResultEvent):void
                    // TODO Auto-generated method stub
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <mx:RemoteObject id="outputService" destination="OutputService" result="outputService_resultHandler(event);"/>
        </fx:Declarations>
        <s:Button id="btn" x="90" y="141" label="Button" click="btn_clickHandler(event)"/>
    </s:Application>

    build.xml file for Hibernate:
    <?xml version="1.0"?>
    <project name="Hibernate"
    default="schemaGenerator" basedir="C:\Hibernate">
    <property name="src.dir" value="src"/>
    <property name="classes.dir" value="classes"/>
    <property name="hibernate" value="hibernate-2.1"/>
    <property name="hibernate.mappings" value="mappings"/>
    <property name="jdbc" value="C:\oracle\product\10.1.0\Db_1\jdbc"/>
    <property name="hibernate.extensions" value="tools"/>
    <property name="hibernate.properties" value="properties"/>
    <path id="project.class.path">
    <pathelement location="${classes.dir}" />
    <fileset dir="${hibernate}">
    <include name="hibernate2.jar"/>
    </fileset>
    <fileset dir="${hibernate}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${hibernate.extensions}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${hibernate.extensions}">
    <include name="hibernate-tools.jar"/>
    </fileset>
    <fileset dir="${jdbc}/lib">
    <include name="classes12.jar"/>
    </fileset>
    </path>
    <target name="init"> <mkdir dir="${src.dir}"/>
    <mkdir dir="${classes.dir}"/>
    </target>
    <taskdef name="javaGen"
    classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
    classpathref="project.class.path"/>
    <target name="javaGenerator" depends="init">
    <javaGen output="${src.dir}">
    <fileset dir="${hibernate.mappings}">
    <include name="Catalog.hbm.xml"/>
    </fileset>
    </javaGen>
    </target>
    <target name="compile" depends="javaGenerator">
    <javac srcdir="${src.dir}"
    destdir="${classes.dir}">
    <classpath refid="project.class.path"/></javac>
    </target>
    <taskdef name="schemaGen"
    classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
    classpathref="project.class.path"/>
    <target name="schemaGenerator" depends="compile">
    <schemaGen properties="${hibernate.properties}/hibernate.properties" quiet="no">
    <fileset
    dir="${hibernate.mappings}">
    <include name="Catalog.hbm.xml"/>
    </fileset>
    </schemaGen>
    </target>
    </project>

  • Can we generate  shares from a one dimensional image

    hi friends,
    we are doing a project on image processing.....i had taken an image and divided into 8 by 8 block and applied DCT
    on the block resulting in two dimensional coefficients...using zig zag transformation i converted into 1-dimensional coefficients...now,after the encoding procedures i need to generate two shares....can anyone help me with this?

    i just used the default DEPT table ...n used the code under when_button_pressed
    DECLARE
    CURSOR C1 IS
    SELECT DEPTNO,DNAME,LOC
    FROM DEPT;
    filename VARCHAR2(256);
    ConvID PLS_INTEGER;
    AppID PLS_INTEGER;
    Buffer VARCHAR2(5);
    I NUMBER(3):=1;
    J NUMBER(5):=1;
    V_NUMBER VARCHAR2(5);
    LEN NUMBER(5);
    DNAME VARCHAR2(14);
    LOC VARCHAR2(13);
    OUT_FILE TEXT_IO.FILE_TYPE;
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'EXCEL Files (*.XLS)|*.XLS|',DIALOG_TYPE=>2);
    OUT_FILE:=TEXT_IO.FOPEN(filename,'W');
    TEXT_IO.FCLOSE(OUT_FILE);
    AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\Office11\EXCEL.EXE'||' '||filename,DDE.APP_MODE_MINIMIZED);
    --DDE.APP_FOCUS(APPID);
    ConvID := DDE.Initiate('EXCEL.EXE',filename);
    FOR R IN C1
    LOOP
    DDE.POKE(ConvID,'R'||J||'C1',R.DEPTNO,DDE.CF_TEXT,1000);
    DDE.POKE(ConvID,'R'||J||'C2',R.DNAME,DDE.CF_TEXT,1000);
    DDE.POKE(ConvID,'R'||J||'C3',R.LOC,DDE.CF_TEXT,1000);
    J:=J+1;
    END LOOP;
    TEXT_IO.FCLOSE(OUT_FILE);
    EXCEPTION
    WHEN DDE.DDE_APP_NOT_FOUND THEN
    MESSAGE('APP NOT FOUND');
    WHEN DDE.DDE_APP_FAILURE THEN
    MESSAGE('APP FAILED');
    WHEN DDE.DDE_INIT_FAILED THEN
    MESSAGE('INIT FAILED');
    WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN
    MESSAGE('CLIENT FAILED TO ESTABLISH CONVERSATION');
    WHEN OTHERS THEN
    MESSAGE(SQLERRM);
    END;
    Now when i press the button this is what i get...
    C:\Documents.xls cannot b found check the spelling of the file and file name location is correct
    C:\and.xls cannot b found check the spelling of the file and file name location is correct ''
    settings\administrator\My.xls cannot b found check the spelling of the file and file name location is correct

  • Can Papyrus generate UML from XML or XSD?

    I'm looking for a way to model an XML schema and I thought Papyrus would be able to help me. But now I'm not so sure, or at least I haven't found a way to do it yet.
    Is there some way in Eclipse (whether using Papyrus or something else, of course preferably free) to generate a UML representation of an XML schema?
    Thanks!

    Hi,
    You can use the EMF model importer to import a model from XSD and then
    export it to UML.
    Use the "File -> New -> Other..." menu action, take "EMF Generator
    Model" in the wizard, and choose XSD as the import source. When you
    have finished, you should end up in the editor for a *.genmodel
    resource. EMF will have created an *.ecore from your schema. The
    Generator menu has an option to export the model. Choose UML in this
    wizard and see what you get. You can initialize the Papyrus diagrams
    for the resulting *.uml resource if you like.
    HTH,
    Christian
    On 2015-07-22 20:27:16 +0000, Thom DeCarlo said:
    > I'm looking for a way to model an XML schema and I thought Papyrus
    > would be able to help me. But now I'm not so sure, or at least I
    > haven't found a way to do it yet.
    >
    > Is there some way in Eclipse (whether using Papyrus or something else,
    > of course preferably free) to generate a UML representation of an XML
    > schema?
    >
    > Thanks!

  • Can we generate forms from different locations on same account?

    We're thinking of subscribing for the unlimited forms plan. Would this plan allow us to generate forms (and receive reports) from various locations on the same account? Or would each location need its own account?
    Thanks, Meg

    Hi Meg;
    Depending on the roles each user needs to play, you could have one "Plus" membership that can have all of the "live" forms in it, that user could share forms and/or responses with the other users so they could collaborate in the editing and view responses and reports.  The permissions in the form (ability to use paid features) are based on the form author, so the "Free" level users could use the paid features in these forms that were shared by the one Plus membership.
    Here is some information on sharing forms: http://forums.adobe.com/docs/DOC-2462
    Also some good gneral Quick Start guides and How To's: https://www.acrobat.com/formscentral/en/library/how-to-make-create-survey-or-form.html
    In addition, if any of the free users were to create a form for the team they could export that form as a design file for the Plus member to import and then share.  Since the free user can only create one form, but have unlimited shared with them, and since the form rights are from the author the Free user wouldn't want to share the form, but instead export it so that when the Plus user imports it they are the author and when it is shared the form would have the Plus level features (I hope that made sense). 
    As far as organization there are no folders in FormsCentral at this time.
    Thanks,
    Josh

  • Can't generate thumnails from iPhoto videos in iMovie 11

    I opened iMovie 11 a little while ago and it asked if I wanted to generate thumnails Now or Later from the videos in iPhoto.  I clicked on the "Later" button.  I have been using iMovie for at least 5 years and have always clicked on the Now button as far as I can remember.
    But I had just remembered that I wanted to change the file names of my new videos in Aperture before generating the thumnails in iMovie, so I did that.  But when I went back to iMovie, there was no dialog box asking me if I wanted to generate the thumnails from the new videos or not.  I have closed iMovie, rebooted, and still there is no dialog box.  I can't find the option on the menu to generate the thumbnails.
    The videos are not gone, they still appear in both iPhoto and Aperture, but I want to edit them in iMovie.  I'm hoping there's a simple solution.
    Travis

    Ok I solved it myself.  I just made a 2 second video and imported it to Aperture, then when I opened iMovie again, it loaded the 2 second clip as well as all the previous new videos that it won't load before.

  • Moving code from class to stage

    I have this code in a class that retrieves todays date. How
    can I show the date in a textfield?
    Or can I modify the code and just put it in my scene so I
    won't have to call the class?

    You can put this on the timeline:
    var someBirthday:Date = new Date();
    trace(someBirthday.getDate());

  • Can exe's genrated from class files be decompiled??

    class files can be decompiled. If we genrate exe's from the class files, can those exe's be decompiled??

    Yes.

Maybe you are looking for