fixes to the undo, remove thumbs.db in dist

This commit is contained in:
benfry
2005-05-08 15:31:30 +00:00
parent e6dac75864
commit d311b04bd3
7 changed files with 14 additions and 2 deletions
+2
View File
@@ -237,6 +237,7 @@ public class Editor extends JFrame
document.addUndoableEditListener(new UndoableEditListener() {
public void undoableEditHappened(UndoableEditEvent e) {
if (undo != null) {
//System.out.println(e.getEdit());
undo.addEdit(e.getEdit());
undoAction.updateUndoState();
redoAction.updateRedoState();
@@ -951,6 +952,7 @@ public class Editor extends JFrame
public void setText(String currentProgram,
int selectionStart, int selectionEnd,
UndoManager currentUndo) {
//System.out.println("setting text, changing undo");
this.undo = null;
//if (discardUndo) undo.discardAllEdits();
+5
View File
@@ -1069,6 +1069,11 @@ public class Sketch {
* </OL>
*/
public void setCurrent(int which) {
if (current == code[which]) {
//System.out.println("already current, ignoring");
return;
}
// get the text currently being edited
if (current != null) {
current.program = editor.getText();
+1 -2
View File
@@ -1165,8 +1165,7 @@ public class JEditTextArea extends JComponent
painter.invalidateLineRange(selectionStartLine,selectionEndLine);
painter.invalidateLineRange(newStartLine,newEndLine);
document.addUndoableEdit(new CaretUndo(
selectionStart,selectionEnd));
document.addUndoableEdit(new CaretUndo(selectionStart,selectionEnd));
selectionStart = newStart;
selectionEnd = newEnd;
+1
View File
@@ -54,6 +54,7 @@ dos2unix processing/lib/preferences.txt 2> /dev/null
find processing -name "*~" -exec rm -f {} ';'
find processing -name ".DS_Store" -exec rm -f {} ';'
find processing -name "._*" -exec rm -f {} ';'
find processing -name "Thumbs.db" -exec rm -f {} ';'
# clean out the cvs entries
find processing -name "CVS" -exec rm -rf {} ';' 2> /dev/null
+1
View File
@@ -91,6 +91,7 @@ find processing -name "*~" -exec rm -f {} ';'
# need to leave ds store stuff cuz one of those is important
#find processing -name ".DS_Store" -exec rm -f {} ';'
find processing -name "._*" -exec rm -f {} ';'
find processing -name "Thumbs.db" -exec rm -f {} ';'
# clean out the cvs entries
find processing -name "CVS" -exec rm -rf {} ';' 2> /dev/null
+1
View File
@@ -83,6 +83,7 @@ rm -f processing/lib/*.bak
find processing -name "*~" -exec rm -f {} ';'
find processing -name ".DS_Store" -exec rm -f {} ';'
find processing -name "._*" -exec rm -f {} ';'
find processing -name "Thumbs.db" -exec rm -f {} ';'
# chmod +x the crew
find processing -name "*.dll" -exec chmod +x {} ';'
+3
View File
@@ -1,5 +1,8 @@
0089 pde
X properly rolled the version number in Base
X fix nasty late-breaking undo bug
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1115560243;start=0
X remove Thumbs.db from examples/reference stuff
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .