Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DockingVl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Software Control System
Libraries
java
DockingVl
Commits
07c807be
Commit
07c807be
authored
Jan 28, 2014
by
Gregory Viguier
Browse files
Options
Downloads
Patches
Plain Diff
- new method initDockingCoreArea()
parent
1bdd7ff7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/soleil/docking/vl/VlDockDockingManager.java
+124
-124
124 additions, 124 deletions
src/main/java/fr/soleil/docking/vl/VlDockDockingManager.java
with
124 additions
and
124 deletions
src/main/java/fr/soleil/docking/vl/VlDockDockingManager.java
+
124
−
124
View file @
07c807be
...
@@ -31,11 +31,16 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -31,11 +31,16 @@ public class VlDockDockingManager extends ADockingManager {
UIManager
.
getDefaults
().
put
(
"TabbedDockableContainer.tabPlacement"
,
1
);
UIManager
.
getDefaults
().
put
(
"TabbedDockableContainer.tabPlacement"
,
1
);
}
}
@Override
protected
void
initDockingArea
()
{
mainDockingDesktop
=
new
SoleilDockingDesktop
();
mainDockingDesktop
.
setOpaqueContents
(
true
);
}
@Override
@Override
public
JComponent
getDockingArea
()
{
public
JComponent
getDockingArea
()
{
if
(
mainDockingDesktop
==
null
)
{
if
(
mainDockingDesktop
==
null
)
{
mainDockingDesktop
=
(
SoleilDockingDesktop
)
new
SoleilDockingDesktop
();
initDockingArea
();
mainDockingDesktop
.
setOpaqueContents
(
true
);
}
}
return
mainDockingDesktop
;
return
mainDockingDesktop
;
}
}
...
@@ -46,8 +51,7 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -46,8 +51,7 @@ public class VlDockDockingManager extends ADockingManager {
@Override
@Override
public
JComponent
createNewDockingArea
(
Color
background
)
{
public
JComponent
createNewDockingArea
(
Color
background
)
{
SoleilDockingDesktop
result
=
new
SoleilDockingDesktop
(
false
,
false
,
SoleilDockingDesktop
result
=
new
SoleilDockingDesktop
(
false
,
false
,
true
,
false
);
true
,
false
);
if
(
background
!=
null
)
{
if
(
background
!=
null
)
{
result
.
setBackground
(
background
);
result
.
setBackground
(
background
);
}
}
...
@@ -55,16 +59,14 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -55,16 +59,14 @@ public class VlDockDockingManager extends ADockingManager {
}
}
@Override
@Override
public
void
setDockingAreaBeackground
(
JComponent
dockingArea
,
public
void
setDockingAreaBeackground
(
JComponent
dockingArea
,
Color
areaBackground
)
{
Color
areaBackground
)
{
if
(
dockingArea
!=
null
)
{
if
(
dockingArea
!=
null
)
{
dockingArea
.
setBackground
(
areaBackground
);
dockingArea
.
setBackground
(
areaBackground
);
}
}
}
}
@Override
@Override
public
void
loadPerspective
(
IPerspective
perspective
)
public
void
loadPerspective
(
IPerspective
perspective
)
throws
DockingException
{
throws
DockingException
{
DockingException
dockingException
=
null
;
DockingException
dockingException
=
null
;
if
(
perspective
.
getByteArray
().
length
>
0
)
{
if
(
perspective
.
getByteArray
().
length
>
0
)
{
...
@@ -76,8 +78,7 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -76,8 +78,7 @@ public class VlDockDockingManager extends ADockingManager {
ois
=
new
ObjectInputStream
(
bais
);
ois
=
new
ObjectInputStream
(
bais
);
mainDockingDesktop
.
readXML
(
ois
);
mainDockingDesktop
.
readXML
(
ois
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
dockingException
=
new
DockingException
(
"Perspective.load() :"
dockingException
=
new
DockingException
(
"Perspective.load() :"
+
" Unexpected Error"
,
e
);
+
" Unexpected Error"
,
e
);
}
finally
{
}
finally
{
try
{
try
{
if
(
ois
!=
null
)
{
if
(
ois
!=
null
)
{
...
@@ -86,8 +87,7 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -86,8 +87,7 @@ public class VlDockDockingManager extends ADockingManager {
// Actually there is no effect to close bais ...
// Actually there is no effect to close bais ...
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
if
(
dockingException
==
null
)
{
if
(
dockingException
==
null
)
{
dockingException
=
new
DockingException
(
dockingException
=
new
DockingException
(
"I/O Exception"
,
e
);
"I/O Exception"
,
e
);
}
else
{
}
else
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -110,8 +110,8 @@ public class VlDockDockingManager extends ADockingManager {
...
@@ -110,8 +110,8 @@ public class VlDockDockingManager extends ADockingManager {
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
JOptionPane
.
showMessageDialog
(
mainDockingDesktop
,
JOptionPane
.
showMessageDialog
(
mainDockingDesktop
,
"Perspective.save() :"
+
" Unexpected Error (see traces)"
,
"Perspective.save() :"
+
" Unexpected Error (see traces)"
,
"VLDock - Error"
,
"VLDock - Error"
,
JOptionPane
.
ERROR_MESSAGE
);
JOptionPane
.
ERROR_MESSAGE
);
}
finally
{
}
finally
{
try
{
try
{
ous
.
close
();
ous
.
close
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment