Help for writing an extension for SQL Developer

Hi all
I want to write an extension for SQL using JDeveloper and Oracle Extension SDK developer and I have a few questions.
(1) is there some imports I need to sign up for the use of certain classes for SQL Developer?
(2) how can I do a new item from the context menu in the area of connections in the left?
(3) is there an example for this, because I have read a few posts of Sue and Kris Rice, but I figured out how to make the extensions only for JDeveloper.

Thanks in advance!

SQL Developer Connection browser uses a different site from the JDeveloper Application browser id. The site id OK to use for a listener from context menu is "db_nav". If your listener statement would look like this:


     
          My.listener.Class
     

Note that a listener can be registered on several sites (if, for example, you wanted as your listener to trigger for publishers, you can use "db_nav; Editor"for the site id.

You can post questions on the development of SQL Developer extensions on the developer forum SQL: SQL Developer this forum is monitored by the staff of SQL Developer.

-John McGinnis
SQL development team

Published by: John Mcginnis, August 22, 2011 11:34

Published by: John Mcginnis, August 22, 2011 11:36

Tags: Java

Similar Questions

  • Where isi poijnter to the correct JDK 8 in my case for sql developer 4.1?

    Where isi poijnter to the correct JDK 8 in my case for sql developer 4.1? Have several JDK on this pc, 7 8, somewhere, there is a pointer

    for the right to use when installing sql developer 4.1 JDK.

    Who did. Really appreciate it.

    Need to expose this region better. Other positive results will continue in the same question.

    Especially if they do not take explicit measures to expose the hidden files and folders.

    Thanks again

  • 64-bit JDK 7 OK for SQL Developer 4.0 (4.0EA1)?

    Fact SQL Developer 4.0 supports the 64-bit JDK 7 (http://download.oracle.com/otn-pub/java/jdk/7u25-b17/jdk-7u25-windows-x64.exe), or should I download JDK 7 32-bit (http://download.oracle.com/otn-pub/java/jdk/7u25-b17/jdk-7u25-windows-i586.exe)?  I discovered the hard way that made SQL 3.x developer support only the 32-bit JDK 6, even if I'm running on Windows 7 64 bit desktop.  I have never found any official documentation regarding this limitation for SQL Developer 3.x - only discussions that I found on the web.  Similarly, I don't see any details in the official documentation of SQL Developer 4.0.  Thank you.

    32 and 64-bit are supported. And you can run 64 bit JDK with SQLDev 3.x as well.

  • shortcuts for SQL developer

    Hi all

    I tried to find keyboard shortcuts for sql developer in this forum and other sites, but could not find.
    Can someone point out the list of all possible shortcuts or links?

    Thank you
    Polasa

    until v1.5.5: preferences - accelerators
    from v2.1: preferences - shortcut keys

    That wasn't so hard, was it? Next time look for all preferences first before you spend your time on the net...

    Have fun
    K.

  • SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    After some testing today with a new installation and plugin subversion in the latest edition of data Modeler this error happens with every start of the tool.

    Have removed and unzipped the installation once again without changing the error.

    After that, I started with another user on my computer, it the error does not occur.

    Is there a system folder to remove the configuration of my personal like jdeveloper and sql developer?

    I lose the most important features, for example. have no browser and cannot open a design.

    Here is the full error stack:

    29 may 2015 22:17:40 oracle.ideimpl.extension.AddinManagerImpl

    SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    java.lang.NullPointerException

    at oracle.dbtools.crest.swingui.editor.UDPLibrariesPersistence.load(UDPLibrariesPersistence.java:220)

    at oracle.dbtools.crest.model.design.DesignSet.createElement(DesignSet.java:56)

    at oracle.dbtools.crest.swingui.ApplicationView.addDesign(ApplicationView.java:2497)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:435)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:389)

    at oracle.dbtools.crest.swingui.ApplicationView.getInstance(ApplicationView.java:2258)

    at oracle.dbtools.crest.fcp.DataModelerAddin.initialize(DataModelerAddin.java:553)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:496)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:483)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:299)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:160)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:143)

    at oracle.ide.IdeCore.initProductAndUserAddinsAndActionRegistry(IdeCore.java:2294)

    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1817)

    at oracle.ide.Ide.startup(Ide.java:772)

    at oracle.ide.osgi.Activator.start(Activator.java:209)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)

    at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)

    at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)

    at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1352)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1156)

    at org.netbeans.core.startup.ModuleList.installNew (ModuleList.java:340)

    at org.netbeans.core.startup.ModuleList.trigger (ModuleList.java:276)

    at org.netbeans.core.startup.ModuleSystem.restore (ModuleSystem.java:301)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:181)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:150)

    at org.netbeans.core.startup.Main.start (Main.java:307)

    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

    at java.lang.Thread.run(Thread.java:745)

    Hi Torsten,

    Thanks for reporting the problem. I logged a bug.

    You can view together as "list of system types" directory to "preference > Data Modeler"-probably no longer exists. I guess that the setting for this directory is empty when you start SQL Dev as a different user.

    Philippe

  • OUTPUT OF DBMS FOR SQL DEVELOPER

    Hello people,

    Could someone help me please by allowing the release of DBMS with sql developer. Even when I run any anonymous block, function, or procedure I do not receive the output displayed as "Block PL/SQL executed successfully" or value of return etc. I use "ORACLE SQL DEVELOPER 1.5.5" Editor. Y at - he said something that we would need to do at the time of the installation itself. Please let me know your opinion on this. Thanks in advance

    The 1.5.5 version is very old. Highly recommend the upgrade to the current production version 4.0.3 to Oracle SQL Developer downloads

    If you must stay with 1.5.5, then something like

    Set serveroutput on

    Start

    dbms_output.put_line (999);

    end;

    running in the spreadsheet product out in the tab out of the Script very well. Get out tab out DBMS, however, does not always work.  Note the first icon in the toolbar of DBMS output is supposed to toggle serveroutput on / off.  And with the action to perform for a procedure or function sends the dbms_output operation - log tab in the same pane on the Message tab.

  • Path of J2SE for SQL Developer

    I downloaded and installed SQL Developer 3.0 (JDK not included) for Linux under the guidance of the Oracle download page. The page advises that JDK 1.6.0_11 or higher must be installed.
    Java $-version responds:
    Java version "1.6.0_20.
    OpenJDK (IcedTea6 1.9.9) runtime environment (fedora - 54.1.9.9.fc14 - x86_64)
    OpenJDK 64-bit Server VM (build 19, 0 - b09, mixed mode)

    I already suitable JDK installed? And if so, how do I determine the full path?

    When I run the script/opt/sqldeveloper/sqldeveloper/bin/sqldevqloper for the first time, it prompts to enter the full path of an installation of J2SE. Am I being asked for a path to my JDK installation? I don't know what you must specify the path, and the use of SQL Developer guide is silent on how to identify this path. Or what I need to install something else until I get SQL Developer to work?

    My background is Oracle DBA, not Java, so I find all of these JDK/JRE/J2SE very confusing stuff. Can someone help with specific instructions on what I need to do to get this product to work?

    TIA,
    Jon

    type

    which java
    

    in a shell.

    Which should show the full path.

    I don't know if OpenJDK is supported. It may be better to download the JDK official Sun (oracle).

    Published by: Jim Smith on August 6, 2011 14:25

  • For SQL Developer 3.0 street date

    Anyone know when it comes out? I saw a neat-o presentation at OpenWorld and can't wait to get my hands on it.

    Oracle on product release dates is "in the next 12 months." See our products page OTN often for an ad on first on SQL Developer 3.0.

    Thank you
    Ashley
    SQL development team

  • Extension of SQL Developer Java does not

    Hello

    I developed a small extension of Java to start the SQL Developer via command line and put some parameters such as the server name, user and password to create a connection when you start.

    THS connection will be deleted when closing.

    This extension was working fine until the 3.0.2 version and does not work with version 4.0.2.

    My question: are there changes in the load of an extension?

    Any help would be appreciated, thanks.


    I developed a small extension of Java to start the SQL Developer via command line and put some parameters such as the server name, user and password to create a connection when you start.

    THS connection will be deleted when closing.

    This extension was working fine until the 3.0.2 version and does not work with version 4.0.2.

    My question: are there changes in the load of an extension?

    Yes - there are MAJOR changes and they include the use of "lazy" loading of extensions.

    See note on the main page of Oracle extension exchange.

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/Extensions-083825.html Special Note regarding Extensions developed prior to SQL

    Developer v4.0:

    With the new version of SQL Developer 4.0, an extension that was written for an earlier version of the SQL Developer will no longer work. Developer SQL is based on the JDeveloper Framework. We have updated the framework to be up-to-date with the JDeveloper 12 c version. With JDeveloper 11 g 2, they switched to an OSGI framework. The JDeveloper team issued instructions to update your extensions to be compatible with the new framework and SQL v4.0 developer.

    Note that first sentence than the previous expansions 'won't work' If you use them in 4.x

    It also appears to be bugs or incompatibilities between the extension of JDeveloper published SDK and the "new" version Sql Dev 4.x uses. The public is 12.1.2, and is one that is available for download for use in the development of an extension. SQL Dev uses version 12.1.3 and who has NOT yet been published.

    I have a new thread posted recently to ask about any aspect of this compatibility, but have not yet had all the answers:

    https://community.Oracle.com/thread/3570408

    A few simple extensions, perhaps yours, may only need a small change in the file "extension.xml" use appropriate brackets.

    Other extensions will require additional changes. One of the main changes is the new ESDK of "lazy" loading of extensions use.

    Some additional info is available on the Java.net site:

    https://Java.NET/projects/jdev-extensions/pages/trigger-hooks

  • Hi help connection to APEX cloud with SQL Developer 3.2 or 4.0

    Hello

    I'm looking to use the SQL Developer's ability to connect to cloud to use APEX SQL Developer instead of the SQL workshop.

    Can anyone help?

    Thank you.

    Thanks for explaining, I appreciated

  • The display of the changes by using plugin SVN for SQL developer

    Hello

    We recently moved to SVN. I checked the PL/SQL code on SVN server on my C drive. But after that I made changes to two files of PL/SQL, I can't figure out how to see my changes and compare it with the removed version (for example, as we have CVS diff option). I searched in the options but did not find any suitable option.

    Can we point or help how to do that?

    I want to check my changes before embarking on the main trunk

    Thank you

    Ravi

    In your window where modify you queries, just above the window, below the tab, next to a tab that says "SQL Worksheet" there a tab that says: "history"; Click on that, see diff (s).  See here: http://duncandavies.files.wordpress.com/2009/02/sqldeveloperhistorytab.jpg?w=460&h=257

  • Need your help for sql tuning


    Hi gurus

    I really want to learn a few basics against SQL tuning, can you please guide me how will I achieve my goal? Thanks in advance.

    Concerning

    Shu

    I am professional tuner and this for 20 years. Firstly, I think that the best way is always a course with instructor. In other words, you can't ask for books. You have no need to read tuning guide in this case, the instructor he will tell you. If the time and the budget does not allow you a course, you can go online or material and DVD tutorial. As a next steop I would recommend Cary Milsap's "Optimizing Oracle Perforamance". I'll be your right mind game. Jonathan and Chris books you must have if you do practical work. You don't need to read all the chapters in detail from the beginning, but you should check out them if you have any questions when you work on a tuning tasks. If you want to go more advanced subjects discover Wolfgang Breitlings presentation on http://www.centrexcc.com/. Very valuable are also Throw away method of Martin Berg and the SQL Diagraming of Daniel Tow technique.

  • Need help for sql logic

    Hi guys,.


    I have the following requirement to fetch a value from the

    database with certain conditions. I'll give u an example of how

    data look like in the database and whaat I expect the result.

    Given in the table look like below

    File_No File_date rating Reac
    100 20100402 (white) (white)
    100 20080321 excellent (empty)
    100 20030610 (blank) 82
    20110501 200 (blank) 28
    20090815 200 (white) (white)
    20081021 300 (white) (white)
    300 20060225 good (empty)
    300 20051220 concern (empty)



    from the above table, I need to apply under logic
    I need choose classification or reactionary who never have the value in the table most recent recording. If most recent record has side or reactionary and previous record.

    IM waiting for given below accordingly for file _No

    100 20080321 excellent (empty)

    100 20030610 (blank) 82

    300 20060225 good (empty)


    Please let me know how to write sql/plsql code? Thanks in advance.

    Maybe (although not giving no expected result seems to follow the logic of obligation) NO TESTS!

    select file_no,file_date,rating,reac,
      from (select file_no,file_date,rating,reac,
                   row_number() over (partition by file_no order by file_date desc) r
              from table_a
             where coalesce(rating,to_char(reac)) is not null
           )
     where r = 1
    

    Concerning

    Etbin

    Edited by: Etbin on 28.8.2011 23:51

    I forgot the habit DO NOT TEST! (it should be because it's almost tomorrow)

  • What is the best practice for SQL Developer 4.02 on Oracle 10 g TNS connection?

    The basic connection is no problem.  But try a TNS connection gives me error "Test failed: no ocijdbc11 in java.library.path".  I'm not clear on the procedure suggested in the Readme "to connect to an earlier version of the database using the thick driver, you must install a client 11g.  What is the exact procedure to "install a client 11g?

    Thank you!

    What worked to correct "Test failed: no ocijdbc11 in java.library.path" was as follows:

    Tools > Preferences > database > advanced

    'Use Oracle Client' is checked, with access set to Oracle Home path: file:/C:/app/myuserid/product/12.1.0/dbhome_1.

    It worked only after restarting 2 (?).  Claims that as a confirmation, tested in this case it is recommended that a simple solution.  Thanks to Jeff for suggest a way to work the problem.

  • Performance issues for sql developer

    1. DB connection leaving open a SQLNavigator has no impact on the resources of the DB and the performance?

    If you got all the lines, then should be no impact on the database.

    You can close the table editor/query results grids just to be sure if you do not know.

Maybe you are looking for

  • where is my tab to manage bookmarks?

    I'm trying to download a collection of bookmarks in my class of real estate CD. He said to me on the left click the 'manage bookmarks' in Firefox, which is clearly visible in the window on the CD tutorial. My Firefox has no such tab and I can not und

  • How to solve the problem of "too many redirects?

    How can I solve the problem of "too many redirects" on my Mac Book Pro running OS X Yosemite worm. 10.10.5?

  • HP 15-r015dx

    I disassembled the laptop so that I could insert more ram in it. I turned it back together. He responded and came. However, the screen is not. Or rather a (very light) faint twinkle and is black. What should I do?

  • What is a COA sticker, and where is it located?

    WHAT IS STICKER COST? WHERE IS IT LOCATED? WHY DO WE NEED? original title: THIS IS THAT COA STICKER?

  • Help me install Recovery vista disc Xp Media Center manufactured PC

    Hello My pc came with windows xp media center edition. According to hp, I had to have the free vista upgrade if I had bought my pc until March 15, 2007. But I bought on 19 April 2007, so that they do not give me Windows Vista. I've been running on XP