Commit MetaInfo
Log Message
バージョンアップ
・EXIficient を 0.4 にバージョンアップ
・エディターで保存時に出る不必要なダイアログを抑制するように修正
Change Summary
Incremental Difference
| | @@ -1,5 +1,5 @@ | 1 | 1 | /* | 2 | | - * Copyright, 2009 Koichi Takahashi. All Rights Reserved. | | 2 | + * Copyright, 2010 Koichi Takahashi. All Rights Reserved. | 3 | 3 | * | 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 5 | 5 | * you may not use this file except in compliance with the License. |
| | @@ -191,8 +191,9 @@ | 191 | 191 | | 192 | 192 | IDocument document = this.getDocumentProvider().getDocument(input); | 193 | 193 | document.set(xml.toString(encoding)); | 194 | | - super.doSave(getProgressMonitor()); | 195 | | - updateStatusFields(); | | 194 | + // 変更したという「*」を消すために一旦XMLを保存 | | 195 | + super.performSave(true, getProgressMonitor()); // trueがポイント | | 196 | + // バックアップしておいたEXIを保存し、元に戻す。 | 196 | 197 | flush(); | 197 | 198 | } catch (Exception e) { | 198 | 199 | IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, Resources.get("EXIEditor.7"), e); //$NON-NLS-1$ |
| | @@ -210,11 +211,13 @@ | 210 | 211 | } | 211 | 212 | | 212 | 213 | public boolean isSaveAsAllowed() { | 213 | | - return true; | | 214 | + return false; // 別名で保存は許可しない | 214 | 215 | } | 215 | 216 | | 216 | 217 | public void doSave(IProgressMonitor progressMonitor) { | 217 | | - super.doSave(progressMonitor); | | 218 | + // 変更したという「*」を消すために一旦XMLを保存 | | 219 | + super.performSave(true, progressMonitor); // trueがポイント | | 220 | + // エディターのXMLをEXIにエンコードして保存 | 218 | 221 | save(); | 219 | 222 | } | 220 | 223 | |
Show on old repository browser
|