Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] where have the Team > Remote > Configure Push and Configure Fetch gone ?

Work now, thanks a lot!

Fix proposed: http://egit.eclipse.org/r/#change,2516

--Jens

 

From: paulweb515@xxxxxxxxx [mailto:paulweb515@xxxxxxxxx] On Behalf Of Paul Webster
Sent: Mittwoch, 16. Februar 2011 18:31
To: Baumgart, Jens
Cc: Alex Blewitt; Matthias Sohn; EGit developer discussion
Subject: Re: [egit-dev] where have the Team > Remote > Configure Push and Configure Fetch gone ?

 

Hi Jens,

On Wed, Feb 16, 2011 at 12:12 PM, Baumgart, Jens <jens.baumgart@xxxxxxx> wrote:

Thanks for the hint. In Navigator, the property tester is called for all project types.

In Package Explorer, it is not called for plugin / java projects

 

Plugin xml looks like this:

 

               <visibleWhen

                     checkEnabled="false">

                  <and>

                     <count

                           value="1">

                     </count>

                     <iterate>

                        <and>

                           <adapt

                                 type="org.eclipse.core.resources.IProject">

                           </adapt>

                           <test

                                 property="GitResource.isShared">

                           </test>

                        </and>

                     </iterate>

                  </and>

               </visibleWhen>




Your test has to be inside your adapt if your property tester expects an IProject


<visibleWhen checkEnabled="false">
    <and>
        <count value="1" />
        <iterate>
            <adapt type="org.eclipse.core.resources.IProject">
                <test property="GitResource.isShared" />
            </adapt>
        </iterate>
    </and>
</visibleWhen>

PW


--
Paul Webster
Hi floor.  Make me a sammich! - GIR


Back to the top