Skip to content

Commit

Permalink
JBIDE-20976 Create and use Neon M3 target platform
Browse files Browse the repository at this point in the history
Migrate to Neon M3 development release
  • Loading branch information
dgolovin committed Nov 18, 2015
1 parent 177106f commit 81fb5e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Adapters;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
Expand Down Expand Up @@ -293,7 +294,7 @@ public Object[] getChildren(Object element) {
}

if (element instanceof IWorkspace) {
IWorkbenchAdapter adapter = (IWorkbenchAdapter)Util.getAdapter(element, IWorkbenchAdapter.class);
IWorkbenchAdapter adapter = Adapters.adapt(element, IWorkbenchAdapter.class);
if (adapter != null) {
Object[] children = adapter.getChildren(element);
List<Object> result = new ArrayList<Object>();
Expand Down

0 comments on commit 81fb5e5

Please sign in to comment.