summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor V Rubezhny2013-10-29 14:58:05 (EDT)
committer Chris Jaun2013-10-29 14:58:05 (EDT)
commitb3c00d61105146af82a15184ef93599b8810e49c (patch)
tree79454c62f9335cbd7a87080572160f319f64ae14
parent5d1398ce08b61b1d6aa5bd88ea467738aeeb50da (diff)
downloadwebtools.jsdt.core-b3c00d61105146af82a15184ef93599b8810e49c.zip
webtools.jsdt.core-b3c00d61105146af82a15184ef93599b8810e49c.tar.gz
webtools.jsdt.core-b3c00d61105146af82a15184ef93599b8810e49c.tar.bz2
[420086] Copy text doesn't work from read-only javascript file
-rw-r--r--bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/CompilationUnitEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/CompilationUnitEditor.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/CompilationUnitEditor.java
index 1bf85d3..151d07b 100644
--- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/CompilationUnitEditor.java
+++ b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/CompilationUnitEditor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -159,7 +159,7 @@ public class CompilationUnitEditor extends JavaEditor implements IJavaReconcilin
*/
public void doOperation(int operation) {
- if (getTextWidget() == null || !isEditorInputModifiable())
+ if (getTextWidget() == null)
return;
switch (operation) {