if (! compatibilityRequired) requires.add(PI_RUNTIME_COMPATIBILITY);  String[] requireBundles = new String[requires.size()]; requires.toArray(requireBundles);
String[] requireBundles; if (requires != null) { requireBundles = new String[requires.size()]; requires.toArray(requireBundles); } else { requireBundles = new String[0]; }
		public String[] getRequires() {			if (requires == null)				return new String[]{ PI_RUNTIME_COMPATIBILITY };			if (schemaVersion == null) {				//Add elements on the requirement list of ui and help.				for (int i = 0; i < requires.size(); i++) {					if ("org.eclipse.ui".equals(requires.get(i))) { //$NON-NLS-1$ 						requires.add(i + 1, "org.eclipse.ui.workbench.texteditor;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 						requires.add(i + 1, "org.eclipse.jface.text;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 						requires.add(i + 1, "org.eclipse.ui.editors;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 						requires.add(i + 1, "org.eclipse.ui.views;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 						requires.add(i + 1, "org.eclipse.ui.ide;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 					} else if ("org.eclipse.help".equals(requires.get(i))) { //$NON-NLS-1$ 						requires.add(i + 1, "org.eclipse.help.base;" + Constants.OPTIONAL_ATTRIBUTE + "=" + "true"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 					}				}			}			if (! compatibilityRequired)				requires.add(PI_RUNTIME_COMPATIBILITY);						String[] requireBundles = new String[requires.size()];			requires.toArray(requireBundles);			return requireBundles;		}