{"action":"created","issue":{"url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/58","repository_url":"https://api.github.com/repos/kosslab-kr/cubrid-manager","labels_url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/58/comments","events_url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/58/events","html_url":"https://github.com/kosslab-kr/cubrid-manager/issues/58","id":273309963,"number":58,"title":"DBA 확인 창 수정","user":{"login":"hornetmj","id":16789219,"avatar_url":"https://avatars3.githubusercontent.com/u/16789219?v=4","gravatar_id":"","url":"https://api.github.com/users/hornetmj","html_url":"https://github.com/hornetmj","followers_url":"https://api.github.com/users/hornetmj/followers","following_url":"https://api.github.com/users/hornetmj/following{/other_user}","gists_url":"https://api.github.com/users/hornetmj/gists{/gist_id}","starred_url":"https://api.github.com/users/hornetmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hornetmj/subscriptions","organizations_url":"https://api.github.com/users/hornetmj/orgs","repos_url":"https://api.github.com/users/hornetmj/repos","events_url":"https://api.github.com/users/hornetmj/events{/privacy}","received_events_url":"https://api.github.com/users/hornetmj/received_events","type":"User","site_admin":false},"labels":[{"id":704107245,"url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-13T04:51:07Z","updated_at":"2017-11-18T16:08:46Z","closed_at":null,"author_association":"NONE","body":"데이터베이스 삭제 시 \"DBA 확인\" 창을 수정\r\n\r\n- 재현\r\n  - CUBRID 및 CM 구동\r\n  - CUBRID Manager Server 연결\r\n    - 왼쪽 \"호스트\" 창에서 \"localhost\" 더블 클릭 후 진행\r\n      - CM과 CUBRID가 다른 호스트에 구동되어 있을 경우 \"호스트 추가\" 후 진행\r\n  - 데이터베이스 구동 정지\r\n    - demodb가 구동되어 있을 경우 \"호스트\" 창에서 확인 가능\r\n      - DB가 구동되어 있지 않을 경우 구동 후 다시\r\n    - demodb \"우클릭\" --> \"데이터베이스 관리\" --> \"데이터베이스 삭제\" --> \"확인\"\r\n  - \"DBA 확인\" 창 팝업\r\n- 수정 요청 사항    \r\n  - \"DBA 확인\" 팝업창에서\r\n      - 패스워드 입력 창을 밑으로 내리기\r\n      - 패스워드 입력 창 고정\r\n        - 지금은 창을 늘이면 같이 커짐\r\n      - DBA 확인, DBA 권한을 확인합니다. --> DBA 권한 확인\r\n      - 창 타이틀\r\n        - \"DBA 확인\" --> \"DBA 권한 확인\"\r\n  - 기타 사용자 편의성 증진을 위한 이슈 담당자의 의견 반영\r\n"},"comment":{"url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/comments/345452036","html_url":"https://github.com/kosslab-kr/cubrid-manager/issues/58#issuecomment-345452036","issue_url":"https://api.github.com/repos/kosslab-kr/cubrid-manager/issues/58","id":345452036,"user":{"login":"gayeonkim1559","id":26370710,"avatar_url":"https://avatars1.githubusercontent.com/u/26370710?v=4","gravatar_id":"","url":"https://api.github.com/users/gayeonkim1559","html_url":"https://github.com/gayeonkim1559","followers_url":"https://api.github.com/users/gayeonkim1559/followers","following_url":"https://api.github.com/users/gayeonkim1559/following{/other_user}","gists_url":"https://api.github.com/users/gayeonkim1559/gists{/gist_id}","starred_url":"https://api.github.com/users/gayeonkim1559/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gayeonkim1559/subscriptions","organizations_url":"https://api.github.com/users/gayeonkim1559/orgs","repos_url":"https://api.github.com/users/gayeonkim1559/repos","events_url":"https://api.github.com/users/gayeonkim1559/events{/privacy}","received_events_url":"https://api.github.com/users/gayeonkim1559/received_events","type":"User","site_admin":false},"created_at":"2017-11-18T16:08:46Z","updated_at":"2017-11-18T16:08:46Z","author_association":"NONE","body":"In the below code lines is original code. \r\n`protected Control createDialogArea(Composite parent) {\r\n\t\tparentComp = (Composite) super.createDialogArea(parent);\r\n\t\tComposite composite = new Composite(parentComp, SWT.NONE);\r\n\r\n\t\tfinal GridLayout glSourceDBComposite = new GridLayout();\r\n\t\tglSourceDBComposite.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);\r\n\t\tglSourceDBComposite.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);\r\n\t\tglSourceDBComposite.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);\r\n\t\tglSourceDBComposite.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);\r\n\t\tglSourceDBComposite.numColumns = 2;\r\n\t\tcomposite.setLayout(glSourceDBComposite);\r\n\t\tcomposite.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n\r\n\t\tcreateDirectoryList(composite);\r\n\r\n\t\tsetTitle(Messages.titleDeleteDbConfirmDialog);\r\n\t\tsetMessage(Messages.msgDeleteDbConfirmDialog);\r\n\r\n\t\treturn parentComp;\r\n\t}` \r\nIn this code, I change glSourceDBComposite.numColumns from 2 to 1 for password-text to be located below the label.\r\n\r\nAnd the original constrained shell size was too small. So I modify the shell size that is 500*300\r\n`protected void constrainShellSize() {\r\n\t\tsuper.constrainShellSize();\r\n\t\tgetShell().setSize(500, 300);\r\n\t\tCommonUITool.centerShell(getShell());\r\n\t\tgetShell().setText(Messages.titleDeleteDbConfirmDialog);\r\n\r\n\t}`\r\n\r\nI add the last three lines to constain the password text size no matter how the user increase the shell size.\r\n`private void createDirectoryList(Composite composite) {\r\n\r\n\t\tLabel clabel1 = new Label(composite, SWT.SHADOW_IN);\r\n\t\tfinal GridData gdClabel1 = CommonUITool.createGridData(1, 1, -1, -1);\r\n\t\tclabel1.setLayoutData(gdClabel1);\r\n\t\tclabel1.setText(Messages.msgInputDbaPassword);\r\n\t\ttext = new Text(composite, SWT.BORDER | SWT.PASSWORD);\r\n\t\tGridData passwordData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);\r\n\t\tpasswordData.widthHint = 300;\r\n\t\ttext.setLayoutData(passwordData);\r\n\t}`"}}
{"actor":{"display_login":"gayeonkim1559"}}