Jdeveloper: Tool Preferences Code Editor Save Actions. Why no code format?

For me Format and Organize Imports are the 2 main save actions?
Can I write a plugin or something to have the code format working for me?
Best Regards,
JP

Which version of jdev you are talking about?
In 11.1.1.2.0 I can select reformat as save action.
Timo

Similar Messages

  • SQL Developer 3.0.03  Code Editor Save Actions missing from menu

    I had just gotten a new notebook and installed latest version of Oracle SQL Developer 3.0.03. Seems Auto Save settings are enabled by default. I am prompted each time I switch off from SQL Dev to another app or window to Save the SQL code I am testing. I don't want to necessarily save it each time so I have to save or cancel each time I switch windows. I checked the documentation Help menu and it directed me to the Code Editor section > Save Actions menu to adjust settings. This category does not exist (or is not visible for me) to check settings and make changes. I am Admin on machine and installer of the app so not sure if it is some security setting I am not aware of. Or is this the wrong Help documentation for this version?
    This version is much different from older version I was using. Any thougts on this before I remove and re-install an older version?
    Thanks,
    Joe

    many thanks for your reply jim. i see the settings for 'prompt for save file on close'. this is checked by default and that is fine. if i have a sql worksheet open, as soon as i switch to another window (i.e. visual studio app), i get prompted to save the file. that is the strange behavior i've been seeing with this version.
    i will try to update to 3.0.04 and see if that resolves. i appreciate your help.

  • How to create save actions in SQL Developer 1.5?

    Hi,
    I am trying to create a save action in SQL Developer, which shall execute "an external tool" I already added.
    I choose "Code-Editor" -> "save actions". I want to add an action, but there are 3 predefined actions and there is no possibility for me to add another. Is there a way for me to add a save action, as it is possible in eclipse?
    What I am trying to do is, I want to trigger an external sql formatter. The sql formatter, which is built in, doesn't fit my needs and the way I can configure it, is very sparse. Therefore I want to use an external tool do to this - and I want it to be executed after saving the document.
    Greetings,
    Daniel

    Right click on the table and select "Export Data": default format is INSERT statement.
    Example of generated SQL:
    --  Fichier créé - mardi-septembre-13-2011  
    --  DDL for Table HELP
      CREATE TABLE "SYSTEM"."HELP"
       (     "TOPIC" VARCHAR2(50 BYTE),
         "SEQ" NUMBER,
         "INFO" VARCHAR2(80 BYTE)
       ) PCTFREE 0 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 49152 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "SYSTEM" ;
    REM INSERTING into SYSTEM.HELP
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',1,null);
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',2,' @ ("at" sign)');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',3,' -------------');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',4,' Runs the SQL*Plus statements in the specified script. The script can be');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',5,' called from the local file system or a web server.');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',6,null);
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',7,' @ {url|file_name[.ext]} [arg ...]');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',8,null);
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',9,' where url supports HTTP and FTP protocols in the form:');
    Insert into SYSTEM.HELP (TOPIC,SEQ,INFO) values ('@',10,null);
    (...)SQL Developer documentation: http://download.oracle.com/docs/cd/E18464_01/index.htm.
    Edited by: P. Forstmann on 13 sept. 2011 21:27

  • How to use documentbeforesaved method? And why my code doesn't work in template files?

    Can someone help me with these two codes?
    ----Beginning of code 1-------------
    Private WithEvents App As Word.Application
    Private Sub Document_Open()
    Set App = Word.Application
    End Sub
    Private Sub App_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
    MsgBox("BeforeSave")
    End Sub
    --------------End of the code----------------
    Beginning of code 2--------------- Code 2 is from https://msdn.microsoft.com/en-us/library/office/ff838299(v=office.15).aspx
    Public WithEvents appWord as Word.Application 
    Private Sub appWord_DocumentBeforeSave _ 
     (ByVal Doc As Document, _ 
     SaveAsUI As Boolean, _ 
     Cancel As Boolean) 
     Dim intResponse As Integer 
    Private Sub App_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
    MsgBox("BeforeSave")
    End Sub
    In the first code, they have:
    Private Sub Document_Open()
    Set App = Word.Application
    End Sub
     I test these two codes in "This document" object, and I find out the first code works but the second code are not!
    Why second code doesn't work?
    Extra question: I am using microsoft 2013. I insert this code into a macro-enabled template. But when I am about to save my file I am expecting these code works. However, they didn't work!
    Thank you for solving these problem for me!

    Hello,
    Please note that the code snippet 2 in your post is different from the code snippet in the MSDN document. Also please read the comments of the MSDN code sample:
    This example prompts the user for a   yes or no response before saving any document.
    This code must be placed in a   class module, and an instance of the class must be correctly initialized to   see this example work; see
    Using Events with the Application Object for   directions on how to accomplish this.
    Public WithEvents appWord   as Word.Application
    Private Sub   appWord_DocumentBeforeSave _
     (ByVal Doc As Document, _
     SaveAsUI As Boolean, _
     Cancel As Boolean)
     Dim intResponse As Integer
     intResponse = MsgBox("Do you really   want to " _
     & "save the document?", _
     vbYesNo)
     If intResponse = vbNo Then Cancel = True
    End Sub
    So the problem in your code snippet 2 is that you didn't put it into a class module and initialize the class module. If you just put it into ThisDocument, you have to initialize the word application object.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Statechart code editor is giving me the finger (LabVIEW 2012, Win 7 32-bit)

    Hello,
    Is anyone else seeing this? In my statechart code editor (for actions, reactions and guards), the Position/Size/Select cursor and the Connect Wire cursor have both been replaced with the Operate Value cursor (a.k.a. the Finger cursor). It makes it hard to tell what LabVIEW will do when I click my mouse, and it looks weird to place wires with a finger.
    Also, the little blue "resize squares" sometimes don't show up, when I hover over an Input/State node

    I've heard of errors related to using the icon editor causing the cursor to be stuck with an incorrect icon.  But I thought that had been fixed with more recent versions of LV.  See this thread for some info.  http://forums.ni.com/t5/LabVIEW/paint-bucket-displayed/m-p/1878283/highlight/true#M635136

  • 10.1.3 code editor.....

    hi all,
    Any features in 10.1.3 production version that allow
    us to set the code editor hide all the generated code by
    default ? Is there any settting can do that ?
    This is very important in code control....
    (Something in NetBeans or Visual Age... )
    Thanks

    thanks for your repply again...
    generated code means those code or statements generated
    by GUI Designer for an example jbInit() or event class...
    some thing like what netBeans did...
    Thanks

  • Problems with cut and paste within the code editor in JDeveloper 10.1.3 EA

    Copy and pasting doesn't work as expected. If I copy some code and paste it somewhere else, i get completely different code, (it seems to paste a piece of code from somewhere else in the source).
    I tried expanding + signs, this didn't help.
    I'am running JDeveloper on Windows XP Professional.
    Does anybody else have the same problem.
    Is this a bug?

    We've tracked down this issue thanks to Tullio's supplying us with a reproducible testcase. It's related to the "Automatically Copy Paste Imports" preference (which is on by default) in the Tools->Preferences->Code Editor category of IDE preferences. It seems to also be related to having renamed a source path directory to have a name that is only different by case from the name it originally had. Disabling this preference is a workaround for EA1.
    For example, if you started out by creating your workspace with a source directory named "Src", then later renamed it to "src", this seems related to the situation when this issue can occur. Renaming the directory back to match what it was before is another workaround for EA1.

  • How to set File Encoding to UTF-8 On Save action in JDeveloper 11G R2?

    Hello,
    I am facing issue when I am modifying a File using JDeveloper 11G R2. JDeveloper is changing the Encoding of the File to System default Encoding (ANSI) instead of UTF-8. I have updated the Encoding to UTF-8 in "Tools | Preferences | Environment | Encoding" option and restarted the JDeveloper. I have also updated "Project Properties | Compiler | Character Encoding" option to UTF-8. None of them are working.
    I am using below version of JDeveloper,
    Oracle JDeveloper 11g Release 2 11.1.2.3.0
    Studio Edition Version 11.1.2.3.0
    Product Version: 11.1.2.3.39.62.76.1
    I created a file in UTF-8 Encoding. I opened it, do some changes and Save it.
    When I open the "Properties" tab using "Help | About" Menu, I can see that the Properties of JDeveloper are showing encoding as Cp1252. Is it related?
    Properties
    sun.jnu.encoding
    Cp1252
    file.encoding
    Cp1252
    Any idea how to make sure JDeveloper saves the File in UTF-8 always?
    - Sujay

    I have already done that. That is the first thing I did as mentioned in my Thread. I have also added below 2 options in jdev.conf and restarted JDeveloper, but that also did not work.
    AddVMOption -Dfile.encoding=UTF-8
    AddVMOption -Dsun.jnu.encoding=UTF-8
    - Sujay

  • Jdeveloper 11.1.2.0. Unable to invoke Tools- Preferences

    MacOS 10.6.7
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
    After opening the project migrated from Jdeveloper 11.1.1.4 trying to open Tools->Preferences:
    Jun 15, 2011 9:53:51 AM oracle.ide.controller.IdeAction actionPerformedImpl
    SEVERE: Exception peforming action
    java.lang.IllegalArgumentException: Attempt to copy from an object of type oracle.jdevimpl.audit.preferences.AuditPreferences to an object of type <null>
    at oracle.javatools.data.HashStructureAdapter.copyTo(HashStructureAdapter.java:95)
    at oracle.javatools.util.ModelUtil.deepCopy(ModelUtil.java:220)
    at oracle.ide.config.ClientSetting.copyToImpl(ClientSetting.java:255)
    at oracle.ide.config.ClientSetting.copyTo(ClientSetting.java:249)
    at oracle.javatools.util.ModelUtil.deepCopy(ModelUtil.java:220)
    at oracle.ide.config.IdeSettings.copyToImpl(IdeSettings.java:196)
    at oracle.ide.config.IdeSettings.copyTo(IdeSettings.java:189)
    at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:810)
    at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:618)
    at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
    at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:304)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:710)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:617)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
    at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
    at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
    at java.awt.MenuItem.processEvent(MenuItem.java:586)
    at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337)
    at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:683)
    at java.awt.EventQueue.access$000(EventQueue.java:86)
    at java.awt.EventQueue$1.run(EventQueue.java:639)
    at java.awt.EventQueue$1.run(EventQueue.java:637)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:653)
    at java.awt.EventQueue$2.run(EventQueue.java:651)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Re: Can't open preferences dialog, I receive the following exception.
    can u remove the following entry from preferences.xml in C:\Documents and Settings\user\Application Data\JDeveloper\system11.1.1.4.37.59.23\o.jdeveloper
    Item>
    <Key>audit-preferences</Key>
    <Value class="oracle.jdevimpl.audit.preferences.AuditPreferences">
    <assistProfile/>
    <auditDuringCompile>false</auditDuringCompile>
    <auditWhileEditing>true</auditWhileEditing>
    <compileProfile/>
    <editorDelay>700</editorDelay>
    <maximumFileSize>5.0</maximumFileSize>
    <showCodeAssistanceInGutter>true</showCodeAssistanceInGutter>
    </Value>
    </Item>

  • JDeveloper Code Editor doesn't do ClearType font anti-aliasing

    I can't seem to get the Code Editor in JDeveloper (11.1.1.5.0) to do ClearType sub-pixel font anti-aliasing. Everything else in the IDE is doing proper sub-pixel anti-aliasing, it's only the Code Editor that's not doing it. It's doing "normal" pixel anti-aliasing which isn't nearly as good and still leaves the font looking quite jaggy.
    I've got the following lines in my jdev.conf:
    AddVMOption  -Dswing.aatext=true
    AddVMOption  -Dawt.useSystemAAFontSettings=lcd
    And I've checked "Enable Text Anti-Aliasing" in Preferences->Code Editor->Display.
    Is sub-pixel antialiasing in the JDeveloper code editor possible? If so, how? I'm running Windows 7 btw.

    No problem Timo.
    I don't think it's worth opening an SR for this. It looks like sub-pixel anti-aliasing isn't supported in the JDeveloper Code Editor, which is a shame, because that's the place where it's most needed.
    Michael.

  • Preferences: Code Editor: Printing:  Add File Path and Date to Print Header?

    Is there a way to add file full path and date to the print file header for a SQL Worksheet when printing from the Code Editor?  So, for example, if my SQL worksheet is called MySQL.sql and is saved to C:\Myfiles\SQL_Code\, I'd like to print the full path 'C:\Myfiles\SQL_Code\MySQL.sql' and today's date as part of the print header along with the page numbers at the top of the code.   I see a Java preview in the Preferences: Code Editor: Printing window that mentions a "Today" date but I don't know Java and that is an uneditable preview.  I have checked the "Print File Header" check box.  Is the file header definition stored somewhere in a configuration file and/or is there a way to modify/customize the default file header?  
    I am a new user to SQL Nav. version 3.2.20.09 Build-MAIN  09.87. I could do this in SQL Navigator but can't figure it out in SQLDeveloper. Thank you.
    -Cathy

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • BUG: JDeveloper code editor shows valid static import call as error

    I've noticed what appears to be a bug in the JDeveloper code validator when dealing with static imports.
    The following classes demonstrate the problem:
    package test;
    public class Parent {
      public static void parentMethod() {
        System.out.println("called parentMethod.");
    package test;
    public class Child extends Parent {
      public static void childMethod() {
        System.out.println("called childMethod.");
    package test;
    import static test.Child.*;
    public class StaticInheritanceTest {
      public static void main(String[] args) {
        Child.childMethod();
        Child.parentMethod();
        childMethod();
        parentMethod();  //<-- this line is highlighted as an error
    }Notice how on lines 7 and 8 of StaticInheritanceTest, the code validator does recognise that both parentMethod and childMethod are static methods of the Child class.
    Since 'Child' has been statically imported, then parentMethod should be available. Although parentMethod is presented as an 'auto-suggest' at line 11 in StaticInheritanceTest, when you try to call it the code editor shows the call as an error and the Ctrl-Click (to drill down into the method) doesn't work.
    When I run the class, it compiles successfully and runs with the following output:
    called childMethod.
    called parentMethod.
    called childMethod.
    called parentMethod.This might seem like an obscure and theoretical problem, but I've hit this whilst using Mockito, which uses exactly this kind of inherited static method to provide matchers.

    Hi,
    thanks. Will file a bug. This seems to be a designtime only issue that does not present a show stopper.
    Frank

  • Basic code editor tools missing? Extensions?

    Is there really no batch search-and-replace, GREP replacement, or HTML element autocompletion? Assumed this 'new' tool could perform at least at a level the code editor DW CS3 (or earlier?) could... love the idea of the in-place related file editor but without these basic features I'm back to BBEdit for now.
    Also: thought maybe adding extensions would expand functionality, but there dont seem to be any??? Is there a resource somewhere, as the Code forum returns 0 results as does Google.

    Hi Aaron,
    Well, there's a reason we call it a "preview release" rather than "1.0" :-)  There are plenty of features that aren't thre or aren't fully polished yet... but actually many of the things you mentioned are available already:
    "GREP replacement" -- I assume you mean search-replace using a regexp?  If you open the Replace bar you can use regexps (note the label next to the input field describing the "/.../" syntax).
    HTML element code hinting -- You should get code hints for tag names and attribute names.  If you're not seeing that, can you share your HTML file so we can investigate?
    There's also CSS code hinting in the latest Edge Code, fwiw.  And there will be JS code hinting in the bext release.
    Extensions are listed on the main open source project page, here: https://github.com/adobe/brackets/wiki/Brackets-Extensions.  We're working on building a more polished extension browse/install experience, however.
    The one thing on your list that's missing is search-replace across multiple files at once.  You can track our progress on that or upvote the user story here, in our Trello backlog.
    Hope that helps,
    - Peter

  • Enhancement Suggestion - Jdeveloper Code Editor

    Hello,
    I would like to make an enhancements suggestion for the JDeveloper code editor. I find the "history" tab of the source editor extremely useful when I'm trying new things and not sure if they would work. This tab helps me revert changes to a last known version. However, I see myself having to identify the previous correct version by date and time, which is kind of dicey. I do see there is also a description column, however, I'm not able to edit the description with a meaningful message that would help identify as last know good version quickly. Hence, my suggestion is that the history tab of the code editor allow the user to add tags / comments against each version for quick identification.
    Hope the Oracle development is listening, and you'll have to excuse me for posting if this forum is the wrong place to make suggestion ( i didn't quite find any feedback feature on the Jdeveloper product page).
    regards,
    Rehan Yusuf

    No problem Timo.
    I don't think it's worth opening an SR for this. It looks like sub-pixel anti-aliasing isn't supported in the JDeveloper Code Editor, which is a shame, because that's the place where it's most needed.
    Michael.

  • Any reason why my code isn't executing the "stop" action?

    Any reason why my code isn't executing the "stop" action?
    sym.getComposition().getStage().getSymbol("_001").$("_002").$("_003").bind('mouseenter',fu nction(e){
    e.preventDefault();
    $(this).unbind('mouseenter');
    sym.getComposition().getStage().getSymbol("_001").$("_002").$("_003").stop("over");
    See my file here http://twistedpancreas.com/edge/misc/dropDownNotWorking.zip
    The dropdown should change to orange when rolled over, but it's not
    Any help is appreciated.

    Thanks rhemanthkumar,
    so .$ should only be referenced in the last mention of a symbol, all others should be .getSymbol ?

Maybe you are looking for

  • Unable to save the data in a .CSV format

    Hi All, I am trying to pull some data with the help of the sql query from the database and then trying to save this string of data in csv file by using the following code as shown below.The problem iam facing here is that while the file Save as windo

  • Solaris 9 x86 installation problem on dell 600sc

    I am trying to install Solaris x86 on a Dell 600sc machine. But the installation always abort. It can boot from CDROM and perform hardware scaning. It then fails and reboots itself when loading kernel from CDROM. The error message is: Warning /pci@0,

  • How to calculate Goods issue date based on the time of delivery

    Hi SAP Gurus, I seek your help/suggestion for the given scenario. The user requires calculating the GI date based on time of delivery. Based on the delivery priority (like Priority 1= Day 1, Priority 2= Day 2) maintained in customer master, the need

  • Hr_organization_api costing information

    Hi All, I am creating Organization,classification and costing information through API. Can you please tell me how to upload costing information as i cant see any parameter for costing in create_organization procedure. I can see parameters in update_o

  • Zire 21 and Vista

    I have a Palm Zire 21, running with my desktop on XP. I also have a laptop with Vista. Is there any software that will allow me to use my Palm with both computers?