Comments (3)
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.
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.
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)
- Error: ORA-00904: "EMPLOYEE_ID": invalid identifier HOT 2
- [Connection Helper] Service name with dot not working HOT 1
- Connect oracle cloud with ojdbc6, jdk1.7.0_80 HOT 1
- SQL Developer Extension Connection/Struct Issue HOT 5
- java.sql.SQLRecoverableException: IO Error: Unknown host specified when trying to start a springboot project HOT 2
- Update JDBC samples
- (SQLDeveloper) Improve error reporting for ConnectionHelperClient HOT 1
- https://jsao.io/ is down? HOT 3
- ConnectionHelper Settings Ignored if a Connection with that Name Exists HOT 2
- Connection Helper Error HOT 2
- I/O Error
- Exadata Real Time Insight actual tutorials HOT 1
- How to enter connection string in prompt? HOT 1
- SQL Developer: Dependencies - Arrow with strange orientation HOT 1
- How to create a view that fetches all records from a jdbc connection? HOT 2
- Add code and configuration examples for continuous application availability
- Prometheus scrape configuration to get real-time insight metrics into Prometheus HOT 1
- OracleStatementWrapper add setLocalInfileInputStream Method
- jdbc sample context.xml missing quote HOT 2
- EF Core invalid generated query HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle-db-examples.