Explorer Mode from NB 6.5 to NB 6.7

View: New views
4 Messages — Rating Filter:   Alert me  

Explorer Mode from NB 6.5 to NB 6.7

by Theuns Heydenrych-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI

I have a Netbeans platform app, with a module depended on the Project Api's.



With Netbeans 6.5 , when the application started up it displayed the explorer mode by default, this is not the case with Netbeans 6.7, when i run the app.



I checked the xml layer in the module and the explorer.wsmode file is present in the xml layer, under the <this layer in context>



What else could be wrong?

Any help would be appreciated, thanks you





Re: Explorer Mode from NB 6.5 to NB 6.7

by Marek Slama :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

theunsheydenrych wrote:

> HI
>
> I have a Netbeans platform app, with a module depended on the Project Api's.
>
>
>
> With Netbeans 6.5 , when the application started up it displayed the explorer mode by default, this is not the case with Netbeans 6.7, when i run the app.
>
>
>
> I checked the xml layer in the module and the explorer.wsmode file is present in the xml layer, under the <this layer in context>
>
>
>
> What else could be wrong?
>
> Any help would be appreciated, thanks you
>  
Mode is visible only when it contains at least one opened TopComponent.
If for the same winsys configuration
main window layout is different on 6.5 and 6.7 file issue to Issuezilla
and assign it to me (mslama). I will check.

Marek

Explorer Mode from NB 6.5 to NB 6.7

by Theuns Heydenrych-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI Marek, thank you for the quick response



As far as i can see there is a TopComponent "projectTabLogical_tc"



The explorer.wsmode look like this:

<?xml version="1.0" encoding="UTF-8"?>



<!DOCTYPE mode PUBLIC

          "-//NetBeans//DTD Mode Properties 2.0//EN"

          "http://www.netbeans.org/dtds/mode-properties2_0.dtd">



<mode version="2.0">

    <module name="org.netbeans.modules.projectui" spec="1.1" />

    <name unique="explorer" />

    <kind type="view" />

    <state type="joined" />

    <constraints>

        <path orientation="horizontal" number="20" weight="0.3" />

        <path orientation="vertical" number="20" weight="0.5" />

    </constraints>

    <relative-bounds x="10" y="24" width="23" height="37" />

    <active-tc id="projectTabLogical_tc"/>

    <empty-behavior permanent="true" />

</mode>



The projectTabLogical_tc.wstcref fie look like this:

<?xml version="1.0" encoding="UTF-8" ?>



<!DOCTYPE tc-ref PUBLIC

          "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN"

          "http://www.netbeans.org/dtds/tc-ref2_0.dtd">



<tc-ref version="2.0">

    <module name="org.netbeans.modules.projectui" spec="1.0" />

    <tc-id id="projectTabLogical_tc" />

    <state opened="true" />

</tc-ref>



Except the  <state opened="true" /> line was "false", i changed it to "true", with the result that projectTabLogical_tcWstcref.xml file was created in one of my module packages.





Explorer Mode from NB 6.5 to NB 6.7

by Theuns Heydenrych-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i have done some more tests.



I created a new netbeans application in NB 6.5.1 and added only the Project API's and the ones they are depended on, when running this application the project tab does show in the Eplorer mode.



When repeating this in NB6.7, the Projects tab does not show in the Explorer Mode.



Any help will be appreciated.



I did log a issue regarding this matter http://www.netbeans.org/issues/show_bug.cgi?id=167885 



To be truelly honest, any feedback will also be appreciated.