ВУЗ:
Составители:
Рубрика:
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
14
ɉɨɫɦɨɬɪɢɬɟ ɧɚ ɩɪɟɞɫɬɚɜɥɟɧɢɟ Outline, ɪɚɫɩɨɥɨɠɟɧɧɨɟ ɫɩɪɚɜɚ. Ɉɧɨ
ɨɬɨɛɪɚɠɚɟɬ ɫɯɟɦɭ ɮɚɣɥɨɜ Java, ɜɤɥɸɱɚɹ ɨɛɴɹɜɥɟɧɢɟ ɩɚɤɟɬɚ,
ɨɛɴɹɜɥɟɧɢɟ ɢɦɩɨɪɬɚ, ɩɨɥɹ, ɬɢɩɵ ɢ ɦɟɬɨɞɵ. ɉɪɟɞɫɬɚɜɥɟɧɢɟ Outline
ɢɫɩɨɥɶɡɭɟɬ ɢɤɨɧɤɢ ɞɥɹ ɨɩɢɫɚɧɢɹ ɷɥɟɦɟɧɬɨɜ Java. ɇɚɩɪɢɦɟɪ, ɢɤɨɧɤɚ,
ɩɨɤɚɡɵɜɚɸɳɚɹ, ɹɜɥɹɟɬɫɹ ɥɢ ɷɥɟɦɟɧɬ Java ɫɬɚɬɢɱɟɫɤɢɦ, ɚɛɫɬɪɚɤɬɧɵɦ
ɢɥɢ ɮɢɧɚɥɶɧɵɦ. Ɋɚɡɧɵɟ ɢɤɨɧɤɢ ɩɨɤɚɡɵɜɚɸɬ, ɩɟɪɟɤɪɵɜɚɟɬ ɥɢ ɦɟɬɨɞ
ɛɚɡɨɜɨɝɨ ɤɥɚɫɫɚ (
) ɢɥɢ ɪɟɚɥɢɡɭɟɬ ɦɟɬɨɞ ɢɧɬɟɪɮɟɣɫɚ ( ).
3. ɉɟɪɟɤɥɸɱɚɣɬɟ ɤɧɨɩɤɢ Hide Fields, Hide Static Fields and Metholds ɢ
Hide Non-Public Members ɜ ɩɚɧɟɥɢ ɢɧɫɬɪɭɦɟɧɬɨɜ ɩɪɟɞɫɬɚɜɥɟɧɢɹ
Outline, ɱɬɨɛɵ ɮɢɥɶɬɪɨɜɚɬɶ ɬɨ, ɱɬɨ ɨɬɨɛɪɚɠɚɟɬɫɹ ɜ ɩɪɟɞɫɬɚɜɥɟɧɢɢ.
ɉɟɪɟɞ ɩɟɪɟɯɨɞɨɦ ɤ ɫɥɟɞɭɸɳɟɦɭ ɲɚɝɭ ɭɛɟɞɢɬɟɫɶ, ɱɬɨ ɤɧɨɩɤɚ Hide
Non-Public Members ɧɟ ɧɚɠɚɬɚ.
4. Ɇɨɠɧɨ ɪɟɞɚɤɬɢɪɨɜɚɬɶ ɢɫɯɨɞɧɵɣ ɤɨɞ, ɩɪɨɫɦɚɬɪɢɜɚɹ ɜɟɫɶ ɮɚɣɥ Java,
ɢɥɢ ɨɝɪɚɧɢɱɢɬɶ ɩɪɟɞɫɬɚɜɥɟɧɢɟ ɟɞɢɧɫɬɜɟɧɧɵɦ ɷɥɟɦɟɧɬɨɦ Java.
ɉɚɧɟɥɶ ɢɧɫɬɪɭɦɟɧɬɨɜ ɜɤɥɸɱɚɟɬ ɜ ɫɟɛɹ ɤɧɨɩɤɭ Show Source of
Selected Element Only, ɱɬɨ ɩɪɢɜɟɞɟɬ ɤ ɬɨɦɭ, ɱɬɨ ɜ ɪɟɞɚɤɬɨɪɟ Java
ɛɭɞɟɬ ɨɬɨɛɪɚɠɚɬɶɫɹ ɢɫɯɨɞɧɵɣ ɤɨɞ ɬɨɥɶɤɨ ɜɵɛɪɚɧɧɨɝɨ ɧɚ ɫɯɟɦɟ
ɷɥɟɦɟɧɬɚ. ȼ ɩɪɢɦɟɪɟ ɧɢɠɟ ɨɬɨɛɪɚɠɚɟɬɫɹ ɬɨɥɶɤɨ ɦɟɬɨɞ
setUp().
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
ɉɨɫɦɨɬɪɢɬɟ ɧɚ ɩɪɟɞɫɬɚɜɥɟɧɢɟ Outline, ɪɚɫɩɨɥɨɠɟɧɧɨɟ ɫɩɪɚɜɚ. Ɉɧɨ
ɨɬɨɛɪɚɠɚɟɬ ɫɯɟɦɭ ɮɚɣɥɨɜ Java, ɜɤɥɸɱɚɹ ɨɛɴɹɜɥɟɧɢɟ ɩɚɤɟɬɚ,
ɨɛɴɹɜɥɟɧɢɟ ɢɦɩɨɪɬɚ, ɩɨɥɹ, ɬɢɩɵ ɢ ɦɟɬɨɞɵ. ɉɪɟɞɫɬɚɜɥɟɧɢɟ Outline
ɢɫɩɨɥɶɡɭɟɬ ɢɤɨɧɤɢ ɞɥɹ ɨɩɢɫɚɧɢɹ ɷɥɟɦɟɧɬɨɜ Java. ɇɚɩɪɢɦɟɪ, ɢɤɨɧɤɚ,
ɩɨɤɚɡɵɜɚɸɳɚɹ, ɹɜɥɹɟɬɫɹ ɥɢ ɷɥɟɦɟɧɬ Java ɫɬɚɬɢɱɟɫɤɢɦ, ɚɛɫɬɪɚɤɬɧɵɦ
ɢɥɢ ɮɢɧɚɥɶɧɵɦ. Ɋɚɡɧɵɟ ɢɤɨɧɤɢ ɩɨɤɚɡɵɜɚɸɬ, ɩɟɪɟɤɪɵɜɚɟɬ ɥɢ ɦɟɬɨɞ
ɛɚɡɨɜɨɝɨ ɤɥɚɫɫɚ ( ) ɢɥɢ ɪɟɚɥɢɡɭɟɬ ɦɟɬɨɞ ɢɧɬɟɪɮɟɣɫɚ ( ).
3. ɉɟɪɟɤɥɸɱɚɣɬɟ ɤɧɨɩɤɢ Hide Fields, Hide Static Fields and Metholds ɢ
Hide Non-Public Members ɜ ɩɚɧɟɥɢ ɢɧɫɬɪɭɦɟɧɬɨɜ ɩɪɟɞɫɬɚɜɥɟɧɢɹ
Outline, ɱɬɨɛɵ ɮɢɥɶɬɪɨɜɚɬɶ ɬɨ, ɱɬɨ ɨɬɨɛɪɚɠɚɟɬɫɹ ɜ ɩɪɟɞɫɬɚɜɥɟɧɢɢ.
ɉɟɪɟɞ ɩɟɪɟɯɨɞɨɦ ɤ ɫɥɟɞɭɸɳɟɦɭ ɲɚɝɭ ɭɛɟɞɢɬɟɫɶ, ɱɬɨ ɤɧɨɩɤɚ Hide
Non-Public Members ɧɟ ɧɚɠɚɬɚ.
4. Ɇɨɠɧɨ ɪɟɞɚɤɬɢɪɨɜɚɬɶ ɢɫɯɨɞɧɵɣ ɤɨɞ, ɩɪɨɫɦɚɬɪɢɜɚɹ ɜɟɫɶ ɮɚɣɥ Java,
ɢɥɢ ɨɝɪɚɧɢɱɢɬɶ ɩɪɟɞɫɬɚɜɥɟɧɢɟ ɟɞɢɧɫɬɜɟɧɧɵɦ ɷɥɟɦɟɧɬɨɦ Java.
ɉɚɧɟɥɶ ɢɧɫɬɪɭɦɟɧɬɨɜ ɜɤɥɸɱɚɟɬ ɜ ɫɟɛɹ ɤɧɨɩɤɭ Show Source of
Selected Element Only, ɱɬɨ ɩɪɢɜɟɞɟɬ ɤ ɬɨɦɭ, ɱɬɨ ɜ ɪɟɞɚɤɬɨɪɟ Java
ɛɭɞɟɬ ɨɬɨɛɪɚɠɚɬɶɫɹ ɢɫɯɨɞɧɵɣ ɤɨɞ ɬɨɥɶɤɨ ɜɵɛɪɚɧɧɨɝɨ ɧɚ ɫɯɟɦɟ
ɷɥɟɦɟɧɬɚ. ȼ ɩɪɢɦɟɪɟ ɧɢɠɟ ɨɬɨɛɪɚɠɚɟɬɫɹ ɬɨɥɶɤɨ ɦɟɬɨɞ setUp().
14
Страницы
- « первая
- ‹ предыдущая
- …
- 12
- 13
- 14
- 15
- 16
- …
- следующая ›
- последняя »
