Skip to content

Commit

Permalink
Merge pull request #3134 from nadment/3130
Browse files Browse the repository at this point in the history
Delete a hop with one click #3130
  • Loading branch information
hansva committed Aug 3, 2023
2 parents 5a03b65 + f0f447d commit e1b6e34
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
21 changes: 11 additions & 10 deletions docs/hop-user-manual/modules/ROOT/pages/hop-gui/shortcuts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Most of the times you can replace ctrl with cmd.
|Shortcut|Action
|Ctr + n |Create a new work item
|Ctrl + o |Open a work item
|Ctr + s |Save a work item
|Ctrl + s |Save a work item
|Ctrl + Shift + F5|Open the Metadata Explorer Menu
|Ctrl + Space|Opens the variables popup (**NOTE**: only environment variables and variables with the JVM scope are shown here. Variables that are created in pipeline or workflow with a parent, grant parent or root workflow job need to be entered manually))
|Ctrl + w |Close a work item
Expand Down Expand Up @@ -67,8 +67,9 @@ Most of the times you can replace ctrl with cmd.
|Ctrl + =|Zoom In on your canvas
|Ctrl + -|Zoom out on your canvas
|Ctrl + 0|Reset the zoom percentage to 100%
|Ctrl + click|On hops to quickly enable/disable
|Ctr-Shift-Click|Use this shortcut on workflow actions and pipeline transforms that use another workflow or pipeline to open.
|Ctrl + Click|On hops to quickly enable/disable
|Ctrl + Shift + Click|On hops to quickly delete it
|Ctrl + Shift + Click|Use this shortcut on workflow actions and pipeline transforms that use another workflow or pipeline to open.
|mouse over + z|Hover over a workflow action or pipeline transform that uses another workflow or pipeline to open (similar to option above)
|mouse over transform + space|Opens the outgoing fields
|===
Expand All @@ -78,13 +79,13 @@ Most of the times you can replace ctrl with cmd.
[width="85%",cols="30%, 70%",options="header"]
|===
|Shortcut|Action
|CTRL + Shift + ↑ | Switch one perspective up
|CTRL + Shift + ↓ |Switch one perspective down
|CTRL + Shift + d |Open the Data Orchestration Perspective
|CTRL + Shift + i |Open the Execution Information Perspective
|CTRL + Shift + m |Open the Metadata Perspective
|CTRL + Shift + e |Open the File Explorer Perspective
|CTRL + f |Open the Search Perspective
|Ctrl + Shift + ↑ | Switch one perspective up
|Ctrl + Shift + ↓ |Switch one perspective down
|Ctrl + Shift + d |Open the Data Orchestration Perspective
|Ctrl + Shift + i |Open the Execution Information Perspective
|Ctrl + Shift + m |Open the Metadata Perspective
|Ctrl + Shift + e |Open the File Explorer Perspective
|Ctrl + f |Open the Search Perspective
|none|Open the Plugin Perspective
|none|Open the Neo4j Perspective
|===
Original file line number Diff line number Diff line change
Expand Up @@ -780,13 +780,19 @@ public void mouseDown(MouseEvent e) {
break;
}
} else {
// hop links between steps are found searching by (x,y) coordinates.
// hop links between transforms are found searching by (x,y) coordinates.
PipelineHopMeta hop = findPipelineHop(real.x, real.y);
if (hop != null) {
// Delete hop with on click
if (e.button == 1 && shift && control) {
// Delete the hop
pipelineHopDelegate.delHop(pipelineMeta, hop);
updateGui();
}
// User held control and clicked a hop between steps - We want to flip the active state of
// the hop.
//
if (e.button == 2 || (e.button == 1 && control)) {
else if (e.button == 2 || (e.button == 1 && control)) {
hop.setEnabled(!hop.isEnabled());
updateGui();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,13 +622,20 @@ public void mouseDown(MouseEvent e) {
} else {
WorkflowHopMeta hop = findWorkflowHop(real.x, real.y);
if (hop != null) {
// User held control and clicked a hop between steps - We want to flip the active state of
// Delete hop with on click
if (e.button == 1 && shift && control) {
// Delete the hop
workflowHopDelegate.delHop(workflowMeta, hop);
updateGui();
}
// User held control and clicked a hop between actions - We want to flip the active state of
// the hop.
//
if (e.button == 2 || (e.button == 1 && control)) {
else if (e.button == 2 || (e.button == 1 && control)) {
hop.setEnabled(!hop.isEnabled());
updateGui();
} else {
}
else {
// A hop: show the hop context menu in the mouseUp() listener
//
clickedWorkflowHop = hop;
Expand Down

0 comments on commit e1b6e34

Please sign in to comment.