int _length_1 = _text_2.length();
boolean _lessThan = (_length_1 < currentNodeSizeToCursor);
_or = _lessThan;
}
if (_or) {
final Location location = ((Location) model);
final String uri = location.getUri();
TargetPlatformActivator _instance = TargetPlatformActivator.getInstance();
IWorkbench _workbench = _instance.getWorkbench();
final IWorkbenchWindow window = _workbench.getActiveWorkbenchWindow();
final IRunnableWithProgress _function = new IRunnableWithProgress() {
public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
Shell _shell = window.getShell();
Display _display = _shell.getDisplay();
ReadAndDispatchProgressMonitorWrapper _readAndDispatchProgressMonitorWrapper = new ReadAndDispatchProgressMonitorWrapper(monitor, _display);
final SubMonitor wpm = SubMonitor.convert(_readAndDispatchProgressMonitorWrapper, ("Creating content assist for " + uri), 100);
try {
Object _service = TargetPlatformProposalProvider.this.provisioningAgent.getService(IMetadataRepositoryManager.SERVICE_NAME);
final IMetadataRepositoryManager repositoryManager = ((IMetadataRepositoryManager) _service);
URI _uRI = new URI(uri);
SubMonitor _newChild = wpm.newChild(90);
final IMetadataRepository metadataRepository = repositoryManager.loadRepository(_uRI, _newChild);
IQuery<IInstallableUnit> _iUAssistQuery = TargetPlatformProposalProvider.this.getIUAssistQuery();
SubMonitor _newChild_1 = wpm.newChild(5);
IQueryResult<IInstallableUnit> _query = metadataRepository.query(_iUAssistQuery, _newChild_1);
final Set<IInstallableUnit> results = _query.toUnmodifiableSet();
final Function1<IInstallableUnit, Boolean> _function = new Function1<IInstallableUnit, Boolean>() {
public Boolean apply(final IInstallableUnit it) {
EList<IU> _ius = location.getIus();
final Function1<IU, String> _function = new Function1<IU, String>() {
public String apply(final IU it) {
return it.getID();
}
};