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 ?

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>

 

Adapting to IResource also does not work.

 

--Jens

 

 

 

From: paulweb515@xxxxxxxxx [mailto:paulweb515@xxxxxxxxx] On Behalf Of Paul Webster
Sent: Mittwoch, 16. Februar 2011 18:00
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 ?

 

On Wed, Feb 16, 2011 at 11:34 AM, Baumgart, Jens <jens.baumgart@xxxxxxx> wrote:

I found one strange thing: the property tester is only called for non code projects in my workspace (like org.eclipse.jgit.feature)

Why???

 



How is it used?  If it was defined against IResource, is it in a call like this:

<adapt type="org.eclipse.core.resources.IResource">
  <test ..../>
</adapt>

The reason is in views like the Package Explorer, the selection is something like an IJavaElement or IJavaProject and needs to be adapted to an IResource.

PW

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


Back to the top