JDEV Extensions

I am new to JDEV Extensions. We are working on a project that requires to create a GUI designe time component where the user will be able to select items from the component gallery (custom items) and then drag it to the canvas. They should be able to connect the components using the connection links like in the BPEL designer or simple like the class diagram one.
We are able to create new components in the component gallery, however, there is no example to make it draggable to the canvas. Also is there any example on how to build the connecting tool?
Thank you.

Shay,
Sure, I have posted it in the internal oracleide message list.
Thank you,
Chida

Similar Messages

  • JDev extension SDK: How to refresh navigator via API?

    Hi,
    I'm developing a jdev extension, in which I create some files in the project source folder manually (in file system).
    These changes are not displayed in the projects navigator tree (of course). Is it possible to refresh the navigator view via SDK API, same like pressing the blue refresh-button on top of the navigation area?
    thx,
    Marcel

    Hi Harry,
    Sorry for the delayed response. I'm assuming we are on opposite sides of the world. :-)
    I looked deeper into the method that you pointed out and I've posted an internal question to some of the developers about how to get that TNode. I tried a couple of things myself, but kept running into a dead end.
    You can't get a TNode from the workspace. It has to come from the NavigatorWindow class.
    The Workspace and the NavigatorWindow are two completely different things. One is a representation of the jws and jpr files, and the other is the representation of the filesystem.
    I'm not quite sure that this will really do what you are looking for anyway. While it may refresh the Navigator window, I don't think it will go out and rebuild the tree with whatever is new in the project folder. When I look at the internal code for that Refresh button, it is doing a lot of re-reading of the filesystem and then rebuilding the tree.
    I was able to create my own menu item and have it call the action for the refresh button, but it still requires that the workspace be selected first, so it's in context when the menu us selected. Doesn't quite achieve what you're looking for.
    I'm assuming that you are looking to refresh the navigator window programmatically after you have add one or more files to the filesystem for a project. Is that correct? Just want to make sure I'm working with the same goal that you are.
    I'll keep looking into how this is done with some of our internal wizards. There has to be a way to do it.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Cannot download bpm jdev extension from the new set of binaries

    People:
    I cannot download http://download.oracle.com/otn/beta/bpmbeta1/bpm-jdev-extension.zip from the new set of binaries. I tried using firefox 3.6 and IE 8
    and i always get:
    We're sorry, the page you requested was not found.
    Please any help will be appreciated :)

    Seems to be working okay now. Try again, Nico and let me know how it goes.
    Heidi.

  • JUnit for JDev Extension project

    Hi All,
    Just like JUnit integration for ADF BC's, does JDeveloper have any inbuilt wizard/support for JUnit in JDev extension project?
    Thanks

    Hi Frank,
    Thank you for the information. When you say "no specific JUnit" , does it mean that we could test an extension project using normal JUnit practices? I am asking this question because I am creating an extension project which adds a menu item to Tools Menu Bar. I am having trouble testing the successful addition of the menu item in JUnit. Could you provide some pointers towards the same?
    Thanks

  • Jdev Extension Jar put in a directory other than "JDEV_HOME/jdev/extensions

    I'm creating new rules for auditing using the Jdeveloper 10.1.3 extension API and enabling using extension framework. Once I created the rule, I placed the 'jar' file in "JDEV_HOME/jdev/extensions/" directory as per the guidelines. It is executing perfectly. But I want to place the jar in my home directory. is it possible?
    I mean I place the jar file in my home directory and I will provide classpath in 'extension.xml' file, which is a part of jar file. How can I achieve it?
    The 'jar' file contains
    a) extension.xml
    b) 2 java files
    c) one text file.
    Here extension.xml mention the link of a rule to the audit framework. I used the
    A part of extension.xml file which adds my rule to the framework.
    <hooks>
    <jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
    <addins>
    <addin>oracle.test.launcher</addin>
    </addins>
    </jdeveloper-hook>
    </hooks>
    I heard that we can do this in different types:
    a) In <hooks> tag, we can include the <libraries> tag which mentions the classpath tag and value.
    But no where I found the <libraries> tag in google search.
    b) In "JDEV_HOME/jdev/extensions/" directory we place a jar file which only contains the 'extension.xml' file and we can specify the class path of the jar file, which contains the remaining three files. is it possible? If so pls. show me the pointers to do this.
    Could you pls. suggest me.
    Thanks in Advance
    Regards
    Madhu

    Hi,
    You can install extension jars in your jdevhome extensions directory in addition to the standard OH/jdev/extensions. On platforms other than Windows, this is ~/jdevhome/extensions by default. On Windows and other platforms, the location of the jdevhome directory can be controlled using the environment variable JDEV_USER_DIR.
    Adding an extension jar to one of those two locations is usually sufficient to add it to the classpath of JDeveloper. If you have additional non-extension jars you want to add to JDeveloper's classpath, you can do so using the <classpaths> element in extension manifest. This contains <classpath> elements which are relative paths to jars from the location of the extension jar. For example, say you have
    ~/jdevhome/extensions/my.extension.10.1.3.jar
    and you want to include
    ~/jdevhome/someotherjar.jar
    You would use something like this:
    <extension ...>
      <classpaths>
        <classpath>../someotherjar.jar</classpath>
      </classpaths>
    </extension>Thanks,
    Brian

  • Jdev Extensions oracle.ide.ExitNotAllowedException Error

    Hi ,
    I was trying to build a jdev extension . In the extension project , I selected create new Gallery Item Wizar -->Name : EssWizard.java, category : genrenal , Folder : java .
    In the java class invoke(Context ctx) method I called a function " show() " which provides a search dialogue for a file on your sytem and returns the selected file path using swing.
    When I run the extension project and select my created gallert item I am getting the following error:
    oracle.ide.ExitNotAllowedException
         at oracle.ide.IdeCore$1.checkExit(IdeCore.java:244)
         at javax.swing.JFrame.setDefaultCloseOperation(JFrame.java:377)
         at yourcompany.essjpr.EssWizard.show(EssWizard.java:87)
         at yourcompany.essjpr.EssWizard.invoke(EssWizard.java:55)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
    Can anyone tell what is the reason for the error. The show() function works fine when used as a normal java class.
    Thanks,
    Bhawna Bacchhawat.

    I am using Jdev 11g Release 1 (11.1.1.7.0) .
    Yes, I have seen the samples , and tried to implement in a similar way. Below is my EssWizar.java
    package yourcompany.essjpr;
    import java.awt.Dimension;
    import java.io.File;
    import javax.swing.BoxLayout;
    import javax.swing.Icon;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import oracle.ide.Context;
    import oracle.ide.Ide;
    import oracle.ide.extension.RegisteredByExtension;
    import oracle.ide.util.MenuSpec;
    import oracle.ide.wizard.Wizard;
    import oracle.javatools.icons.OracleIcons;
    * Implementation of the "Ess" gallery item.
    @RegisteredByExtension("yourcompany.essjpr")
    public final class EssWizard extends Wizard {
    private static final String WIZARD_NAME = "ESS (ESDK Sample)";
    public boolean isAvailable(Context context) {
    // TODO Determine when the Ess gallery item is available.
    return true;
    public boolean invoke(Context ctx) {
    // TODO Invoke the Ess gallery item's user interface.
    if (!isAvailable(ctx))
    return false;
    /** String greetee = null;
    greetee =
    JOptionPane.showInputDialog(Ide.getMainWindow(), "Enter your name:",
    WIZARD_NAME,
    JOptionPane.OK_CANCEL_OPTION);
    if (greetee == null) // User canceled
    return false;
    JOptionPane.showMessageDialog(Ide.getMainWindow(),
    "Hello " + greetee + "!", WIZARD_NAME,
    JOptionPane.INFORMATION_MESSAGE);
    show("Bhawna");
    return true;
    public String getShortLabel() {
    return "Ess";
    @Override
    public String getLongLabel() {
    return "ESS tool .";
    @Override
    public Icon getIcon() {
    return OracleIcons.getIcon(OracleIcons.ORACLE_LOGO);
    @Override
    public MenuSpec getMenuSpecification() {
    // By returning a MenuSpec implementation (instead of null),
    // we make this wizard appear in the Tools menu.
    return new MenuSpec(getShortLabel(), getIcon());
    public static void show(String frame_name){
    JFrame frame = new JFrame(frame_name);
    frame.setPreferredSize(new Dimension(450, 300));
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel top = new JPanel();
    top.setLayout(new BoxLayout(top, BoxLayout.Y_AXIS));
    JPanel creator = new JPanel();
    creator.setLayout(new BoxLayout(creator, BoxLayout.Y_AXIS));
    creator.add(top);
    JFileChooser fc = new JFileChooser(new File("."));
    String[] buttons = {"OK", "Cancel", "Browse"};
    int rc=-1;
    do {
    rc = JOptionPane.showOptionDialog(
    null,
    creator,
    frame_name,
    JOptionPane.DEFAULT_OPTION,
    JOptionPane.PLAIN_MESSAGE,
    null,
    buttons,
    buttons[0]
    if( rc == 1){
    System.exit(0);
    break;
    else if(rc == 2){
    int retVal = fc.showDialog(null, "Ok");
    if (retVal == JFileChooser.APPROVE_OPTION)
    System.out.println("File choose" + fc.getSelectedFile());
    System.exit(0);
    } while (rc != 0);
    if( rc == 0){
    frame.setVisible(true);
    frame.pack();
    Thanks
    Bhawna.

  • JDev Extensions: Register only a particular XML file with custom Editor?

    Hi Guys,
    I have extended the Editor class and created my own Editor - MyCustomEditor. Below is the part of 'extension.xml', where I am registering any XML document with this editor.
    <editors xmlns="http://xmlns.oracle.com/ide/extension">
    <!-- Register our custom editor -->
    <editor id="myCustomEditor.design"
    label="My Design"
    editor-class="oracle.xxx.xxx.MyCustomEditor" >
    <node-type class="oracle.bali.xml.addin.XMLSourceNode" />
    </editor>
    </editors>
    But my actual requirement is to register my custom (design) editor to a particular XML file which has a fixed name, lets say MyApplicationFile.xml. I don't want this Custom Editor for any other XML document. How can I achieve this?
    Thanks,
    Rajesh.

    No JDev version??
    Here is what you can try.
    1. Subclass XMLSourceNode to CustomXMLSourceNode. Mention this class in editor tag.
    2. In addition to <editor> you may need to have <xml-recognizer> along with <include-filenames>MyApplicationFile.xml</include-filenames>.

  • Is it possible to install a JDev extension bundle in headless mode.

    We are looking to see if there is a way to automate install of JDev and application of an extension in "headless" mode, or some other command line option that could enable this.
    This is for internal development purposes aiming at reducing the number of steps dev has to get through to be in a position to run JDev setup with the required extension.
    I could not find anything related to this in the forum, or help guide, apologies if I missed it.
    thanks
    Nick

    For most of the extensions the check for update simply download the zip file, and extracts the jar file from within into the extensions directory.
    I think you should be able to just manually copy the jar file to the specific location and this will be enough.
    Some extensions specify in their bundle.xml file another location for install (like the JDev root directory) and then you'll need to copy the files to the specific locations under the root.

  • JDev extension sdk help

    Hi,
    We are trying to build an extension on JDev 11.1.1.6. We need to get the list of all files in current project like jspx or jsff files. The ApplicationOverview sample application has given a way to get list of all files but we are not able to run as IndexManager class is not found in extension package. Please let us know how can we get the list of files. We have tried using Project , ProjectContent classes but unable to get required list.
    Thanks

    What do you mean when you say that "IndexManager class is not found in extension package"? Indexing is the correct way to search the contents of a project. By adding a dependency on oracle.ide.indexing you should be able to use te IndexManager.

  • Cannot launch application to open a file from jdev extension

    Hello:
    I use the following code to let my application to open a file:
    String[] cmd = new String[3];
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[2] = "myfile.pdf;
    Process p = Runtime.getRuntime().exec(cmd);
    p.waitFor();
    It worked fine if it was in a main method running in jdev. However, my application is a jdev client launched by clicking run/debug extension on project icon. When that part of code was executed, I didn't see the file got opened. No cmd.exe process got created either. I am wondering if I need to do something more to make it work. (I did enable "allow program input" in Tool Settings in Run/Debug/Profile of the project property).
    Anyone who knows this may offer some help/hint?
    Thanks.

    Hi there
    Perhaps this trick will help.
    Do the file browse thing where it appears to lock up.
    Press Alt+Spacebar and release both keys.
    Presss M. (selects the Move command)
    Press any arrow key.
    Wiggle the mouse around a little and see if the window pops into view.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Question (JDev-Extension): Retreive class name with package info

    To JDev Development team:
    I'm developing an JDev 10.1.3 EA1 Addin. I have access to an oracle.ide.model.Node (the currently selected java code file from the Application Navigator / System Navigator).
    Is there a way (inside the Extension API to convert this node to String representation of a qualified java class pointer (package.classname)? Or do I have to use extensive String manipulation on the filename with path?
    Example:
    If the file in the tree is:
    casthouse
      + panel
        + casting
          + CastingPanel.java
        I want to translate this to casthouse.panel.casting.CastingPanel without having to use the Node objects URL.getFile() and manipulate the String object retreived from this, by removing path down to top-level package name and replacing all '/' with '.'.
    I'm sure your API has functions to do this. Either in the JoT packages or in the navigator itself... I've looked, but I cannot find any answers to this in the Extension API javadoc. (ref. post no.4 in Question: Adding extension preferences panels as subnodes in the tree
    Message was edited by:
    Øystein Amundsen

    If you have the Project in which the Node resides, then you can use Jot to get the information that you are looking for. If you don't already have it, you can probably get the project from the Context of the View.
    For example;
    Project prj = ... // Maybe use Context.getProject() to get this value.
    Node node = ...
    JavaManager jMgr = JavaManager.getJavaManager(prj);
    SourceFile srcFile = jMgr.getSourceFile(node.getURL());
    SourceClass srcClass = srcFile.getSourcePrimaryClass();
    String clsName = srcClass.getQualifiedName();

  • The great Oracle URL shuffle: are jdev extensions broken?

    I've been trying to install the JDev dynamic tab page template extension 1.02 today without much success. Right I thought, I'll download the extension manually and install it locally. But the extensions page is borked too, clicking the relevant link redirects to the JDev home page. So my question is, has the great Oracle URL reorg broken 1 or more of the downloadable extensions too?
    Or is it just me?!
    CM.

    It's just you.
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/131167.xml (redirected from htmldb.oracle.com/pls/otn/f?p=updatecenter:uc) works... oh and then trying to download the actual extension - yeah, borked.
    [url http://www.google.com/webhp?hl=xx-bork]bork bork bork
    The great OTN reorg is really annoying!
    John

  • How to modify the current editor contents from a JDev extension

    Hi there,
    I am creating an extension for JDev 11.1.1.3.0 and I am stuck... To simply things, let's say that I want to create an extension that converts the selected text in a editor to UPPERCASE.
    So far, I was able to get the selected text using *((CodeEditor)getContext().getView()).getSelectedText()* inside the doit() method.
    However I don't know how to update the text in the editor... I am pretty sure that it is more complicated than simply calling a setText() method but I could not find any documentation or examples in the web. Any tips?
    Thanks
    Luis

    Hi Luis,
    u can change the selected Text by the below command...
    *((CodeEditor)getContext().getView()).replaceSelection(text.toUpperCase());*
    And also u can find some samples and docimentation in the below link
    http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index-091862.html
    Regards,
    Suganth.G

  • Uplift of Jdev Extension code from 10.1.1.3 to 11.1.1.4 - ImportWizard

    This interface shows as not found in Jdev11.1.1.4
    #import oracle.ideri.importexport.ImportWizard; Does anyone know where it has moved, or what replaces it?

    Did you get my answer on the internal forums this morning?
    It's still in the same library.
    It's located by default in:
    C:\Oracle\Middleware\jdeveloper\ide\extensions\oracle.ide.importexport.jar

  • New Pane in JDev Extension

    Hi @all.
    I'm about to develop a "Plug-In" for the JDeveloper (10g/10.1.3). My aim is to open a new JDev editor window (resp. view or tab) and transfer code text from the clipboard into the new editor. But I cannot find the fitting object to instantiate within the JDev API.
    Perhaps anyone has already written something like that or anyone knows an example that can help?
    I would be grateful for any hints.
    tnx
    :-)

    Hello,
    You must keep a an IF condition like this in selection program's user exit.
         if Segmetn-Name eq <New segmetn>
             break <user name>
        end.
    It must stop other wise the enhancing the standard Idoc type is wrong. And so you need to check whether it is activate / released the new segment properly.
    All the very best for you.
      - Mohan Vamsi

Maybe you are looking for