Ignore:
Timestamp:
07/02/08 12:38:54 (16 years ago)
Author:
ra33
Message:

added functionality for dockable @v's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Simple.java

    r108 r115  
    3232import org.expeditee.items.Line;
    3333import org.expeditee.items.Text;
    34 import org.expeditee.items.Item.SelectedMode;
     34import org.expeditee.items.Item.HighlightMode;
    3535import org.expeditee.simple.AboveMaxParametreCountException;
    3636import org.expeditee.simple.BelowMinParametreCountException;
     
    375375        private static void FlagError(Item item) {
    376376                FrameUtils.DisplayFrame(item.getParent().getName(), true);
    377                 item.setSelectedMode(SelectedMode.Normal);
    378                 item.setSelectionColor(Color.CYAN);
     377                item.setHighlightMode(HighlightMode.Normal);
     378                item.setHighlightColor(Color.CYAN);
    379379                FrameIO.SaveFrame(item.getParent());
    380380        }
     
    451451                                                item.setBackgroundColor(oldColor);
    452452                                        } else {
    453                                                 item.setSelectedMode(Item.SelectedMode.None);
     453                                                item.setHighlightMode(Item.HighlightMode.None);
    454454                                        }
    455455                                }
     
    500500                Color oldColor = item.getBackgroundColor();
    501501                item.setBackgroundColor(_stepColor);
    502                 item.setSelectedMode(Item.SelectedMode.None);
     502                item.setHighlightMode(Item.HighlightMode.None);
    503503
    504504                // Make sure we are on the frame with this item
     
    519519                        if (_stop) {
    520520                                item.setBackgroundColor(oldColor);
    521                                 item.setSelectedMode(SelectedMode.Normal, _stepColor);
     521                                item.setHighlightMode(HighlightMode.Normal, _stepColor);
    522522                                throw new Exception("Program terminated");
    523523                        }
     
    19201920                        assertVariableType(tokens[1], 1, SPointer.filePrefix);
    19211921
    1922                         StringBuilder textToWrite = new StringBuilder();
     1922                        StringBuffer textToWrite = new StringBuffer();
    19231923                        if (tokens.length == 1) {
    19241924                                textToWrite.append(context.getPrimitives().getVariable(
     
    19371937
    19381938                        if (!tokens[0].equals("writefile"))
    1939                                 textToWrite.append('\n');
     1939                                textToWrite.append(Text.LINE_SEPARATOR);
    19401940                        context.writeFile(tokens[1], textToWrite.toString());
    19411941                } else if (tokens[0].equals("displayframeset")) {
Note: See TracChangeset for help on using the changeset viewer.