List of usage examples for org.eclipse.jface.fieldassist ContentProposalAdapter FILTER_CHARACTER
int FILTER_CHARACTER
To view the source code for org.eclipse.jface.fieldassist ContentProposalAdapter FILTER_CHARACTER.
Click Source Link
From source file:org.eclipse.birt.chart.ui.swt.fieldassist.FieldAssistHelper.java
License:Open Source License
private int getContentAssistFilterStyle() { IPreferenceStore store = getPreferenceStore(); String acceptanceStyle = store.getString(PreferenceConstants.PREF_CONTENTASSISTFILTER); if (acceptanceStyle.equals(PreferenceConstants.PREF_CONTENTASSISTFILTER_CHAR)) return ContentProposalAdapter.FILTER_CHARACTER; if (acceptanceStyle.equals(PreferenceConstants.PREF_CONTENTASSISTFILTER_CUMULATIVE)) return ContentProposalAdapter.FILTER_CUMULATIVE; return ContentProposalAdapter.FILTER_NONE; }
From source file:org.eclipse.conesc.plugin.utils.HelperAssistant.java
License:Open Source License
public static void applyAssistentTo(Control control, Node diagram) { try {/*from ww w. j a v a2 s .com*/ ContentProposalAdapter adapter = new ContentProposalAdapter(control, new TextContentAdapter(), new SimpleContentProposalProvider(getAllProposals(diagram)), KeyStroke.getInstance("Ctrl+Space"), new char[] { '(', '|', '&', '>' }); adapter.setFilterStyle(ContentProposalAdapter.FILTER_CHARACTER); adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_INSERT); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
From source file:org.eclipse.ui.examples.fieldassist.FieldAssistTestDialog.java
License:Open Source License
private int getContentAssistFilterStyle() { IPreferenceStore store = FieldAssistPlugin.getDefault().getPreferenceStore(); String acceptanceStyle = store.getString(PreferenceConstants.PREF_CONTENTASSISTFILTER); if (acceptanceStyle.equals(PreferenceConstants.PREF_CONTENTASSISTFILTER_CHAR)) return ContentProposalAdapter.FILTER_CHARACTER; if (acceptanceStyle.equals(PreferenceConstants.PREF_CONTENTASSISTFILTER_CUMULATIVE)) return ContentProposalAdapter.FILTER_CUMULATIVE; return ContentProposalAdapter.FILTER_NONE; }