tweezy23 / anyedittools

Automatically exported from code.google.com/p/anyedittools
2 stars 0 forks source link

Compare With menu items sometimes disabled #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put something into clipboard (copy some text)
2. select some lines in an editor
3. open context menu Compare With

What is the expected output? What do you see instead?
expected: The Clipboard item in the menu is enabled and works.
instead: The Clipboard item in the menu is not enabled and can not be used.

What version of the product are you using? On what operating system?
AnyEditTools    2.4.15.201504172030 AnyEditTools.feature.group  Andrey Loskutov

Eclipse Java EE IDE for Web Developers.

Version: Kepler Service Release 2
Build id: 20140224-0627

    Eclipse Platform    4.3.2.M20140221-1700    org.eclipse.platform.ide    null

Sun/Oracle jdk1.6.0_45
Windows 7 Pro SP1 64 bit

Please provide any additional information below.

This problem does not happen always. Just a few minutes before I successfully 
compared a selection in a JSP file with the clipboard. Then I copied another 
text from the same source as before (a different instance of Eclipse) and tried 
to compare to a different selection in the same JSP file as before and the menu 
item was now disabled.
In other editors (Java source) it still works.
In other JSP files it does not.
If I open a JSP file in a plain text editor, it works again.

Also, not just Clipboard, but also the other items by AnyEditTools are disabled 
when this happens. (Workspace File..., External File..., Opened Editor...)

In this case it seems the problem is related to the JSP editor, I'll report 
again if it happens in other types of editors.

Details about the JSP Editor (by plugin-spy):
The active editor class:
StructuredTextEditor
The contributing plug-in:
org.eclipse.jst.jsp.ui (1.1.801.v201307171524)
The active editor identifier:
org.eclipse.jst.jsp.core.jspsource.source

Also: the problem happens only when a part of the text is selected. If there is 
no selection (compare entire file) then it works.

Original issue reported on code.google.com by xerces9@gmail.com on 28 Jun 2015 at 2:36