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

Similar Messages

  • 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.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • 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.

  • New features of JDev 10.1.3.2....

    Hi ,
    What are the new features of JDev 10.1.3.2 or where can i find them...????
    Is it really worth to download and use this new version instead of JDev 10.1.3.1 for somebody who begins learning the tool.....????
    Thanks , a lot
    Simon

    If you google for "new features of JDeveloper" you'll get to this link:
    http://www.oracle.com/technology/products/jdev/collateral/papers/10131/newfeatures/index.html
    I always claim that there is no reason to start your learning with an old version of the tool.

  • New Header Segment in Extension IDoc

    Hi,
    I want to create a new header segment in Extension IDoc.
    I am not able to create. I want to extend the Basic IDoc DESADV01 by adding a new header segment (Batch numbers, ID's and with time stamp).
    The remaining segments should be under this segment only.
    Is it possible that or shall I create Custom IDoc?
    Thanks in advance.

    Hi,
    You can not create new header segment when extending IDoc type DESADV01.
    System only allows you to insert as child segment instead.
    If you still want to create new header segment, then you need to create a custom IDoc.
    Regards,
    Ferry Lianto

  • 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

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • 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

  • Extending JDeveloper: Creating a new project within an extension

    I am trying to use the JDeveloper extension to create a wizard, to create a new project. Creating the wizard was no problem at all. I am having difficulting creating a new project and adding it to the current workspace. Can somebody please tell me how it can be done ?
    I sense dimly that it involves somehow creating an instance of oracle.jdeveloper.model.JProject or oracle.ide.model.Project and adding it to the workspace, but I am not able to find any documentation, and all my experiments are not working.. Please help.

    Hi,
    Assuming you have a Context, can do this using code similar like this:
    import oracle.jdeveloper.cmd.NewEmptyProjectCommand;
    import oracle.ide.model.Workspace;
    import oracle.jdeveloper.model.JProject;
    import oracle.ide.net.URLFactory;
    Workspace ws = context.getWorkspace();
    JProject newProject = NewEmptyProjectCommand.createProjectInWorkspace(
      URLFactory.newURL( "C:\someproject.jpr" ),
      ws
    );Thanks,
    Brian
    JDev Team

  • New version of JDev causing JNDI problems

    We just upgraded to the newest Developer Preview of JDEV and all of a sudden client code that compiled and ran fine under the old version is no longer running. I'm guessing something changed in the libraries, but I'm not sure what and why this is occurring.
    Here's what happened:
    1) It seems that the constructor for InitialContext having a parameter for Properties is no longer available. PITA...but whatever, I switched it to use the Hashtable environment which should I figured work. However:
    2) Upon switching to the new environment passage I get an exception:
    javax.naming.CommunicationException with the topmost stacked function being oracle.oc4j.security.KeyExchange.getKeyAgreement.
    I'm guessing that passing the string password into the environment is no longer acceptable?!? WTF!
    So, does anyone have any suggestions to fix this. I'm sure we should be using jndi.properties and all that jazz, but we have tons of client code that works this way and I'm not about to go changing it all unless I really have to.
    edit: I tried a sample piece of code using jndi.properties file and am getting the same exception. Maybe this is a problem between the two libraries (OC4J server & the lib on JDev??) GRRRRRRR!
    Message was edited by:
    [email protected]

    OK...turned out to be the second one. I guess the new JDEV libs aren't compatible with the older server I'm running? I just had to remove all the Jdev libraries from the project and point them to the libs within the server install.
    So...if anyone else runs into this...that's how I fixed it. Sorry I wasted y'alls time and threadspace :D.

  • 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.

Maybe you are looking for

  • Steps to create f4 help for a table

    steps to create f4 help for a table

  • Sales configuration for a subcontracting PO

    Hi, I want to know how to configure a particular scenario in SAP. The scenario is as follows: There are two separate companies. Both these companies have implemented SAP. The 1st company has sent some materials to 2nd company for some job work. The 2

  • Send Button is gone from new message toolbar

    I was forwarding a mail message and when I went to "send" it, there was no send button to select. I think thhe default mailbox might have been my defunct .mac address. I toggled the correct email account and still no send button. I rebooted, nothing.

  • Effects of delecting purchasing groups in production client - URGENT Please

    Hi All, If an existing purchasing group is deleted from the production client will it affect any of the open purchase order or any other functionality. Thanks in advance.Please respond. Thanks & regards, Navin

  • Need to purchase a Director 11.5 license

    Greetings. It's a long story, but I need to purchase a 11.5 license.  I don't want a 12 license because I don't want to update the 11.5 legacy stuff that we have. Couldn't purchase via the store so I'm hoping there is another way. Thanks.