use of org.eclipse.wst.sse.ui.internal.ExtendedConfigurationBuilder in project webtools.sourceediting by eclipse.
the class StructuredTextEditor method createCharacterPairMatcher.
protected ICharacterPairMatcher createCharacterPairMatcher() {
ICharacterPairMatcher matcher = null;
ExtendedConfigurationBuilder builder = ExtendedConfigurationBuilder.getInstance();
String[] ids = getConfigurationPoints();
for (int i = 0; matcher == null && i < ids.length; i++) {
matcher = (ICharacterPairMatcher) builder.getConfiguration(DocumentRegionEdgeMatcher.ID, ids[i]);
}
if (matcher == null) {
matcher = new DefaultCharacterPairMatcher(new char[] { '(', ')', '{', '}', '[', ']', '<', '>', '"', '"', '\'', '\'' });
}
return matcher;
}
use of org.eclipse.wst.sse.ui.internal.ExtendedConfigurationBuilder in project liferay-ide by liferay.
the class PortletJSPSourceViewerConfiguration method createDocumentationHovers.
@SuppressWarnings({ "rawtypes", "unchecked" })
protected ITextHover[] createDocumentationHovers(String partitionType) {
ExtendedConfigurationBuilder instance = ExtendedConfigurationBuilder.getInstance();
List extendedTextHover = instance.getConfigurations(ExtendedConfigurationBuilder.DOCUMENTATIONTEXTHOVER, partitionType);
return (ITextHover[]) extendedTextHover.toArray(new ITextHover[extendedTextHover.size()]);
}
Aggregations