diff options
author | Camille Letavernier | 2014-03-05 12:05:28 +0000 |
---|---|---|
committer | Camille Letavernier | 2014-03-05 12:19:15 +0000 |
commit | 282441c5d435c15da577dc58d35760ce42773bb0 (patch) | |
tree | 1bff90cb131bb9205c3424eecf8f381dfe998617 /plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading | |
parent | d02f44e046ae5cdbcf243c7bd2c02ebafa8ff683 (diff) | |
download | org.eclipse.papyrus-282441c5d435c15da577dc58d35760ce42773bb0.tar.gz org.eclipse.papyrus-282441c5d435c15da577dc58d35760ce42773bb0.tar.xz org.eclipse.papyrus-282441c5d435c15da577dc58d35760ce42773bb0.zip |
429239: [Resource Management] Refactoring of the 3-files model and
PageManager
https://bugs.eclipse.org/bugs/show_bug.cgi?id=429239
- Make the PageManager/DiContentProvider transactional
- Don't use Commands for manipulating the PageManager/DiContentProvider
Diffstat (limited to 'plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading')
-rw-r--r-- | plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading/src/org/eclipse/papyrus/infra/services/resourceloading/editor/UnloadResourcesEditorModel.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading/src/org/eclipse/papyrus/infra/services/resourceloading/editor/UnloadResourcesEditorModel.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading/src/org/eclipse/papyrus/infra/services/resourceloading/editor/UnloadResourcesEditorModel.java index ffd71bfcc4b..c0fbb880675 100644 --- a/plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading/src/org/eclipse/papyrus/infra/services/resourceloading/editor/UnloadResourcesEditorModel.java +++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading/src/org/eclipse/papyrus/infra/services/resourceloading/editor/UnloadResourcesEditorModel.java @@ -24,9 +24,9 @@ import org.eclipse.ui.part.EditorPart; /**
* A simple model that can be used as editor in tests.
- *
+ *
* @author cedric dumoulin
- *
+ *
*/
public class UnloadResourcesEditorModel implements IEditorModel {
@@ -42,7 +42,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageModel#getTabTitle()
- *
+ *
* @return
*/
public String getTabTitle() {
@@ -51,7 +51,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageModel#getTabIcon()
- *
+ *
* @return
*/
public Image getTabIcon() {
@@ -60,7 +60,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageModel#getRawModel()
- *
+ *
* @return
*/
public Object getRawModel() {
@@ -70,7 +70,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IEditorModel#createIEditorPart()
- *
+ *
* @return
* @throws PartInitException
*/
@@ -80,7 +80,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IEditorModel#getActionBarContributor()
- *
+ *
* @return
*/
public EditorActionBarContributor getActionBarContributor() {
@@ -89,9 +89,9 @@ public class UnloadResourcesEditorModel implements IEditorModel { /**
* A class implementing a fake editor.
- *
+ *
* @author dumoulin
- *
+ *
*/
public static class UnloadResourcesEditorPart extends EditorPart {
@@ -135,7 +135,7 @@ public class UnloadResourcesEditorModel implements IEditorModel { label.setImage(image);
label.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false));
Text t = new Text(compo, SWT.None);
- t.setText("This diagram is contained in an unresolved resource : " + unloadedUri.trimFragment().toString());
+ t.setText("This diagram is contained in an unresolved resource : " + URI.decode(unloadedUri.trimFragment().toString()));
t.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
t.setEditable(false);
label.setBackground(t.getBackground());
|