Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvelten2011-10-17 13:45:32 +0000
committermvelten2011-10-17 13:45:32 +0000
commit466ee71ca1a842d623aa32dd5f4fb0310310c16b (patch)
tree4d6c949b04942ce4a3ca9bf3fe51bba8b59a30c5 /plugins/core
parent95fe9cb5faeb46dc4283b3fc546cbb4a1d8d7266 (diff)
downloadorg.eclipse.papyrus-466ee71ca1a842d623aa32dd5f4fb0310310c16b.tar.gz
org.eclipse.papyrus-466ee71ca1a842d623aa32dd5f4fb0310310c16b.tar.xz
org.eclipse.papyrus-466ee71ca1a842d623aa32dd5f4fb0310310c16b.zip
NEW - bug 357250: [General] Application reacts different ways when trying to modify a read-only resource
https://bugs.eclipse.org/bugs/show_bug.cgi?id=357250 backport from branch
Diffstat (limited to 'plugins/core')
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/META-INF/MANIFEST.MF36
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/build.properties8
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/plugin.xml6
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/schema/operationApprover.exsd78
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/src/org/eclipse/papyrus/commands/Activator.java12
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/src/org/eclipse/papyrus/commands/CheckedDiagramCommandStack.java39
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/src/org/eclipse/papyrus/commands/CheckedOperationHistory.java302
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java63
-rw-r--r--plugins/core/org.eclipse.papyrus.commands/src/org/eclipse/papyrus/commands/wrappers/OperationToGEFCommandWrapper.java13
-rw-r--r--plugins/core/org.eclipse.papyrus.controlmode/src/org/eclipse/papyrus/controlmode/action/PapyrusControlAction.java4
-rw-r--r--plugins/core/org.eclipse.papyrus.controlmode/src/org/eclipse/papyrus/controlmode/action/PapyrusUncontrolAction.java4
-rw-r--r--plugins/core/org.eclipse.papyrus.controlmode/src/org/eclipse/papyrus/controlmode/commands/ControlCommand.java13
-rw-r--r--plugins/core/org.eclipse.papyrus.controlmode/src/org/eclipse/papyrus/controlmode/commands/UncontrolCommand.java13
-rw-r--r--plugins/core/org.eclipse.papyrus.core.adaptor.gmf/src/org/eclipse/papyrus/core/adaptor/gmf/AbstractPapyrusGmfCreateDiagramCommandHandler.java39
-rw-r--r--plugins/core/org.eclipse.papyrus.core.adaptor.gmf/src/org/eclipse/papyrus/core/adaptor/gmf/SynchronizableGmfDiagramEditor.java31
-rw-r--r--plugins/core/org.eclipse.papyrus.core/plugin.xml1
-rw-r--r--plugins/core/org.eclipse.papyrus.core/schema/transactionalEditingDomainProvider.exsd109
-rw-r--r--plugins/core/org.eclipse.papyrus.core/src/org/eclipse/papyrus/core/extension/commands/ModelCreationCommandBase.java9
-rw-r--r--plugins/core/org.eclipse.papyrus.core/src/org/eclipse/papyrus/resource/ITransactionalEditingDomainProvider.java8
-rw-r--r--plugins/core/org.eclipse.papyrus.core/src/org/eclipse/papyrus/resource/ModelSet.java7
-rw-r--r--plugins/core/org.eclipse.papyrus.core/src/org/eclipse/papyrus/resource/TransactionalEditingDomainManager.java85
-rw-r--r--plugins/core/org.eclipse.papyrus.documentation.view.papyrus/src/org/eclipse/papyrus/documentation/view/papyrus/PapyrusDocumentationPartHandler.java18
-rw-r--r--plugins/core/org.eclipse.papyrus.properties.runtime/src/org/eclipse/papyrus/properties/runtime/controller/EMFTPropertyEditorController.java17
-rw-r--r--plugins/core/org.eclipse.papyrus.properties.runtime/src/org/eclipse/papyrus/properties/runtime/propertyeditor/AbstractTablePropertyEditor.java12
-rw-r--r--plugins/core/org.eclipse.papyrus.properties.runtime/src/org/eclipse/papyrus/properties/runtime/propertyeditor/MultiplePrimitiveTypedPropertyEditor.java4
-rw-r--r--plugins/core/org.eclipse.papyrus.properties.runtime/src/org/eclipse/papyrus/properties/runtime/propertyeditor/MultipleReferencePropertyEditor.java4
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/.classpath7
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/.project28
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/META-INF/MANIFEST.MF14
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/about.html28
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/build.properties11
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/icons/enable_write.pngbin0 -> 3321 bytes
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/plugin.properties8
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/plugin.xml126
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/schema/readOnlyHandler.exsd109
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/Activator.java45
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/FSReadOnlyHandler.java68
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/FSReadOnlyOneFileApprover.java116
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/IReadOnlyHandler.java23
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/ReadOnlyManager.java113
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/ReadOnlyTester.java45
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/ReadOnlyTransactionalEditingDomainProvider.java46
-rw-r--r--plugins/core/org.eclipse.papyrus.readonly/src/org/eclipse/papyrus/readonly/handlers/EnableWriteHandler.java71
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/.classpath7
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/.project28
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/META-INF/MANIFEST.MF17
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/about.html28
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/build.properties6
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/plugin.properties8
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/plugin.xml12
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/src/org/eclipse/papyrus/svn/Activator.java45
-rw-r--r--plugins/core/org.eclipse.papyrus.svn/src/org/eclipse/papyrus/svn/SVNLockHandler.java48
-rw-r--r--plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/edit/part/PopupXtextEditorHelper.java6
55 files changed, 1899 insertions, 115 deletions
diff --git a/plugins/core/org.eclipse.papyrus.commands/META-INF/MANIFEST.MF b/plugins/core/org.eclipse.papyrus.commands/META-INF/MANIFEST.MF
index e4b29b92eda..6064104fca8 100644
--- a/plugins/core/org.eclipse.papyrus.commands/META-INF/MANIFEST.MF
+++ b/plugins/core/org.eclipse.papyrus.commands/META-INF/MANIFEST.MF
@@ -1,18 +1,18 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.papyrus.commands;singleton:=true
-Bundle-Version: 0.9.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.commands.Activator
-Bundle-Vendor: %providerName
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.ui.workbench,
- org.eclipse.papyrus.log,
- org.eclipse.gmf.runtime.common.core,
- org.eclipse.emf.common,
- org.eclipse.gef,
- org.eclipse.gmf.runtime.diagram.ui
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.papyrus.commands,
- org.eclipse.papyrus.commands.wrappers
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.commands,
+ org.eclipse.papyrus.commands.wrappers
+Require-Bundle: org.eclipse.ui.workbench,
+ org.eclipse.papyrus.log,
+ org.eclipse.gmf.runtime.common.core,
+ org.eclipse.emf.common,
+ org.eclipse.gef,
+ org.eclipse.gmf.runtime.diagram.ui
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 0.9.0.qualifier
+Bundle-Name: %pluginName
+Bundle-Activator: org.eclipse.papyrus.commands.Activator
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.commands;singleton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/plugins/core/org.eclipse.papyrus.commands/build.properties b/plugins/core/org.eclipse.papyrus.commands/build.properties
index 050ac6e1f70..6539c962332 100644
--- a/plugins/core/org.eclipse.papyrus.commands/build.properties
+++ b/plugins/core/org.eclipse.papyrus.commands/build.properties
@@ -1,7 +1,11 @@
#
#Fry Sep 16 11:19:32 CEST 2011
-bin.includes=META-INF/,.,plugin.properties,about.html
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ about.html,\
+ plugin.xml
output..=bin/
-src.includes=META-INF/,.,plugin.properties,about.html
+src.includes = about.html
source..=src/
bin..=bin/
diff --git a/plugins/core/org.eclipse.papyrus.commands/plugin.xml b/plugins/core/org.eclipse.papyrus.commands/plugin.xml
new file mode 100644
index 00000000000..9fef2c770d4
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.commands/plugin.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension-point id="operationApprover" name="operationApprover" schema="schema/operationApprover.exsd"/>
+
+</plugin>
diff --git a/plugins/core/org.eclipse.papyrus.commands/schema/operationApprover.exsd b/plugins/core/org.eclipse.papyrus.commands/schema/operationApprover.exsd
new file mode 100644
index 00000000000..1b3e020a89a
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.commands/schema/operationApprover.exsd
@@ -0,0 +1,78 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.commands" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.eclipse.papyrus.commands" id="operationApprover" name="operationApprover"/>
+ </appinfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="operationApprover" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="operationApprover">
+ <complexType>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.core.commands.operations.IOperationApprover2"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="priority" type="string">
+ <annotation>
+ <documentation>
+ An integer value representing the priority of the operationApprover.
+High value means the operationApprover will be checked before those with lower value.
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+
+
+
+
+
+</schema>
diff --git a/plugins/core/org.ecl