Changeset 335
- Timestamp:
- 09/11/08 13:23:14 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jasko.tim.lisp/src/jasko/tim/lisp/editors/LispConfiguration.java
r325 r335 60 60 } 61 61 }; 62 63 public void stopContentAssistant(){ 64 ca.enableAutoActivation(false); 65 } 66 67 /* returns to state defined in AUTO_POPUP_COMPLETIONS) */ 68 public void startContentAssistant(){ 69 ca.enableAutoActivation(LispPlugin.getDefault().getPreferenceStore() 70 .getBoolean(PreferenceConstants.AUTO_POPUP_COMPLETIONS)); 71 } 62 72 63 73 public LispConfiguration(ILispEditor editor, ColorManager colorManager) { jasko.tim.lisp/src/jasko/tim/lisp/views/ReplView.java
r327 r335 58 58 protected ReplHistory history; 59 59 protected ReplEditor in; 60 protected LispConfiguration inconfig; 60 61 61 62 protected Composite parentControl; … … 67 68 protected Button btn; 68 69 protected Label replPackage; 70 private boolean inReadMode; 69 71 70 72 private boolean replInited = false; … … 371 373 comp2.setLayout(layout); 372 374 373 in = new ReplEditor(comp2, new VerticalRuler(10), SWT.V_SCROLL | SWT.MULTI | SWT.LEFT | SWT.BORDER); 375 in = new ReplEditor(comp2, new VerticalRuler(10), 376 SWT.V_SCROLL | SWT.MULTI | SWT.LEFT | SWT.BORDER); 377 inconfig = in.config; 378 inReadMode = false; 374 379 375 380 in.getControl().setLayoutData(gd); … … 898 903 appendText(swank.fetchDisplayText() + "\n"); 899 904 scrollDown(); 905 inReadMode = false; 900 906 } 901 907 }); … … 1065 1071 public void verifyKey(VerifyEvent event) { 1066 1072 boolean ctrl = true; 1067 if( LispPlugin.getDefault().getPreferenceStore()1073 if( !inReadMode && LispPlugin.getDefault().getPreferenceStore() 1068 1074 .getBoolean(PreferenceConstants.USE_CTRL_ENTER) ){ 1069 1075 ctrl = event.stateMask == SWT.CONTROL; … … 1180 1186 1181 1187 protected void pushReadState(String s1, String s2) { 1188 inReadMode = true; 1189 inconfig.stopContentAssistant(); 1182 1190 ReplView.switchToRepl(); 1183 1191 pushState(new ReadState(s1, s2)); … … 1232 1240 appendInput(">> " + command); 1233 1241 scrollDown(); 1242 inconfig.startContentAssistant(); 1234 1243 return true; 1235 1244 } … … 1241 1250 } 1242 1251 1243 1244 1245 1246 1252 1247 1253 1248 1254 protected class DebugState implements State,
