Skip to content

Commit a44b542

Browse files
authored
Merge pull request #33 from bjeffrie/master
18.1 Update for SQL Developer Example Extensions plus extended set up / tutorial guide
2 parents e291c33 + 35319b2 commit a44b542

File tree

21 files changed

+178
-24
lines changed

21 files changed

+178
-24
lines changed

sqldeveloper/extension/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
99
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/FXDiagram 0.35.0-SNAPSHOT"/>
1010
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/KIELER KLay Layouters v. 2015.02"/>
11-
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/SQLDeveloper 4.2"/>
11+
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/SQLDeveloper 18.1"/>
1212
<classpathentry kind="output" path="built/classes"/>
1313
</classpath>

sqldeveloper/extension/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ Depending on requirements, this can be done in either XML or java and deployed b
66

77
### Contents
88

9+
* [Set Up / Tutorial](./setup.md) - A step by step guide to building your first extension and check for updates bundle.
10+
11+
912
* ["Simple" User Extensions (XML)](xml)
13+
14+
1015
* [Standard Extensions (java)](java)
16+
17+
1118
* [Check For Updates (cfu)](cfu)
1219

sqldeveloper/extension/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# Where sqldev lives. The directory that sqldeveloper/bin is in.
66
# This is where the builds will deploy the extension
77
# and where we can find our dependencies
8-
sqldev.dir=D:/sqldeveloper-4.2.0.17.089.1709/sqldeveloper
8+
#sqldev.dir=D:/sqldeveloper-4.2.0.17.089.1709/sqldeveloper
9+
sqldev.dir=D:/sqldeveloper-18.1.0/sqldeveloper
910

1011
# Information about the company or person creating the extension
1112
extension.owner=Oracle Examples

sqldeveloper/extension/buildtools/ant/classpaths.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ limitations under the License.
107107

108108
<!-- osgi.bundle.utils-nodeps -->
109109
<property name="osgi.bundle.utils-nodeps" value="oracle.sqldeveloper.utils-nodeps" />
110-
<property name="dbtools.common.jarfile" value="oracle.dbtools-common.jar"/>
110+
<!-- 4.2 <property name="dbtools.common.jarfile" value="oracle.dbtools-common.jar"/> -->
111+
<property name="dbtools.common.jarfile" value="dbtools-common.jar"/>
111112
<path id="oracle.sqldeveloper.utils-nodeps">
112113
<pathelement location="${sqldev.lib}/${dbtools.common.jarfile}" />
113114
</path>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SQL Developer Examples
22
## Check For Updates (cfu)
33
This is a bit of a table of contents trick to bring cfu closer to the top.
4-
Go to one of the projects and run the cfu ant task. The results will be in the built/cfu directory in the project.
4+
Go to one of the projects and run the _cfu ant task. The results will be in the built/cfu directory in the project.
55
* [Packaged XML extension](../xml/packaged)
66
* [Java extension](../java/DependencyExample)
76.4 KB
Loading
75.9 KB
Loading

sqldeveloper/extension/java/ContextMenuAction/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extension.id=oracle.db.example.sqldeveloper.extension.contextMenuAction
22
extension.name=Context Menu Action
33
extension.descr=Example context menu action on FUNCTION, PROCEURE code editor to insert static string
4-
extension.version=1.0.0
4+
extension.version=18.1.0
55
extension.resources=oracle.db.example.sqldeveloper.extension.contextMenuAction.ExtensionResources
66

77
extension.lib=external:$oracle.fcp.home$/sqldeveloper/extensions/${extension.id}/lib

sqldeveloper/extension/java/DependencyExample/DependencyExample.userlibraries

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<eclipse-userlibraries version="2">
33
<library name="FXDiagram 0.35.0-SNAPSHOT" systemlibrary="false">
44
<archive path="/extension/java/DependencyExample/lib/com.google.guava-15.0.0.v201403281430.jar"/>
5-
<archive path="/extension/java/DependencyExample/lib/de.cau.cs.kieler.kiml.graphviz.layouter-0.7.0.201506231527.jar"/>
5+
<archive path="/extension/java/DependencyExample/lib/de.cau.cs.kieler.kiml.graphviz.dot-0.7.1.201612130921.jar"/>
66
<archive path="/extension/java/DependencyExample/lib/de.fxdiagram.annotations-0.35.0-SNAPSHOT.jar"/>
77
<archive path="/extension/java/DependencyExample/lib/de.fxdiagram.core-0.35.0-SNAPSHOT.jar"/>
88
<archive path="/extension/java/DependencyExample/lib/de.fxdiagram.external-0.35.0-SNAPSHOT.jar"/>
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
# SQL Developer Examples
22
## DependencyExample
3-
This example is built with ant but is also set up for editing & (remote) debugging in the eclipse extension project.
3+
This example is built with ant but is also set up for editing & (remote) debugging in the eclipse extension project.
44
* Building this example requires two external libraries. Copy the required jar files to DependencyExample/lib.
55
The exact jars needed from them can be found in *DependencyExample/DependencyExample.userlibraries* which you will also need to import to use eclipse.
6-
* [FXDiagram 0.35.0](http://dl.bintray.com/jankoehnlein/FXDiagram/standalone/:fxdiagram-jars-0.35.0.zip "fxdiagram-jars-0.35.0.zip")
6+
* [FXDiagram 0.35.0](http://dl.bintray.com/jankoehnlein/FXDiagram/standalone/fxdiagram-jars-0.35.0.zip "fxdiagram-jars-0.35.0.zip")
77
* [KIELER KLay Layouters 0.14.0](http://rtsys.informatik.uni-kiel.de/~kieler/files/release_pragmatics_2015-02/klay/klay_2015-02.jar "klay_2015-02.jar")
88

99
[Set up your environment](../../setup.md), get the required libraries (see above), build the (default) deploy target, and start SQLDeveloper from the command line WITH THE (sqldeveloper/bin/)sqldeveloper -clean OPTION.
1010

1111
On the first run, only the triggers defined in extension.xml will load.
12+
1213
![DependencyExampleAbout diagram](images/DependencyExampleAbout.png)
14+
1315
In our case, that means the context menu entry only and NOT the dependency viewer tab referenced in the hook section (via DependencyExampleGraphViewer.xml which is in the directory the hook says to load xml from)
16+
1417
![DependencyExampleContextMenu diagram](images/DependencyExampleContextMenu.png)
18+
1519
Which opens the dependency diagram AND causes the rest of the extension hooks to load. (The editor tab name is pulled from the 1st selected node but will switch when focus goes to another editor and back. TODO: This really should be implemented as it's own dockable, not as an 'editor'.)
20+
1621
![DependencyExampleZoomedOut diagram](images/DependencyExampleZoomedOut.png)
17-
the diagram is scrollable, zoomable, editable, and can be exported to svg (all thanks to the FXDiagram library.) Double clicking on a node performs a "DrillLink" to open the SQL Developer editor for that node.
22+
23+
The diagram is scrollable, zoomable, editable, and can be exported to svg (all thanks to the FXDiagram library.)
24+
Controls:
25+
* Scroll with mouse wheel
26+
* Zoom with Ctrl + mouse wheel
27+
* Select with left click, Ctrl+left click to add to selection, or draw bounding box with mouse
28+
* Move nodes / selection / diagram by holding down right mouse button & dragging. Left button also works for node / selection
29+
* Double clicking on a node performs a "DrillLink" to open the SQL Developer editor for that node.
30+
* Right click brings up context menu. Hover over icons to see what is available. Note that do / undo refer to changes made to the diagram since opening it.
31+
1832
![DependencyExampleZoomedIn diagram](images/DependencyExampleZoomedIn.png)
33+
1934
Now that it is fully loaded, the viewer definition is active and a dependency graph tab is added to the object viewers. (The next time a new one is opened.)
35+
2036
![DependencyExampleViewer diagram](images/DependencyExampleViewer.png)

0 commit comments

Comments
 (0)