在窗口中按"DEL"键会导致从图中删除元素!!! [英] Pressing 'DEL'-key in a window causes element to be deleted from the diagram !!!

查看:102
本文介绍了在窗口中按"DEL"键会导致从图中删除元素!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作中,我正在使用Visual Studio SDK的DSL工具.我现在正忙于使用Codeplex的DSL powertoy来创建自定义编辑器.现在,我注意到VS 2005内的行为不正确.

At my job I'm working with the DSL Tools of the Visual Studio SDK. I'm currenly busy with the DSL powertoy from Codeplex to create an custom editor. Now I've noticed an incorrect behaviour within VS 2005.

这是我的任务.我必须创建一个自定义编辑器,用户可以在其中阅读和更新一些elementproperties.定制编辑器是一个带有(rich)文本框的用户控件,其中显示了属性的值(在我的示例中为Notes).

This is my task. I have to create a custom editor where users can read and update some of the elementproperties. The custom editor is an user control with an (rich)textbox where the value of the property (in my case Notes) is shown.

现在,当我单击一个元素时,注释将显示在自定义编辑器中.当我键入一些文本时,它将存储在正确的属性中.但是,当我选择一个单词并按del键时,不仅单词被删除,而且当前元素也被删除!!!在带有DSL项目的VS中也会发生这种情况.

Now when I click an element the notes are shown in the custom editor. When I type some text it is stored in the correct property. Nevertheless when I select a word and press the del-key, not only the word is deleted but also the current element!!! This behaviour is also occures in VS with an DSL project.

在DSL项目中重现此行为的步骤:

Steps to reproduce this behaviour within an DSL-project:

1.打开一个最小的语言项目

1. Open an minimal language project

2.在DSL Explorer中,展开节点Connection Builders

2. In the DSL Explorer expand the node Connection Builders

3.选择一个连接指令(例如ExampleElementReferencesTargets)

3. Select an Connect Directive (for example ExampleElementReferencesTargets)

4.打开DSL Details窗口,如果正确,则显示Link Directive Details选项卡(上方图标)

4. Open the DSL Details window and if its correct the Link Directive Details tab is shown (upper icon)

5.在路径列中输入一些内容.

5. Type something in the path-colomn.

6.在列路径中选择一个单词,然后按"Del"

6. Select an word in the the column path and press 'Del'

7.不仅单词被删除,整个关系也被删除!

7. Not only the word is deleted but the entire relationship is deleted!

我想知道这是否是一个已知的错误.如果是这样,解决方案是什么?如果不是,是否有人为此找到解决方法?我不能对DSL用户说不要使用'DEL'键.我将等待答案.

I'm wondering if this is a known bug. If so, what is the solution? If not, has someone find a workaround for this? I can't say to the DSL user not to use the 'DEL'-key. I will be waiting for the answer.

关于

Mattijs

Netaspect BV

Netaspect BV

推荐答案

我遇到了同样的问题,有人可以回答吗?
I met the same problem, is there anybody can answer us?


这篇关于在窗口中按"DEL"键会导致从图中删除元素!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆