Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

FormLayout target feedback is always in the top-left corner

未关闭
#1,632 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
java
领域
desktop

调研方向

The issue is in FormHeaderLayoutEditPolicy.java lines 133-142, where feedback location is hardcoded. Look at AbstractDimensionSelectionEditPolicy.java lines 72-78 for the Swing Mig- and FormLayout approach. The fix involves calculating the feedback figure position relative to the cursor location (x+10, y+10) depending on which ruler is moved. Test by running the SWT FormLayout in 'classic' mode and moving layout lines to see if feedback follows.

由索引模型根据 Issue 内容生成。

描述

good first issue
Image

The feedback is hard-coded to be in the top-left corner of the viewer, which makes it hard to follow. When the viewer is scrolled, it's also not visible at all...

https://github.com/eclipse-windowbuilder/windowbuilder/blob/52f91b610499e2182fe5ad09908a6e0efe33dd39/org.eclipse.wb.swt/src/org/eclipse/wb/internal/swt/gef/policy/layout/form/FormHeaderLayoutEditPolicy.java#L133-L142

We should use a similar approach as used in e.g the Swing Mig- and FormLayout, where the location of the figure is at (10, y + 10) or (x + 10, 10), where (x, y) is the cursor location and depending on whether the horizontal or vertical ruler is moved. In short: The figure should be at the line we're currently moving.

https://github.com/eclipse-windowbuilder/windowbuilder/blob/52f91b610499e2182fe5ad09908a6e0efe33dd39/org.eclipse.wb.swing/src/org/eclipse/wb/internal/swing/gef/policy/layout/header/selection/AbstractDimensionSelectionEditPolicy.java#L72-L78

Hint: This selection policy is only used when using the "classic" FormLayout mode.

主要语言
Java
星标
97
派生
34
平均合并
23 小时 46 分钟
30 天内合并 PR
51

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eclipse-windowbuilder/windowbuilder 的其他 Issue

查看 eclipse-windowbuilder/windowbuilder 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。