Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 338750
Collapse All | Expand All

(-)src/org/eclipse/b3/aggregator/presentation/AggregatorEditor.java (-1 / +14 lines)
Lines 320-325 Link Here
320
320
321
	public static final String AGGREGATOR_NONPERSISTENT_PROBLEM_MARKER = "org.eclipse.b3.aggregator.editor.diagnostic.nonpersistent";
321
	public static final String AGGREGATOR_NONPERSISTENT_PROBLEM_MARKER = "org.eclipse.b3.aggregator.editor.diagnostic.nonpersistent";
322
322
323
	protected static Collection<Object> CLIPBOARD = null;
324
323
	/**
325
	/**
324
	 * This looks up a string in the plugin's plugin.properties file.
326
	 * This looks up a string in the plugin's plugin.properties file.
325
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
327
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
Lines 2103-2118 Link Here
2103
			}
2105
			}
2104
		});
2106
		});
2105
2107
2106
		// Create the editing domain with a special command stack.
2108
		// Create the editing domain with a special command stack and a shared clipboard.
2107
		//
2109
		//
2108
		editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>()) {
2110
		editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>()) {
2109
			@Override
2111
			@Override
2112
			public Collection<Object> getClipboard() {
2113
				return CLIPBOARD;
2114
			}
2115
2116
			@Override
2110
			public boolean isReadOnly(Resource resource) {
2117
			public boolean isReadOnly(Resource resource) {
2111
				if(resource instanceof MetadataRepositoryResourceImpl)
2118
				if(resource instanceof MetadataRepositoryResourceImpl)
2112
					return true;
2119
					return true;
2113
2120
2114
				return super.isReadOnly(resource);
2121
				return super.isReadOnly(resource);
2115
			}
2122
			}
2123
2124
			@Override
2125
			public void setClipboard(Collection<Object> clipboard) {
2126
				CLIPBOARD = clipboard;
2127
			}
2128
2116
		};
2129
		};
2117
	}
2130
	}
2118
2131

Return to bug 338750