Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.core;
import  org.eclipse.core.resources.IProject;
import  org.eclipse.core.resources.ResourcesPlugin;

Implementation of IJavaModel. A Java Model is specific to a workspace.

See also:
public class JavaModelInfo extends OpenableElementInfo {

A array with all the non-java projects contained by this model
Compute the non-java resources contained in this java project.
	IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
	int length = projects.length;
	Object[] resources = null;
	int index = 0;
	for (int i = 0; i < lengthi++) {
		IProject project = projects[i];
		if (!JavaProject.hasJavaNature(project)) {
			if (resources == null) {
				resources = new Object[length];
			resources[index++] = project;
	if (index == 0) return ;
	if (index < length) {
		System.arraycopy(resources, 0, resources = new Object[index], 0, index);
	return resources;
Returns an array of non-java resources contained in the receiver.
	if (this. == null) {
	return this.;
New to GrepCode? Check out our FAQ X