You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sqldeveloper/extension/java/DependencyExample/README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,28 @@ The exact jars needed from them can be found in *DependencyExample/DependencyExa
9
9
[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.
10
10
11
11
On the first run, only the triggers defined in extension.xml will load.
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)
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'.)
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.
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.)
Copy file name to clipboardExpand all lines: sqldeveloper/extension/java/DependencyExample/src/oracle/db/example/sqldeveloper/extension/dependency/control/FxDiagram.java
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,6 @@ Everyone is permitted to copy and distribute copies of this Agreement, but in or
112
112
importjavafx.collections.ObservableList;
113
113
importjavafx.event.EventHandler;
114
114
importjavafx.geometry.Insets;
115
-
importjavafx.scene.Cursor;
116
115
importjavafx.scene.input.KeyEvent;
117
116
importjavafx.scene.input.MouseButton;
118
117
importjavafx.scene.input.MouseEvent;
@@ -239,17 +238,12 @@ public void handle(MouseEvent event) {
239
238
lastClickTime = now;
240
239
}
241
240
if (MouseButton.PRIMARY == event.getButton() && timeBetween < doubleClickThreshold) {
Copy file name to clipboardExpand all lines: sqldeveloper/extension/setup.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,15 @@ sqldeveloper/extension is an eclipse project directory but the examples are buil
30
30
## Wiring it together
31
31
### build.properties
32
32
* extension/build.properties - Update to point to your SQL Developer installation & optionally change the owner info.
33
+
* extension/java/SQLDeveloper18.1.userlibraries - **IF** you are using eclipse, update the paths to point to your SQL Developer installation and import the library.
33
34
34
35
### Third party libraries
35
36
**If/when** you plan to build the [Dependency Example](java/DependencyExample), see that page for additional set up requirements.
36
37
37
38
## Making it go
38
39
If you are using eclipse, I'm going to assume you know how to import an existing project and run ant tasks but continue reading to learn about the various ant tasks and how they are used.
39
40
40
-
If you are using ant from the command line, make sure `ANT_HOME` and `JAVA_HOME` are defined for your environment and that ant is on your `PATH` and accessible from the command line.
41
+
If you are using ant from the command line, make sure `ANT_HOME` and `JAVA_HOME` are defined for your environment and that ant is on your `PATH` and accessible from the command line. An example setenv.bat file to do this is in the extension folder. I included sqldeveloper on the path so I wouldn't have to navigate around.
41
42
42
43
### Ant tasks
43
44
The [XML Packaged](xml/packaged) example and all of the [Java](java) examples use ant to build and deploy the example. The 'heavy lifting' is all defined in buildtools so the individual build.xml files for each example are pretty simple. There only a few targets of interest:
0 commit comments