}
acceptor.accept(p);
}
public void completeLocation_Uri(final EObject model, final Assignment assignment, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
ITextViewer _viewer = context.getViewer();
IDocument _document = _viewer.getDocument();
final String docText = _document.get();
final int offset = context.getOffset();
String _xifexpression = null;
int _length = docText.length();
boolean _greaterEqualsThan = (_length >= 1);
if (_greaterEqualsThan) {
_xifexpression = docText.substring((offset - 1), offset);
} else {
_xifexpression = "";
}
final String charBefore = _xifexpression;
String _xifexpression_1 = null;
int _length_1 = docText.length();
boolean _greaterThan = (_length_1 > offset);
if (_greaterThan) {
_xifexpression_1 = docText.substring(offset, (offset + 1));
} else {
_xifexpression_1 = "";
}
final String charAfter = _xifexpression_1;
String _xifexpression_2 = null;
boolean _and = false;
boolean _equals = charBefore.equals(" ");
boolean _not = (!_equals);
if (!_not) {
_and = false;
} else {
boolean _equals_1 = charBefore.equals("\n");
boolean _not_1 = (!_equals_1);
_and = _not_1;
}
if (_and) {
_xifexpression_2 = " \"";
} else {
_xifexpression_2 = "\"";
}
final String prefix = _xifexpression_2;
String _xifexpression_3 = null;
boolean _equals_2 = charAfter.equals(" ");
boolean _not_2 = (!_equals_2);
if (_not_2) {
_xifexpression_3 = "\" ";
} else {
_xifexpression_3 = "\"";
}
final String suffix = _xifexpression_3;
final String proposal = ((prefix + TargetPlatformProposalProvider.LOCATION__URI_PLACEHOLDER) + suffix);
StyledString _styledString = new StyledString(TargetPlatformProposalProvider.LOCATION__URI_PLACEHOLDER);
StyledString _append = _styledString.append(" - URI of the location", StyledString.QUALIFIER_STYLER);
Image _image = this.getImage(TargetPlatformProposalProvider.LOCATION);
final ICompletionProposal p = this.createCompletionProposal(proposal, _append, _image, context);
if ((p instanceof ConfigurableCompletionProposal)) {
int _replacementOffset = ((ConfigurableCompletionProposal)p).getReplacementOffset();
int _length_2 = prefix.length();
int _plus = (_replacementOffset + _length_2);
((ConfigurableCompletionProposal)p).setSelectionStart(_plus);
int _length_3 = TargetPlatformProposalProvider.LOCATION__URI_PLACEHOLDER.length();
((ConfigurableCompletionProposal)p).setSelectionLength(_length_3);
ITextViewer _viewer_1 = context.getViewer();
((ConfigurableCompletionProposal)p).setSimpleLinkedMode(_viewer_1, '\t');
}
acceptor.accept(p);
}