Project

General

Profile

Task #4788

duplicate code

Added by Alexey Demakov about 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
03/24/2014
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
0.16.201

Description

В классах

requality\src\java\com\unitesk\requality\eclipse\views\properties\AltDescriptionPropertySection.java

requality\src\java\com\unitesk\requality\eclipse\views\properties\CommentMainPropertySection.java

создается одинаковый объект FocusAdapter и передается в вызов
adesc.getControl().addFocusListener(new FocusAdapter() { ... } )

аккуратнее инициализировать этим объектом final static поле базового класса и использовать его.

Associated revisions

Revision 3586 (diff)
Added by Denis Kildishev almost 6 years ago

fixes: #4788; adds static field for focus listener. (final static seems to be difficult in abstract class)

Revision a02aabd7 (diff)
Added by Denis Kildishev almost 6 years ago

fixes: #4788; adds static field for focus listener. (final static seems to be difficult in abstract class)

git-svn-id: https://forge.ispras.ru/svn/reqdb/trunk/requality@3586 f558eac1-05b1-4da7-9ed5-5050e8a619d6

Revision 3586 (diff)
Added by Denis Kildishev almost 6 years ago

fixes: #4788; adds static field for focus listener. (final static seems to be difficult in abstract class)

History

#1

Updated by Alexey Khoroshilov almost 6 years ago

  • Target version set to 0.16
#2

Updated by Denis Kildishev almost 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3586.

#3

Updated by Denis Kildishev over 5 years ago

  • Published in build set to 0.16.201
#4

Updated by Alexey Khoroshilov about 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF