本文整理汇总了Java中org.eclipse.jface.text.presentation.IPresentationDamager类的典型用法代码示例。如果您正苦于以下问题:Java IPresentationDamager类的具体用法?Java IPresentationDamager怎么用?Java IPresentationDamager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPresentationDamager类属于org.eclipse.jface.text.presentation包,在下文中一共展示了IPresentationDamager类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: processPropertyQueue
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
public void processPropertyQueue()
{
HashSet<String> contentTypes = new HashSet<String>();
for(Iterator<String> iter = mPropertyQueue.iterator(); iter.hasNext(); ) {
String property = iter.next();
for(int i=0; i<mConfiguredContentTypes.length; i++) {
IPresentationDamager damager = fPresentationReconciler.getDamager(mConfiguredContentTypes[i]);
if(damager instanceof IPropertyAdaptable) {
IPropertyAdaptable adaptable = (IPropertyAdaptable)damager;
if(adaptable.canAdaptToProperty(mPreferenceStore, property)) {
contentTypes.add(mConfiguredContentTypes[i]);
adaptable.adaptToProperty(mPreferenceStore, property);
}
}
}
}
updatePresentation(contentTypes);
}
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:20,代码来源:NSISSourceViewer.java
示例2: keywordsChanged
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
public void keywordsChanged()
{
if(fPresentationReconciler != null) {
final HashSet<String> contentTypes = new HashSet<String>();
for(int i=0; i<mConfiguredContentTypes.length; i++) {
IPresentationDamager damager = fPresentationReconciler.getDamager(mConfiguredContentTypes[i]);
if(damager instanceof NSISDamagerRepairer) {
((NSISDamagerRepairer)damager).reset();
contentTypes.add(mConfiguredContentTypes[i]);
}
}
if(Display.getCurrent() == null) {
Display.getDefault().asyncExec(new Runnable() {
public void run()
{
updatePresentation(contentTypes);
}
});
}
else {
updatePresentation(contentTypes);
}
}
}
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:26,代码来源:NSISSourceViewer.java
示例3: getPresentationReconciler
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
@Override
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
XtextPresentationReconciler reconciler = getPresentationReconcilerProvider().get();
reconciler.setDocumentPartitioning(getDocumentPartitioning(sourceViewer));
IPresentationRepairer repairer = repairerProvider.get();
IPresentationDamager damager = damagerProvider.get();
String[] types = partitionTypesMapper.getSupportedPartitionTypes();
for (String partitionType : types) {
reconciler.setRepairer(repairer, partitionType);
reconciler.setDamager(damager, partitionType);
}
return reconciler;
}
开发者ID:cplutte,项目名称:bts,代码行数:14,代码来源:XtextSourceViewerConfiguration.java
示例4: propertyChange
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
public void propertyChange(PropertyChangeEvent event)
{
String property = event.getProperty();
if(property.equals(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH)||
property.equals(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SPACES_FOR_TABS)) {
for(Iterator<?> iter=fIndentChars.keySet().iterator(); iter.hasNext(); ) {
setIndentPrefixes(calculatePrefixes(),(String)iter.next());
}
for(Iterator<?> iter=fAutoIndentStrategies.keySet().iterator(); iter.hasNext(); ) {
String contentType = (String)iter.next();
List<?> list = (List<?>)fAutoIndentStrategies.get(contentType);
if(!Common.isEmptyCollection(list)) {
for (Iterator<?> iter2 = list.iterator(); iter2.hasNext();) {
IAutoEditStrategy autoEditStrategy = (IAutoEditStrategy)iter2.next();
if(autoEditStrategy instanceof NSISAutoEditStrategy) {
((NSISAutoEditStrategy)autoEditStrategy).updateFromPreferences();
}
}
}
}
}
else {
for(int i=0; i<mConfiguredContentTypes.length; i++) {
IPresentationDamager damager = fPresentationReconciler.getDamager(mConfiguredContentTypes[i]);
if(damager instanceof IPropertyAdaptable) {
IPropertyAdaptable adaptable = (IPropertyAdaptable)damager;
if(adaptable.canAdaptToProperty(mPreferenceStore, property)) {
mPropertyQueue.add(property);
}
}
}
}
}
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:35,代码来源:NSISSourceViewer.java
示例5: getDamager
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
@Override
public IPresentationDamager getDamager(String contentType) {
return null;
}
开发者ID:eclipse,项目名称:tm4e,代码行数:5,代码来源:TMPresentationReconciler.java
示例6: bindIPresentationDamager
import org.eclipse.jface.text.presentation.IPresentationDamager; //导入依赖的package包/类
public Class<? extends IPresentationDamager> bindIPresentationDamager() {
return PresentationDamager.class;
}
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:DefaultUiModule.java
注:本文中的org.eclipse.jface.text.presentation.IPresentationDamager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论