English 中文(简体)
Eclipse IutoEditStrategy only calls on Backspace; how to have it calls on all edits?
原标题:Eclipse IAutoEditStrategy only called on backspace; how to have it called on all edits?

我目前正在为Eclipse做一个定制编辑版。 我在手写上了这一战略:

public IAutoEditStrategy[] getAutoEditStrategies(
  ISourceViewer sourceViewer, String contentType) {
  return new IAutoEditStrategy[] { new KRLAutoEditStrategy() };
}

缩略语 类似战略:

public class KRLAutoEditStrategy implements IAutoEditStrategy {
  public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
    System.out.println("Called.");
  }
}

现在,只有我打回空间,而不是为了任何其他特性,才需要定制文件。 我失踪了什么? 我如何实施汽车登机?

最佳回答

我现在真的说了。 我的战略是完美的,但由于编辑的分部分一想将其应用到不受<条码>的干扰。

当你的彩色或冷漠不关心时,确保你在分界线上工作,该分界线适用于它,并通过<条码>暴露。 当我用不同的颜色进行所有分治时,问题就变得很明显,而其中之一则有色。

问题回答

see看与您的习俗战略有任何错误(几乎相同的法典对我来说是有效的),但执行某种基本的汽车登机,你可以使用<代码>。 Default IndentLineAutoEditStrategy (代号为回归阵列)





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签