Bug240698: Walkthrough - Part 1

10:35 AM / Comments (1) / by Kevin Vu

BUG SUMMARY:
1/ Add new server
2/ Edit Server
3/ Start Server
4/ "Save Resource" prompts. Select "No".
BUG: "Save Resource" prompts again asking for saving changes again even though selected "No" => Wrong behavior (Supposed to prompt one)

WALKTHROUGH 01
Let start at the point when we start the server and walkthrough to the point of "Save Resource" prompts.

I./ StartAction.java
Class defines methods to start servers

Method: public static void start(IServer server, String launchMode, final Shell shell)
This method is to start the server. So let's set a breakpoint here and step into.


Notice the ServerUIPlugin.saveEditors(). Let's step into this method.

II./ ServerUIPlugin.java
The server UI plugin class

Method: public static boolean saveEditors()

save dirty editors, if applicable
@return boolean - Returns false if the user cancelled the operation



Notice method "saveAllEditors". Let step into this method

III./ Workbench.class
primary responsability is the management of workbench windows, dialogs,
wizards, and other workbench-related windows.

Method: public boolean saveAllEditors(boolean confirm)
is to save all server editors


Notice method "EditorManager.saveAll". Let step into this method.

IV./ EditorManager.class
Manage a group of element editors. Prevent the creation of two editors on the same element.

Method: public static boolean saveAll
Saves the given dirty editors and views, optionally prompting the user.
@return true on success, false if the user canceled the save




Notice the red circle. This is where the first SaveResource dialog prompts for saving changes. User have 3 options:

YES: saveAll() method will process on and save all changes.
NO: saveAll() method will return TRUE
CANCEL: saveAll() method will return FALSE.

1 comments:

三重古天樂 @ September 12, 2015 at 6:12 PM

酒店經紀 酒店小姐 酒店經紀公司
台北酒店工作 台北酒店經紀人 酒店兼差 酒店兼職 酒店公關便服店 酒店上班 台北酒店上班 酒店打工 酒店工作內容 酒店pt 台北酒店 便服店 禮服店 酒店 酒店工作 酒店上班時間 酒店上班薪水 酒店上班內容 現領 當日領
打工兼職 打工兼差 酒店營業時間 酒店面試
酒店經濟
差点近くで分かりやすく酒店經紀、ショッピングや観光の酒店打工途中にも立ち寄りやすい場所酒店工作です。
店名になっている酒店上班參和院とは酒店兼差その発音から台湾の酒店兼職農村部で見かけ打工兼差るレンガ作りの昔の建物(三合院)で、ナビは伝統的な台湾料理の店をイメージして訪問しました。が、実際に訪問してみると小洒落たカフェバーのような雰囲気で打工兼職、とってもスタイリッシュ!ちょっと意表を突かれました台北酒店
參和院の林ラオバン
酒店應徵參和院の林ラオバン

店名と店内の雰囲気のギャップ禮服店 について林奕寛ラオバン酒店(老板=オーナーのこと)に伺ってみると、「そのギャップこそがこの店のコンセプト。伝統的な台湾料理、とくに熱炒のメニューをそのままに、新しいスタイルと空間で提供しています」經紀。一般的な熱炒のような雑然とした店構えとは異なり、店内は明るく清潔打工。スタッフも丁寧で柔らかな物腰なのでのおひとり様や女子同士、そして中国語ができない人 台北酒店經紀でも入りやすい雰囲気です。まさに酒店薪水 、これまでになかった新しいスタイルの熱炒です。たび
2015/09/13