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

Commit e47e215

Browse files
Valeriy Svydenkotsmaeder
authored andcommitted
Avoid patching during the build (#107)
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
1 parent 3814411 commit e47e215

File tree

3 files changed

+9
-68
lines changed

3 files changed

+9
-68
lines changed

che-orion-editor/pom.xml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -32,55 +32,6 @@
3232
</resource>
3333
</resources>
3434
<plugins>
35-
<plugin>
36-
<!-- Apply patches -->
37-
<groupId>org.apache.maven.plugins</groupId>
38-
<artifactId>maven-patch-plugin</artifactId>
39-
<version>1.1.1</version>
40-
<executions>
41-
<execution>
42-
<id>bugfix-patches</id>
43-
<phase>compile</phase>
44-
<goals>
45-
<goal>apply</goal>
46-
</goals>
47-
<configuration>
48-
<patchDirectory>${patches.location}</patchDirectory>
49-
<patches>
50-
<patch>add_hide_tooltip.diff</patch>
51-
<patch>fix_linked_mode.diff</patch>
52-
<patch>fix_focus.diff</patch>
53-
<patch>fix_goto_line.diff</patch>
54-
<patch>fix_scrolling.diff</patch>
55-
</patches>
56-
<optimizations>false</optimizations>
57-
<strictPatching>true</strictPatching>
58-
<strip>1</strip>
59-
<targetDirectory>${project.build.directory}/classes</targetDirectory>
60-
</configuration>
61-
</execution>
62-
</executions>
63-
</plugin>
64-
<plugin>
65-
<!--Fix for https://github.com/eclipse/che/issues/3768. The plugin needs for putting correct path to the resources.-->
66-
<!--After upgrading Orion Editor version don't forget to add folder with images-->
67-
<!--org/eclipse/che/orion/public/built-codeEdit/webtools/images-->
68-
<artifactId>maven-antrun-plugin</artifactId>
69-
<executions>
70-
<execution>
71-
<id>replace</id>
72-
<phase>compile</phase>
73-
<goals>
74-
<goal>run</goal>
75-
</goals>
76-
<configuration>
77-
<target>
78-
<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" />
79-
</target>
80-
</configuration>
81-
</execution>
82-
</executions>
83-
</plugin>
8435
<plugin>
8536
<groupId>com.mycila</groupId>
8637
<artifactId>license-maven-plugin</artifactId>

che-orion-editor/src/main/patches/add_hide_tooltip.diff

Lines changed: 0 additions & 19 deletions
This file was deleted.

che-orion-editor/src/main/resources/org/eclipse/che/orion/public/built-codeEdit/code_edit/built-codeEdit-amd.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28656,6 +28656,15 @@ define("orion/editor/editor", [ //$NON-NLS-0$
2865628656
getTooltip: function() {
2865728657
return mTooltip.Tooltip.getTooltip(this._textView, this);
2865828658
},
28659+
28660+
/**
28661+
* Hides opened tooltip.
28662+
*/
28663+
hideTooltip: function() {
28664+
var tooltip = mTooltip.Tooltip.getTooltip(this._textView, this);
28665+
tooltip.hide(true);
28666+
},
28667+
2865928668
/**
2866028669
* Returns the zoom ruler of the editor.
2866128670
*

0 commit comments

Comments
 (0)