Mercurial > hg > RemoteEditor > REPSessionManager
comparison test/editortest/REPSimpleEditor.java @ 415:648c676bf9df
REPSimpleEditor
author | one |
---|---|
date | Tue, 09 Dec 2008 16:34:41 +0900 |
parents | 784a4d67e6a5 |
children | b7f42fc75a36 |
comparison
equal
deleted
inserted
replaced
414:784a4d67e6a5 | 415:648c676bf9df |
---|---|
60 private void setToolBar() { | 60 private void setToolBar() { |
61 JToolBar toolbar = new JToolBar(); | 61 JToolBar toolbar = new JToolBar(); |
62 putButton = new JButton("put"); | 62 putButton = new JButton("put"); |
63 joinButton = new JButton("join"); | 63 joinButton = new JButton("join"); |
64 | 64 |
65 putButton.addActionListener(this); | 65 //putButton.addActionListener(this); |
66 joinButton.addActionListener(this); | 66 //joinButton.addActionListener(this); |
67 | 67 |
68 toolbar.add(putButton); | 68 toolbar.add(putButton); |
69 toolbar.add(joinButton); | 69 toolbar.add(joinButton); |
70 add(toolbar, BorderLayout.NORTH); | 70 add(toolbar, BorderLayout.NORTH); |
71 } | 71 } |
106 String text = textArea.getText(lineStart, lineEnd-lineStart); | 106 String text = textArea.getText(lineStart, lineEnd-lineStart); |
107 command = new REPCommand(REP.REPCMD_INSERT_USER, sid, eid, seq++, lineno, text); | 107 command = new REPCommand(REP.REPCMD_INSERT_USER, sid, eid, seq++, lineno, text); |
108 } catch (BadLocationException e1) { | 108 } catch (BadLocationException e1) { |
109 e1.printStackTrace(); | 109 e1.printStackTrace(); |
110 } | 110 } |
111 Logger.printT(command); | 111 //Logger.printT(command); |
112 return command; | 112 return command; |
113 } | 113 } |
114 | 114 |
115 public void changedUpdate(DocumentEvent e) { | 115 public void changedUpdate(DocumentEvent e) { |
116 Logger.print(e); | 116 Logger.print(e); |