Bug 282008 [Compatibility] Support for 'sticky' views
We need to support the legacy 'sticky' view mechanism. This is used for Help, Cheat Sheets and such that need to remain visible across perspective switches.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/PartSashFactory.java
org.eclipse.e4.ui.model.application.MSashForm<?> sashPart = (org.eclipse.e4.ui.model.application.MSashForm<?>) part;
			List<Integer> weightList = sashPart.getWeights();
			
			if (weightList.size() != kids.size()) {
				for (int i = weightList.size(); i < kids.size(); i++) {
					weightList.add(new Integer(100));
				}
			}
			
			if (weightList.size() > 0) {
				int count = 0;
				int[] weights = new int[weightList.size()];
				for (Iterator iterator = weightList.iterator(); iterator
						.hasNext();) {
					Integer integer = (Integer) iterator.next();
					weights[count++] = integer;
				}
				sashForm.setWeights(weights);
			}
			
			
			sashPart.eAdapters().add(new AdapterImpl() {
				@Override
				public void notifyChanged(Notification msg) {
					if (ApplicationPackage.Literals.MSASH_FORM__WEIGHTS
							.equals(msg.getFeature())
							&& msg.getNewValue() != null) {
						synchWeightsToModel(sashForm);
					}
				}