Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2003-09-22 13:24:27 +0000
committerteicher2003-09-22 13:24:27 +0000
commit0df46147059c5417ebd4838f4e1459f01d373613 (patch)
tree5417363200755d7fb302aaedd69e253dde98a1fe /org.eclipse.ui.editors
parent8a0c173a89c3185acedb7358d9beb3740b1cff07 (diff)
downloadeclipse.platform.text-0df46147059c5417ebd4838f4e1459f01d373613.tar.gz
eclipse.platform.text-0df46147059c5417ebd4838f4e1459f01d373613.tar.xz
eclipse.platform.text-0df46147059c5417ebd4838f4e1459f01d373613.zip
fixed several modifying actions to support the validateEdit protocol:
- two protected methods in TextEditorAction allow to check / validate read-only state (API addition): - canModifyEditor() - validateEdit() - changed several actions that either - did not properly check read-only state - did not support validateEdit - or were converted to use the new methods in TextEditorAction - the hourglass cursor is now shown while validateEdit is in progress. fixed PRs: 42344 40519 36613 36306 28440 21477
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r--org.eclipse.ui.editors/migration_guidelines.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.ui.editors/migration_guidelines.html b/org.eclipse.ui.editors/migration_guidelines.html
index 24fe5a436f9..3d331e687f4 100644
--- a/org.eclipse.ui.editors/migration_guidelines.html
+++ b/org.eclipse.ui.editors/migration_guidelines.html
@@ -21,6 +21,16 @@ call or change the signature in the extended method. The latter is
suggested since clients should decide how to handle invalid document
positions.<br>
</li>
+ <li><span style="font-weight: bold; font-style: italic;">org.eclipse.ui.texteditor.TextEditorAction.canModifyEditor()</span>:
+added predicate method that checks whether the action's editor can be modified. The method calls different methods on the underlying editor depending on
+which interfaces the editor implements. The method will call <code>ITextEditorExtension2.isEditorInputModifiable()</code> if it is available. Modifing actions
+can call the method when updating their enablement state.<br>
+</li>
+ <li><span style="font-weight: bold; font-style: italic;">org.eclipse.ui.texteditor.TextEditorAction.validateEdit()</span>:
+ added predicate method that checks and updates the modifiable state of the action's editor. The method calls different methods on the underlying editor depending on
+ which interfaces the editor implements. The method will call <code>ITextEditorExtension2.validateEditorInputState()</code> if it is available. Modifing actions
+ can call the method before running modifing the editor's content.<br>
+</li>
</ul>
</td>
</tr>

Back to the top