Skip to content

Commit a92e6ff

Browse files
author
jossonsmith
committed
Rename ShellManagerSideBar to ShellManager
1 parent b40a1aa commit a92e6ff

5 files changed

Lines changed: 377 additions & 14 deletions

File tree

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/ResizeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void updateMaximized() {
6161
boolean isOptMaximized = false;
6262
/**
6363
* @j2sNative
64-
* isOptMaximized = window["ShellManagerSideBar"] != null;
64+
* isOptMaximized = window["ShellManager"] != null;
6565
*/ {}
6666
if (!isOptMaximized) {
6767
shell.setBounds(shell.computeTrim(0, 0, width, height - titleHeight));

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Decorations.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ public void dispose () {
826826
*/ {}
827827
/**
828828
* @j2sNative
829-
* if (window["ShellManagerSideBar"] != null) {
830-
* ShellManagerSideBar.removeShellItem (this);
829+
* if (window["ShellManager"] != null) {
830+
* ShellManager.removeShellItem (this);
831831
* }
832832
*/ {}
833833
super.dispose ();
@@ -1132,7 +1132,7 @@ public boolean getMinimized () {
11321132
*/
11331133
/**
11341134
* @j2sNative
1135-
* if (window["ShellManagerSideBar"] != null && this.parent == null) {
1135+
* if (window["ShellManager"] != null && this.parent == null) {
11361136
* return this.handle.style.display == "none";
11371137
* }
11381138
*/ {}
@@ -1706,7 +1706,7 @@ public void setMaximized (boolean maximized) {
17061706
boolean isOptMaximized = false;
17071707
/**
17081708
* @j2sNative
1709-
* isOptMaximized = window["ShellManagerSideBar"] != null;
1709+
* isOptMaximized = window["ShellManager"] != null;
17101710
*/ {}
17111711
if (!isOptMaximized) {
17121712
setBounds(computeTrim(0, 0, width, height - titleHeight));
@@ -1863,7 +1863,7 @@ public void setMinimized (boolean minimized) {
18631863
*/
18641864
/**
18651865
* @j2sNative
1866-
* if (window["ShellManagerSideBar"] != null && this.parent == null && minimized) {
1866+
* if (window["ShellManager"] != null && this.parent == null && minimized) {
18671867
* this.handle.style.display = "none";
18681868
* return;
18691869
* }
@@ -2038,8 +2038,8 @@ public void run() {
20382038
setMinimized(true);
20392039
/**
20402040
* @j2sNative
2041-
* if (window["ShellManagerSideBar"] != null) {
2042-
* ShellManagerSideBar.returnTopMaximized (shell);
2041+
* if (window["ShellManager"] != null) {
2042+
* ShellManager.returnTopMaximized (shell);
20432043
* }
20442044
*/ { }
20452045
}
@@ -2056,8 +2056,8 @@ public void run() {
20562056
Decorations shell = Decorations.this;
20572057
/**
20582058
* @j2sNative
2059-
* if (window["ShellManagerSideBar"] != null) {
2060-
* ShellManagerSideBar.returnTopMaximized (shell);
2059+
* if (window["ShellManager"] != null) {
2060+
* ShellManager.returnTopMaximized (shell);
20612061
* }
20622062
*/ { shell.bringToTop(); }
20632063
display.timerExec(25, new Runnable() {
@@ -2079,8 +2079,8 @@ public void run() {
20792079
Shell shell = (Shell) Decorations.this;
20802080
/**
20812081
* @j2sNative
2082-
* if (window["ShellManagerSideBar"] != null) {
2083-
* ShellManagerSideBar.returnTopMaximized (shell);
2082+
* if (window["ShellManager"] != null) {
2083+
* ShellManager.returnTopMaximized (shell);
20842084
* }
20852085
*/ { }
20862086
shell.close();

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Shell.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,8 @@ public void open () {
925925
layout();
926926
/**
927927
* @j2sNative
928-
* if (window["ShellManagerSideBar"] != null && this.parent == null) {
929-
* ShellManagerSideBar.createShellItem (this);
928+
* if (window["ShellManager"] != null && this.parent == null) {
929+
* ShellManager.createShellItem (this);
930930
* }
931931
*/ {}
932932
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
.shell-manager-sidebar {
2+
position:absolute;
3+
top:0;
4+
left:0;
5+
z-index:3690;
6+
}
7+
.shell-manager-bar {
8+
position:absolute;
9+
left:0;
10+
width:120px;
11+
background-color:buttonface;
12+
border-style:solid solid solid none;
13+
border-width:1px;
14+
border-height:buttonshadow;
15+
opacity:0.25;
16+
filter:Alpha(Opacity=25);
17+
}
18+
.shell-item, a.shell-item {
19+
display:block;
20+
text-decoration:none;
21+
cursor:default;
22+
font-family:Arial, sans-serif;
23+
position:absolute;
24+
left:1em;
25+
width:150px;
26+
height:2em;
27+
background-color:buttonface;
28+
border:1px solid buttonshadow;
29+
color:buttontext;
30+
opacity:0.55;
31+
filter:Alpha(Opacity=55);
32+
}
33+
.shell-item:hover, a.shell-item:hover {
34+
opacity:0.85;
35+
filter:Alpha(Opacity=85);
36+
}
37+
a.shell-item:focus {
38+
background-color:buttonhighlight;
39+
}
40+
.shell-item-icon {
41+
float:left;
42+
background-color:navy;
43+
width:16px;
44+
height:16px;
45+
position:relative;
46+
left:4px;
47+
top:50%;
48+
margin-top:-7px;
49+
_margin-top:-8px;
50+
}
51+
.shell-item-text {
52+
position:relative;
53+
width:120px;
54+
overflow:hidden;
55+
height:1.5em;
56+
white-space:nowrap;
57+
top:50%;
58+
left:24px;
59+
_left:6px;
60+
margin-top:-0.5em;
61+
}
62+
.shell-manager-topbar-container {
63+
position:absolute;
64+
left:0;
65+
top:0;
66+
border:1px solid windowframe;
67+
border-top:0 none transparent;
68+
background-color:buttonface;
69+
padding:2px;
70+
height:24px;
71+
}
72+
.swt-widgets-shellmanager {
73+
width:324px;
74+
}

0 commit comments

Comments
 (0)