}
/*
+ * Get the global 'Undo history size' setting
+ *
+ */
+ protected int getUndoHistorySize () {
+ IPreferenceStore store= getPreferenceStore ();
+
+ return store != null ? store.getInt("undoHistorySize") : 1000;
+ }
+
+
+ /*
* @see org.eclipse.jface.text.source.ISourceViewer#configure(org.eclipse.jface.text.source.SourceViewerConfiguration)
*/
public void configure(SourceViewerConfiguration configuration) {
prependAutoEditStrategy(smartSemi, IPHPPartitions.PHP_STRING_SQ);
prependAutoEditStrategy(smartSemi,
IPHPPartitions.PHP_STRING_HEREDOC);
+
+ fUndoManager.setMaximalUndoLevel (this.getUndoHistorySize ()); // Set every editor to the global 'Undo history size'
}
/*