Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

Remove leftovers of jdt repack #108

Open
wants to merge 4 commits into
base: 5730_java_ls_poc
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CHE-8555: Hide LS hovers when dialog window is opened (#90)
  • Loading branch information
Valeriy Svydenko authored and tsmaeder committed Aug 22, 2018
commit 9eb88d8dafbcf217e9647dd251a92cd141f62b6b
49 changes: 49 additions & 0 deletions che-orion-editor/pom.xml
Original file line number Diff line number Diff line change
@@ -32,6 +32,55 @@
</resource>
</resources>
<plugins>
<plugin>
<!-- Apply patches -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-patch-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>bugfix-patches</id>
<phase>compile</phase>
<goals>
<goal>apply</goal>
</goals>
<configuration>
<patchDirectory>${patches.location}</patchDirectory>
<patches>
<patch>add_hide_tooltip.diff</patch>
<patch>fix_linked_mode.diff</patch>
<patch>fix_focus.diff</patch>
<patch>fix_goto_line.diff</patch>
<patch>fix_scrolling.diff</patch>
</patches>
<optimizations>false</optimizations>
<strictPatching>true</strictPatching>
<strip>1</strip>
<targetDirectory>${project.build.directory}/classes</targetDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--Fix for https://github.com/eclipse/che/issues/3768. The plugin needs for putting correct path to the resources.-->
<!--After upgrading Orion Editor version don't forget to add folder with images-->
<!--org/eclipse/che/orion/public/built-codeEdit/webtools/images-->
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>replace</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<replace file="${project.build.outputDirectory}/org/eclipse/che/orion/public/built-codeEdit/webtools/plugins/webToolsPlugin.js" token="../webtools/images" value="../_app/built-codeEdit/webtools/images" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
19 changes: 19 additions & 0 deletions che-orion-editor/src/main/patches/add_hide_tooltip.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This patch adds ability to hide opened tooltips.
===================================================================
diff --git a/org/eclipse/che/orion/public/built-codeEdit/code_edit/built-codeEdit-amd.js b/org/eclipse/che/orion/public/built-codeEdit/code_edit/built-codeEdit-amd.js
--- a/org/eclipse/che/orion/public/built-codeEdit/code_edit/built-codeEdit-amd.js
+++ b/org/eclipse/che/orion/public/built-codeEdit/code_edit/built-codeEdit-amd.js
@@ -28631,6 +28631,13 @@ define("orion/editor/editor", [ //$NON-NLS-0$
getTooltip: function() {
return mTooltip.Tooltip.getTooltip(this._textView, this);
},
+ /**
+ * Hides opened tooltip.
+ */
+ hideTooltip: function() {
+ var tooltip = mTooltip.Tooltip.getTooltip(this._textView, this);
+ tooltip.hide(true);
+ },
/**
* Returns the zoom ruler of the editor.
*