Git Product home page Git Product logo

Comments (3)

bjeffrie avatar bjeffrie commented on May 30, 2024

I'll have to think about the XML case, but I think this Context Menu Example in java is similar to what you are trying to do.

XML only is going to be tough. Any data needed will have to be collected either via query to the associated db connection or interactively from the user. Any action is typically done via sql or pl/sql script (again on the associated connection), but javascript is also available so maybe accessing the editor directly in a manner similar to the java example or getting the text you want into the clipboard for pasting would be possible.

from oracle-db-examples.

bjeffrie avatar bjeffrie commented on May 30, 2024

Can you provide a more detailed user story on what you want to achieve? For example, Add a context menu entry to ALL CODE EDITORS[1] that will add a comment block AT THE CURRENT CARET POSITION[2] containing the following ...[3]

[1] Attached to:

  • ALL_CODE_EDITORS (has to be java to include the worksheet -- which has no associated db object)
  • CODE EDITOR FOR e.g., FUNCTION, PROCEDURE, ... (worksheet excluded)
    [2] Insertion point
  • AT THE CURRENT CARET POSITION (java, javascript?)
  • PREPENDED TO THE CURRENT DEFINITION (java, javascript?, should be possible with pl/sql as long as creating/updating the db definition of the object is OK.)
  • COPIED TO SYSTEM CLIPBOARD (java, javascript?)
    [3] Using data from - where the information comes from will also constrain the deployment choices.

from oracle-db-examples.

maternaDev01 avatar maternaDev01 commented on May 30, 2024

Hi Brian,

thank you for your quick response!
Answering your question is not that easy, because i do not know what's possible in the sql dev after all.
What i have in mind is helping the developer to create code following the rules of our company. These rules can change over time. So it should be possible to edit those "templates" easily.
Usually we do not use standalone procedures or functions. 99% of our job is to create packages and methods within.
So, I am not sure what's the best way implementing this. A flexible approach inserting a statement at the current caret would possibly be the most open way achieving this.

Answering your three points with this in mind i would say:
1: ALL_CODE_EDITORS
2: at the current position
3: the Data should be stored in a kind of text file (xml) easily to maintain. best way would be accessing it via an uri.

As i am also a part time java dev since two years i can of course do this with java. It just seemed to be more complicated.

Again, thank you very much for your support!

Kind regards,
André

from oracle-db-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.