Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2005-07-08 17:47:02 -0400
committerAlain Magloire2005-07-08 17:47:02 -0400
commit0e90fb8c5ca5130452d0f7aaf246c7ec946d1e8c (patch)
treeeceb8093bb1428140dd8c1d797b6148d7585d7e4
parentc9c3c46bb9b863f68c580fdd28fc5e61d07973b4 (diff)
downloadorg.eclipse.cdt-0e90fb8c5ca5130452d0f7aaf246c7ec946d1e8c.tar.gz
org.eclipse.cdt-0e90fb8c5ca5130452d0f7aaf246c7ec946d1e8c.tar.xz
org.eclipse.cdt-0e90fb8c5ca5130452d0f7aaf246c7ec946d1e8c.zip
Operation is readOnly
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryContainerUpdatesOperation.java8
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntryContainerOperation.java7
2 files changed, 15 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryContainerUpdatesOperation.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryContainerUpdatesOperation.java
index e0492ae411..448a8d7979 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryContainerUpdatesOperation.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryContainerUpdatesOperation.java
@@ -33,6 +33,14 @@ public class PathEntryContainerUpdatesOperation extends CModelOperation {
this.container = container;
this.events = events;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
+ */
+ public boolean isReadOnly() {
+ return true;
+ }
+
protected void executeOperation() throws CModelException {
PathEntryManager pathEntryManager = PathEntryManager.getDefault();
ArrayList list = new ArrayList(events.length);
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntryContainerOperation.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntryContainerOperation.java
index 5ab36322c0..6d5ebddada 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntryContainerOperation.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntryContainerOperation.java
@@ -33,6 +33,13 @@ public class SetPathEntryContainerOperation extends CModelOperation {
fPathEntryManager = PathEntryManager.getDefault();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.internal.core.model.CModelOperation#isReadOnly()
+ */
+ public boolean isReadOnly() {
+ return true;
+ }
+
protected void executeOperation() throws CModelException {
if (isCanceled()) {
return;

Back to the top