![]() |
|
|||||||
| Registrieren | Benutzerliste | Interessengemeinschaften | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren | ||
| Java Link Base | Wiki | NoPaste | Chat | Boardregeln | F.A.Q. |
| DockingFrames DockingFrames An extension of Swing, used to flexibly arrange windows. - Ist eine Erweiterung von Swing, mit der flexibel Panels angeordnet werden können. |
![]() |
|
|
Themen-Optionen | Thema durchsuchen |
|
|
#1 |
|
Registriert seit: 19.11.2008
Beiträge: 15
|
Hello,
Is there a way to manage perspective like in Eclipse. I need two ContentArea displayed in a tabbed pane for switching between it. Thanks for advance. |
|
|
|
|
|
#2 |
|
Moderator
|
I'm not sure if I understood you correctly, but I think this can be solved with the layout-mechanism. More precisly, with the method "CControl.save( String )" and "CControl.load( String )".
For a perspecive "x": 1. You would first need to setup the perspective. 2. Then call save( x ). 3. If the user wants perspecive x you'd call "load( x )". If you store the layout in a file, then the perspectives would be stored as well.
__________________
|
|
|
|
|
|
#3 |
|
Registriert seit: 19.11.2008
Beiträge: 15
|
Hello,
Ha, Beni comme back ! I speak about perspective like in eclipse, cf picture. In fact I need to made the same things, with an invert tab (tab round shape to the left instead of right). Thanks. Geändert von CptBlood (09.02.2009 um 10:28 Uhr). |
|
|
|
|
|
#4 |
|
Moderator
|
I wrote a little application which behaves similar to the Eclipse-perspectives.
Some things I'd like to add: * To build the initial setup of the perspectives you need real Dockable objects. * The current layout of a perspective gets stored when another perspective is selected. * Perspectives are stored in a file * Given some more buttons the user could easily add his/her own perspectives. If you are interested in that feature: also have a look at CControl.delete and CControl.layouts. * Everything that is on a working-area is not affected by a change of the perspective. Dockables that belong to a working-area but are minimized, maximized or externalized are put back on their working-area when the perspective changes. And: * The ShapedGradientPainter paints these curves that are in Ecilpse. It can't paint the inverse curve, but you could adapt the code... Java Code:
__________________
|
|
|
|
|
|
#5 |
|
Registriert seit: 19.11.2008
Beiträge: 15
|
Who is the Best ?
Thanks Beni ! That's exactly what i want to do. I just need to make a shape to group the two perspective buttons like in eclipse. What exactly do the control.save() function ? A file is create physically or only in memory ? the Debug perspective doesn't keep the state of dockables in it when you come-back from an other perspective as the java perspective. Is it intentionnal ? Thanks a lot. With that i'm sure that we use your framework for our project. The first delivery if for april. Let's go ! Geändert von CptBlood (10.02.2009 um 09:19 Uhr). |
|
|
|
|
|
#6 |
|
Gast
Beiträge: n/a
|
save() stores the layout in memory. The current Dockables are transformed into an intermediate format. If the application stops then this intermediate format gets written into the "layout.xml".
I'll check the other thing with the Debug-Perspective once I'm at home. It should work (if my memory is not totally screwed up...), you are sure you are looking at the history, outline and working-area? The fileA and fileB are intentionally normalized and their location on the working-area does not change. That's because children of a working-area often represent things (like files) that might not be available the next time when the perspective is loaded, hence they are ignored. |
|
|
|
#7 |
|
Moderator
|
I can't reproduce the error with the Debug-perspective, maybe we are not talking about the same problem...
__________________
|
|
|
|
|
|
#8 |
|
Registriert seit: 19.11.2008
Beiträge: 15
|
Oups, I think i'm tired or perhaps at the first launch...
It's work now. Forget. Thanks |
|
|
|
|
|
#9 |
|
Gast
Beiträge: n/a
|
Hello,
I copied the sourcecode and tried to compile it. But at compile time i get the following error: Java Code:
what does it mean? greetings ExPörT |
|
|
|
#10 |
|
Moderator
|
I'll have to let the program run, but it looks like a bug in the framework.
__________________
|
|
|
|
![]() |
| Lesezeichen |
| Stichworte |
| - |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Eclipse Plugins - Auflistung | EagleEye | IDEs & Tools | 5 | 10.02.2009 14:24 |
| Regions in Eclipse | EagleEye | IDEs & Tools | 6 | 20.10.2008 13:34 |
| Qt in Eclipse integriert | EagleEye | Software | 0 | 25.09.2007 12:37 |
| .NET-PlugIn für Eclipse | christoph | IDE & Tools | 3 | 27.03.2007 21:12 |