/**
* Create the Shell, setting up any elements that are not set up by the main Composite.
* @param parentShell The parent windows' Shell.
* @param className The name of the class to inspect.
* @param classFile The ClassFile to inspect.
*/
private void createShell(Shell parentShell, String className, ClassFile classFile) {
this.shell = new Shell(this.display, SWT.BORDER | SWT.CLOSE | SWT.TITLE | SWT.MIN);
this.shell.setText(Globals.WINDOWS_TITLE + Globals.WINDOWS_TITLE_CONNECTOR + "Class File Inspection");
this.shell.setLayout(new FillLayout(SWT.VERTICAL));
// No need to read it later, so it is not assigned to a variable.
new ClassInspectionComposite(this, this.shell, this.display, SWT.NONE, className, classFile);
// Compute the needed size.
Point point = this.shell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
point.x += 2;
point.y += 2;
int[] posXY = StaticGuiSupport.getCenteredPosition(point.x, point.y, parentShell);
this.shell.setBounds(posXY[0], posXY[1], point.x, point.y);
}
ClassInspectionWindow.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:tap17-muggl-javaee
作者:
评论列表
文章目录