Project

General

Profile

Task #4794

duplicate code

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

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

100%

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

Description

requality\src\java\com\unitesk\requality\eclipse\handlers\OpenReviewEditorHandler.java
requality\src\java\com\unitesk\requality\eclipse\handlers\OpenUniEditorHandler.java

метод execute() отличается только константой editorId. Предлагаю метод execute() вынести в общий базовый класс, editorId получать виртуальным методом, переопределенном в каждом наследнике.

Associated revisions

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

fixes: #4794; creates superclass with abstract method getEditorId for editor opening as it mentioned in task

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

fixes: #4794; creates superclass with abstract method getEditorId for editor opening as it mentioned in task

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

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

fixes: #4794; creates superclass with abstract method getEditorId for editor opening as it mentioned in task

History

#1

Updated by Denis Kildishev almost 6 years ago

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

Applied in changeset r3509.

#2

Updated by Denis Kildishev almost 6 years ago

  • Published in build set to 0.15.197
#3

Updated by Alexey Khoroshilov almost 6 years ago

  • Target version set to 0.16
#4

Updated by Alexey Khoroshilov about 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF