本文整理汇总了Java中com.intellij.ide.structureView.ModelListener类的典型用法代码示例。如果您正苦于以下问题:Java ModelListener类的具体用法?Java ModelListener怎么用?Java ModelListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelListener类属于com.intellij.ide.structureView包,在下文中一共展示了ModelListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StructureTreeBuilder
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
public StructureTreeBuilder(Project project,
JTree tree,
DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
StructureViewModel structureModel) {
super(
tree,
treeModel,
treeStructure, null, false
);
myProject = project;
myStructureModel = structureModel;
final ModelListener myModelListener = new ModelListener() {
@Override
public void onModelChanged() {
addRootToUpdate();
}
};
PsiManager.getInstance(myProject).addPsiTreeChangeListener(new MyPsiTreeChangeListener(), this);
CopyPasteUtil.DefaultCopyPasteListener copyPasteListener = new CopyPasteUtil.DefaultCopyPasteListener(getUpdater());
CopyPasteManager.getInstance().addContentChangedListener(copyPasteListener, this);
initRootNode();
myStructureModel.addModelListener(myModelListener);
Disposer.register(this, new Disposable() {
@Override
public void dispose() {
myStructureModel.removeModelListener(myModelListener);
}
});
setCanYieldUpdate(!ApplicationManager.getApplication().isUnitTestMode());
}
示例2: StructureTreeBuilder
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
public StructureTreeBuilder(Project project,
JTree tree,
DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
StructureViewModel structureModel) {
super(
tree,
treeModel,
treeStructure, null, false
);
myProject = project;
myStructureModel = structureModel;
myPsiTreeChangeListener = new MyPsiTreeChangeListener();
myModelListener = new ModelListener() {
@Override
public void onModelChanged() {
addRootToUpdate();
}
};
PsiManager.getInstance(myProject).addPsiTreeChangeListener(myPsiTreeChangeListener);
myCopyPasteListener = new CopyPasteUtil.DefaultCopyPasteListener(getUpdater());
CopyPasteManager.getInstance().addContentChangedListener(myCopyPasteListener);
initRootNode();
myStructureModel.addModelListener(myModelListener);
setCanYieldUpdate(!ApplicationManager.getApplication().isUnitTestMode());
}
示例3: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(@NotNull final ModelListener modelListener) {
myStructureViewModel.addModelListener(modelListener);
}
示例4: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void removeModelListener(@NotNull final ModelListener modelListener) {
myStructureViewModel.removeModelListener(modelListener);
}
示例5: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(@NotNull ModelListener modelListener) {
myModel.addModelListener(modelListener);
}
示例6: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void removeModelListener(@NotNull ModelListener modelListener) {
myModel.removeModelListener(modelListener);
}
示例7: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(ModelListener modelListener) {
myModel.addModelListener(modelListener);
}
示例8: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void removeModelListener(ModelListener modelListener) {
myModel.removeModelListener(modelListener);
}
示例9: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(final ModelListener modelListener) {
myStructureViewModel.addModelListener(modelListener);
}
示例10: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void removeModelListener(final ModelListener modelListener) {
myStructureViewModel.removeModelListener(modelListener);
}
示例11: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(@NotNull ModelListener modelListener) {
}
示例12: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void removeModelListener(@NotNull ModelListener modelListener) {
}
示例13: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
public void addModelListener(@NotNull ModelListener modelListener) {
}
示例14: removeModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
public void removeModelListener(@NotNull ModelListener modelListener) {
}
示例15: addModelListener
import com.intellij.ide.structureView.ModelListener; //导入依赖的package包/类
@Override
public void addModelListener(ModelListener modelListener) {
}