Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
Uploader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Uploader
Commits
9dc860d8
Commit
9dc860d8
authored
Aug 30, 2016
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow resizable dialogs
parent
09384ece
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
anno-gui/src/main/java/org/genesys2/anno/gui/VerifierDialog.java
...i/src/main/java/org/genesys2/anno/gui/VerifierDialog.java
+4
-2
anno-gui/src/main/java/org/genesys2/anno/gui/WorkspaceDialog.java
.../src/main/java/org/genesys2/anno/gui/WorkspaceDialog.java
+3
-3
No files found.
anno-gui/src/main/java/org/genesys2/anno/gui/VerifierDialog.java
View file @
9dc860d8
...
...
@@ -33,6 +33,7 @@ import org.eclipse.swt.widgets.Display;
import
org.eclipse.swt.widgets.Label
;
import
org.eclipse.swt.widgets.Shell
;
import
org.eclipse.swt.widgets.Text
;
import
org.eclipse.swt.layout.RowData
;
public
class
VerifierDialog
extends
Dialog
{
...
...
@@ -48,7 +49,7 @@ public class VerifierDialog extends Dialog {
* @param style
*/
public
VerifierDialog
(
Shell
parent
,
int
style
)
{
super
(
parent
,
SWT
.
DIALOG_TRIM
);
super
(
parent
,
SWT
.
DIALOG_TRIM
|
SWT
.
RESIZE
);
setText
(
"SWT Dialog"
);
}
...
...
@@ -76,7 +77,7 @@ public class VerifierDialog extends Dialog {
* Create contents of the dialog.
*/
private
void
createContents
()
{
shlEstablishLinkTo
=
new
Shell
(
getParent
(),
getStyle
()
);
shlEstablishLinkTo
=
new
Shell
(
getParent
(),
SWT
.
DIALOG_TRIM
|
SWT
.
RESIZE
);
shlEstablishLinkTo
.
setSize
(
491
,
199
);
shlEstablishLinkTo
.
setText
(
"Establish link to server"
);
GridLayout
gl_shlEstablishLinkTo
=
new
GridLayout
(
2
,
false
);
...
...
@@ -135,6 +136,7 @@ public class VerifierDialog extends Dialog {
composite
.
setLayout
(
new
RowLayout
(
SWT
.
HORIZONTAL
));
Button
btnOk
=
new
Button
(
composite
,
SWT
.
NONE
);
btnOk
.
setLayoutData
(
new
RowData
(
108
,
SWT
.
DEFAULT
));
btnOk
.
addSelectionListener
(
new
SelectionAdapter
()
{
@Override
public
void
widgetSelected
(
SelectionEvent
e
)
{
...
...
anno-gui/src/main/java/org/genesys2/anno/gui/WorkspaceDialog.java
View file @
9dc860d8
...
...
@@ -101,8 +101,8 @@ public class WorkspaceDialog extends Dialog {
* Create contents of the dialog.
*/
private
void
createContents
()
{
shlWorkspaceLauncher
=
new
Shell
(
getParent
(),
SWT
.
CLOSE
|
SWT
.
TITLE
);
shlWorkspaceLauncher
.
setSize
(
6
00
,
168
);
shlWorkspaceLauncher
=
new
Shell
(
getParent
(),
SWT
.
CLOSE
|
SWT
.
RESIZE
|
SWT
.
TITLE
);
shlWorkspaceLauncher
.
setSize
(
6
50
,
194
);
shlWorkspaceLauncher
.
setText
(
"Workspace Launcher"
);
shlWorkspaceLauncher
.
setLayout
(
new
BorderLayout
(
0
,
0
));
...
...
@@ -176,7 +176,7 @@ public class WorkspaceDialog extends Dialog {
fl_composite_2
.
marginHeight
=
10
;
composite_2
.
setLayout
(
fl_composite_2
);
Label
lblSelectWorkspaceDirectory
=
new
Label
(
composite_2
,
SWT
.
WRAP
|
SWT
.
CENTER
);
Label
lblSelectWorkspaceDirectory
=
new
Label
(
composite_2
,
SWT
.
CENTER
);
lblSelectWorkspaceDirectory
.
setBackground
(
SWTResourceManager
.
getColor
(
SWT
.
COLOR_TITLE_INACTIVE_BACKGROUND
));
lblSelectWorkspaceDirectory
.
setText
(
"Select workspace directory where your configuration and databases are stored."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment