public static ICompletionProposal[] collectAssists(PropertiesAssistContext invocationContext) throws BadLocationException, BadPartitioningException { ArrayList<ICompletionProposal> resultingCollections= new ArrayList<>(); getEscapeUnescapeBackslashProposals(invocationContext, resultingCollections); getCreateFieldsInAccessorClassProposals(invocationContext, resultingCollections); getRemovePropertiesProposals(invocationContext, resultingCollections); getRenameKeysProposals(invocationContext, resultingCollections); if (resultingCollections.size() == 0) return null; return resultingCollections.toArray(new ICompletionProposal[resultingCollections.size()]); }
public static ICompletionProposal[] collectAssists(PropertiesAssistContext invocationContext) throws BadLocationException, BadPartitioningException { ArrayList<ICompletionProposal> resultingCollections= new ArrayList<>(); getEscapeUnescapeBackslashProposals(invocationContext, resultingCollections); getCreateFieldsInAccessorClassProposals(invocationContext, resultingCollections); getRemovePropertiesProposals(invocationContext, resultingCollections); getRenameKeysProposals(invocationContext, resultingCollections); if (resultingCollections.size() == 0) return null; return resultingCollections.toArray(new ICompletionProposal[resultingCollections.size()]); }
public static boolean hasAssists(PropertiesAssistContext invocationContext) { try { return getEscapeUnescapeBackslashProposals(invocationContext, null) || getCreateFieldsInAccessorClassProposals(invocationContext, null) || getRemovePropertiesProposals(invocationContext, null) || getRenameKeysProposals(invocationContext, null); } catch (BadLocationException e) { JavaPlugin.log(e); } catch (BadPartitioningException e) { JavaPlugin.log(e); } return false; }
public static boolean hasAssists(PropertiesAssistContext invocationContext) { try { return getEscapeUnescapeBackslashProposals(invocationContext, null) || getCreateFieldsInAccessorClassProposals(invocationContext, null) || getRemovePropertiesProposals(invocationContext, null) || getRenameKeysProposals(invocationContext, null); } catch (BadLocationException e) { JavaPlugin.log(e); } catch (BadPartitioningException e) { JavaPlugin.log(e); } return false; }