JDev: Frustrating formatting in Java editor

Assume that we need an anonymous class
        new ActionListener() {
Click the red quick fix indicator on the left → "Implement methods..."
        new ActionListener() {
                public void actionPerformed(ActionEvent e) {
The result is so frustrating.

The developer has to manually correct the indentation as reformat has the same effect.
It's just a detail that frustrates productivity.
For example it could be like this,
        new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                <span style="color:blue">//caret goes here</span>
where the caret goes inside the first implemented method.

Similar Messages

  • Java editor - set the number of spaces displayed for tabs

    How do I tell Studio Creator to use tabs instead of spaces?
    I open Tools - Options - Editing - Java Editor and set
    Code Formatting Rule = Java Indentation Engine ...
    - Expand Tabs to Spaces = false
    - Number of Spaces per Indent = 4
    - Statement Continuation Indent = 4
    After reformatting the source every 8 spaces were replaced by 1 tab. The blocks look like (s = space, t = tab)
    ssss{
    t       {
    t       ssss{I want to have every 4 spaces replaced by 1 tab and displayed 4 characters per tab.

    How do I tell Studio Creator to use tabs instead of spaces?
    I open Tools - Options - Editing - Java Editor and set
    Code Formatting Rule = Java Indentation Engine ...
    - Expand Tabs to Spaces = false
    - Number of Spaces per Indent = 4
    - Statement Continuation Indent = 4
    After reformatting the source every 8 spaces were replaced by 1 tab. The blocks look like (s = space, t = tab)
    ssss{
    t       {
    t       ssss{I want to have every 4 spaces replaced by 1 tab and displayed 4 characters per tab.

  • Hello, i need a free java editor for rtf file !

    hello, i need a free java editor for rtf file , that its compatible
    with wordpad of windows, i have tried some of it but they are not compatible ,
    example: not mantain the tabs and the formattings of the text.
    Thanks

    hello, i need a free java editor for rtf file , that
    its compatible
    with wordpad of windows, i have tried some of it but
    they are not compatible ,
    example: not mantain the tabs and the formattings of
    the text.
    ThanksWhy are you using rtf files? .java files are plain text with no formatting info.

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Invisible caret in Sun ONE Studio 5 SE - Java Editor with black background

    How to change caret color in Sun ONE Studio 5 SE - Java Editor?
    The caret blinks changing its color between black and the background color.
    I have changed the background color of the editor to black (the first thing I do whenever presented to a new editor...) But the caret changes its color between black and the background color, that is black - result: the caret becomes invisible.
    Is it possible to change the behaviour of the caret? It could blink changing its color between the background color and a color that is visible (for dark backgrounds, white; for clear backgrounds, black).

    I've found the solution myself.
    Brief description:
    Tools | Options
    Editing | Editor Settings | Java Editor
    tab Expert
    Insertion Point Color = [255,255,255]
    Overwrite Caret Color = [255,255,255]

  • Converting files into pdf format in java

    Hi all,
    How can we convert a file into PDF format in java?My application does the
    file upload, and I need the files to be converted into PDF format.
    The uploaded file can be of any type. How can I do this?
    Please give me some help.
    Thanks and regards,
    Sandeep.

    >
    How can we convert a file into PDF format in java?My application does the
    file upload, and I need the files to be converted into PDF format.
    The uploaded file can be of any type. ...>1) Write a class that will intelligently render a file of any type..
    2) ... (well, do '1' first, then after getting your Nobel prize for AI, come back and we'll talk)
    >
    Please give me some help.>Please review your requirement.
    BTW
    - PDF sucks. It is designed for printing, and I (for one) don't want to kill more trees, and have no printer.
    - This subject (convert file to PDF) has been discussed on the forums a bazillion times. Did you search the forums before asking your two (very closely related) questions?

  • Java Editor with the HelloWorldServlet does not open

    I am following the Getting Started guide lines. When choosing Finish in step 6 of "Create a HelloWorld Servlet" (https://help.hana.ondemand.com/help/frameset.htm?e5a8b1d3bb571014a0f89bb4706d4e0b.html) then the Java Editor should open.
    Unfortunately this does not happen at my installation.
    The only displays at the footing of the Overview picture are "Writable", "Smart Insert" und "1 : 1" for some time.
    This is also interfering with a message "'Periodic workspace save.' has encountered a problem.
    Could not write metadata for '/RemoteSystemsTempFiles'."
    Did I skip something in the guide? How please should I continue editing my first HelloWorld servlet?

    C:\Gm\GmSAP2014\workspace\.metadata\.log shows several entries like this one:
    !ENTRY org.eclipse.core.resources 4 568 2014-07-26 11:29:55.566
    !MESSAGE Could not write metadata for '/RemoteSystemsTempFiles'.
    !STACK 0
    java.io.FileNotFoundException: C:\Gm\GmSAP2014\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\RemoteSystemsTempFiles\.markers.snap (Das System kann den angegebenen Pfad nicht finden)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
      at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:45)
      at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:41)
      at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1712)
      at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1795)
      at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1168)
      at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1110)
      at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    The term "project node" is not to be found in my installation: this is how my start screen looks like:
    If you ment to double click that entry under "File":
    That simply results in the display of that bottom line, but no editor window opens:

  • What is a good Java Editor to use

    Please email me with a link to download a good java editor. l'm using windows ME notepad to writing java.
    Please email me @
    [email protected]
    thank you

    Hello,
    Why not use Sun Microsystems acquired company's (Forte) software. This IDEs homepage is:
    http://www.sun.com/forte/ffj/index.cgi
    If you have any questions goto:
    http://www.sun.com/forte/ffj/faq/general.html#question01
    You can download it from (you can try it out before you buy):
    http://www.sun.com/forte/ffj/buy.html
    I hope this helps.
    Best regards,
    -Marek.

  • Problem when using Ctr-Z in Java editor

    If I create a component in the Desgin view, the switch to Java Editor and uze Cancel (or Ctrl+Z), it cancle the op�ration, ie remove the code added when the component was created. The component is also removed in Design view. However, it is stil present in the JSP code. Under deployment, it produces an error. The stacktrace says the error is about a component which is not present in the design view, wich is a bit confusing.

    Looks like a bug.
    To fix just remove the jsp tag for the component

  • IS it possible to Format the data to CXML format in Java ?

    Hi all,
    I am new to Java programming. I am an SAP ABAP Developer and in my SAP CRM E-Commerce Web Shop coding, I have to do coding in Java.
    My current requirement is that I have some set of data and I have to format this data to CXML format in Java. IS this possible?
    Can I format the data to CXML format in Java? Are there standard API's to do this? Please let me know how should I procced with the coding?
    Apart from formatting the output to CXML format, I have to also post this data to an external market place...How can I do this?
    Please help me with relevant information. your help will be highly appreciated.
    Regards,
    Jessica Sam

    It should be possible to format the data, yes. If there's a "standard API" it should be one that comes out of that SAP CRM thing, so look there.
    As for "posting to an external marketplace", that's far too vague a concept to be able to answer. You should start by getting the specs about "how to post" from that marketplace.

  • JDeveloper 11.1.1.2.0 Java Editor Performance

    I'm having trouble using the Java editor in 11.1.1.2.0. Its been working fine for the past couple of days then just recently it starts hanging after every 10 or so characters I type. The file I'm seeing this in is about 4,000 lines. I have no other applications open, I've tried restarting the IDE and even the machine. It seems that when this happens JDeveloper CPU utilization hits 50-100%. Any suggestions? I have J2D_D3D set to false. Also, is there a log file I can look in for more details?

    I have 3GB machine and I face the same issue. If the file size is too big it affects editor performance.
    You can code in linux environment. That's what I used to do sometimes.
    Check these blogs too.
    http://blogs.oracle.com/shay/2006/03/29/
    http://www.oraclebrains.com/2007/04/very-slow-performance-in-jdeveloper/
    Edited by: Puthanampatti on Dec 31, 2009 10:42 AM

  • Jdeveloper toolbox -  links fail with "Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java"

    Hi,
    I'm running 12.1.3 in virtualbox and the OAF toolbox tutorials work after logging onto EBS.
    After installing jdeveloper (on windows 8) and doing the documented setup, even the "Hello World" test fails when run in jdeveloper.
    I've double checked the setup and that the jdeveloper patch version is right (p9879989_R12_GENERIC)
    and have the "Default Local IP address" checkbox selected as well.
    I guess some windows install/config is incorrect,but don't know what.  Any ideas?
    Thanks.
    The exact browser error is -
    500 Internal Server Error
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    OracleJSP:oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java
    and the full stack is  -
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    C:\jdevbin\jdk\bin\javaw.exe -hotspot -classpath C:\jdevbin\j2ee\home\oc4j.jar;C:\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    26/12/2013 11:09:23 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    26/12/2013 11:09:23 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\xml.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /C:/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /C:/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /C:/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 10061 ms.
    Target URL -- http://192.168.56.1:8988/OA_HTML/test_fwktutorial.jsp
    13/12/26 11:09:29 Oracle Containers for J2EE 10g (10.1.3.3.0)  initialized
    26/12/2013 11:09:44 oracle.jsp.logger.JspMessages infoCannotDispatchJspPage
    INFO: Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java</H3><pre></pre>
        at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304)
        at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731)
        at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456)
        at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413)
        at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705)
        at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694)
        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
        at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
        at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
        at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
        at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
        at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
        at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
        at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
        at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
        at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
        at java.lang.Thread.run(Thread.java:595)

    Hi,
    i think you missed JDEV_HOME environment variable.
    below blog may help,
    Oracle Apps By Kishore: Steps to make JDeveloper Environment

  • Java Editor and Unicode Characters

    I'm trying to use unicode characters in strings with the Java Editor.
    String myOption = "\u2666 " + myDirName;
    This works nicely, displaying a diamond in my web application. Source HTML contains a &9830;
    However, if I make changes in the Visual Designer (e.g., add a button), the \u2666 in my Java code changes to a diamond symbol. When that happens, I get a "?" in my web application.
    How do I prevent Java Editor from switching to the display character?

    Thanks for your response.
    After more research, I found that the .java file is corrupted. These means the problem is not related to the browser.
    When I have "\u2666" in the Java Editor window, I see "\u2666" in the .java file in Word Pad. This is properly compiled and the entity &#9830; appears in the HTML.
    When the diamond symbol is in the Java Editor window, I see and ascii ? (character #3F). I get a ? in the browser. It is really a question mark (#3F) not an unknown character.
    So, it appears that when the JSP is changed by adding a button, the .java code is rewritten to disk but unicode characters are not translated properly. Or - something like that. If I could keep the ascii string "\u2666" from converting to the diamond, I would be all set.
    I can edit the Java Code, close, save and reopen all I want and the unicode character doesn't translate to the symbol. This ONLY happens when the JSP is modified.
    Any ideas?

  • Java Editor - auto complete

    i'm looking for a FREE lightweight java editor that supports auto-complete and possibly code generation.
    auto-complete is when you type the object and a dot, the editor pop-up a window listing all methods available for you to use.
    code generation (or whatever it is called) is like a template that i can use....like i type in tryc and a space and it will create a try{ } catch{} block for me
    by lightwieght, i mean th eeditor is small and does not requires a lot of memory to run. don't want a full blown editor like Eclipse, JBuilder, NetBean (they're too resource hungry). something like JCreator and TextPad. My computer is old (PIII 733 mhz, 384MB RAM)..yes, my computer motherboard only allows up to 384 MB of RAM ..this sucks when RAM is soooo cheap.
    i check with most free editor, but to get auto-complete and code generation...you have to pay for it...so i'm wondering if anyone knows of a FREE one?

    Use the Plug-In Manager (Plugins menu item) to review the available plugins. Click the Install tab and highlight the name, it'll display a description.
    There's a couple of auto completes - I use Dot Complete (it has a minor glitch starting, I have to click Complete to get it to start)
    There's a number of template facilities, both built in and as plugins.

  • Java editor for Linux

    Which is the best java editor for Linux ??
    in the Win plataform I'm using the JCreator ... and now I'm migrating to the linux plataform...
    please tell me the name of the editor you are using if you use Linux... (Red Hat 7.1 here...)

    you can try SciTE from http://www.scintilla.org - it's simple, fast and good enough. you can work with java, c and many other programming languages. There are some features that don't present in any other editor.
    Btw SciTE is only editor, not complete IDE. If you wish a full IDE with projects.. etc you can use Borland's JBuilder

Maybe you are looking for

  • My phone wont let me back up to icloud?

    my phone wont let me back up to icloud, even after purchasing the additional storage i needed. does anyone know why or how i can fix this?

  • Problem with JTree.isExpanded()

    Working with a JTree, I encountered into a strange behavior - I hope someone could explain me... For exporting a tree I need the information whether nodes are expanded or not. The first strange thing is that the root always seems to be collapsed - bu

  • How big of a hard drive upgrade in 500GB TC?

    I have a 500GB TC. If I want to swap the internal drive, how big of a drive can I put in? I ready conflicting reports. I would like to put a 2TB drive if I can.

  • Running Short on HD space

    I'm running short on hard drive space. I know my itunes folder takes up almost half of it and when I add applications and photos, don't quite make it to 3/4 of the space. I was wondering if there was any software I could use that would tell me where

  • Wireless Outdoor Bridge Distance

    I have a customer that wants to use a 1532I bridge to connect two buildings.  The buildings are about 700 feet apart with a clear LoS between the two points.  Would the 1532I reach this distance?