Link Here
|
122 |
|
122 |
|
123 |
if (panel == null) { |
123 |
if (panel == null) { |
124 |
panel = new GroupExplorerPanel(); |
124 |
panel = new GroupExplorerPanel(); |
125 |
Workspace workspace = WindowManager.getDefault().getCurrentWorkspace(); |
125 |
// Workspace workspace = WindowManager.getDefault().getCurrentWorkspace(); |
126 |
String modeName = org.openide.util.NbBundle.getMessage(VcsGroupMenuAction.class, "LBL_MODE.title");//NOI18N |
126 |
// String modeName = org.openide.util.NbBundle.getMessage(VcsGroupMenuAction.class, "LBL_MODE.title");//NOI18N |
127 |
Mode myMode = workspace.findMode(MODE_NAME); |
127 |
// Mode myMode = workspace.findMode(MODE_NAME); |
128 |
|
128 |
// |
129 |
if (myMode == null) { |
129 |
// if (myMode == null) { |
130 |
// create new mode for CI and set the bounds properly |
130 |
// // create new mode for CI and set the bounds properly |
131 |
myMode = workspace.createMode(MODE_NAME, modeName, null); //NOI18N |
131 |
// myMode = workspace.createMode(MODE_NAME, modeName, null); //NOI18N |
132 |
/* |
132 |
// /* |
133 |
Rectangle workingSpace = workspace.getBounds(); |
133 |
// Rectangle workingSpace = workspace.getBounds(); |
134 |
myMode.setBounds(new Rectangle(workingSpace.x +(workingSpace.width * 3 / 10), workingSpace.y, |
134 |
// myMode.setBounds(new Rectangle(workingSpace.x +(workingSpace.width * 3 / 10), workingSpace.y, |
135 |
workingSpace.width * 2 / 10, workingSpace.height / 2)); |
135 |
// workingSpace.width * 2 / 10, workingSpace.height / 2)); |
136 |
*/ |
136 |
// */ |
|
|
137 |
// } |
138 |
// myMode.dockInto(panel); |
139 |
Mode myMode = WindowManager.getDefault().findMode("explorer"); // NOI18N |
140 |
if(myMode != null) { |
141 |
myMode.dockInto(panel); |
137 |
} |
142 |
} |
138 |
myMode.dockInto(panel); |
|
|
139 |
} |
143 |
} |
140 |
panel.getAccessibleContext().setAccessibleDescription( |
144 |
panel.getAccessibleContext().setAccessibleDescription( |
141 |
org.openide.util.NbBundle.getMessage(VcsGroupMenuAction.class, "ACSD_AddVcsGroupAction.dialog")); |
145 |
org.openide.util.NbBundle.getMessage(VcsGroupMenuAction.class, "ACSD_AddVcsGroupAction.dialog")); |