common navigator examples empty ? EclipseCon ? [message #303173] |
Wed, 10 May 2006 05:22  |
Eclipse User |
|
|
|
Lookin at eclipse cvs to try and find the src of the example used in the
EclipseCon talk about
common navigator I found /org.eclipse.ui.examples.navigator but it is
empty :(
Anyone know where the EclipseCon src can be found ? (I could only find the
presentation file)
/max
|
|
|
|
|
|
|
|
|
Re: common navigator examples empty ? EclipseCon ? [message #303752 is a reply to message #303741] |
Sun, 21 May 2006 17:20  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040800060801010609090304
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
I will be releasing the example to the repo once I have ensured that I
have approvals to do so without affecting the build. I've attached here
for now. If approved, I will release this early this coming week.
As for the id, I'm not sure of what can be done at this point during
development time; the
id is really only used by the extension parsing mechanism, and currently
the PDE schema validation doesn't have a way to indicate how the
attributes of various extensions interact. I could prepare a warning
that would be logged at runtime though. This is how other errors are
logged (like two navigatorContent extensions specifying the same id).
I'd suggest opening a defect if you think this would be useful (but 3.2
is almost shutdown, so it probably won't make it into this release). It
would be easy enough to do for the next release though.
-MDE.
Max Rydahl Andersen wrote:
>
> correction: My file was *almost* the same ;)
>
> I had made a typo in the viewerid of the viewerContentBinding.
>
> Correcting that and it just works ;)
>
> p.s. is it just me or shouldn't there be an error log entry for invalid
> id for e.g. viewerContentBinding ?
> Or is there some logging I should enable to get "stupid user
> errors/info" from the common navigator ?
>
>> Hi MDE,
>>
>> I tried to follow your blog but even though my extension points is
>> equal to the one in your blog.
>>
>> I have a feeling that something is missing in the blog text; could you
>> possible provide a zipped file
>> of the example ? (the screenshots only show partial information)
>>
>>>
>>> I've started a blog to start providing examples to the community and
>>> solicit feedback. The first example posted is available here
>>> http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html
>>> .
>>>
>>> -MDE.
>>>
>>> Michael D. Elder wrote:
>>>> Hi Max,
>>>> The example used is derived from the test extension in
>>>> org.eclipse.ui.tests.navigator. This is your best bet, as it flexes
>>>> just about every thing that an average extension would want to do. A
>>>> more formal article will be coming soon that has a full fledged
>>>> example along with a walk through on how to create an extension. I
>>>> hope this will be available sometime in mid to late June.
>>>> For others reading this post, the slides are available on the
>>>> EclipseCon website http://www.eclipsecon.org/2006/Sub.do?id=260.
>>>> HTH,
>>>> -MDE.
>>>> Max Rydahl Andersen wrote:
>>>>>
>>>>> Lookin at eclipse cvs to try and find the src of the example used
>>>>> in the EclipseCon talk about
>>>>> common navigator I found /org.eclipse.ui.examples.navigator but it
>>>>> is empty :(
>>>>>
>>>>> Anyone know where the EclipseCon src can be found ? (I could only
>>>>> find the presentation file)
>>>>>
>>>>> /max
>>
>>
>>
>
>
>
> --Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
--------------040800060801010609090304
Content-Type: text/xml;
name="plugin.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="plugin.xml"
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.views">
<category
id="org.eclipse.ui.examples.navigator.category"
name="Common Navigator Examples"/>
<view
allowMultiple="false"
class="org.eclipse.ui.navigator.CommonNavigator"
icon="icons/filenav_nav.gif"
id="org.eclipse.ui.examples.navigator.view"
name="Example View"/>
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
<viewer viewerId="org.eclipse.ui.examples.navigator.view"/>
<viewerContentBinding viewerId="org.eclipse.ui.examples.navigator.view">
<includes>
<contentExtension pattern="org.eclipse.ui.navigator.resourceContent"/>
<contentExtension pattern="org.eclipse.ui.navigator.resources.filters.*"/>
<contentExtension pattern="org.eclipse.ui.examples.navigator.filters.*"/>
</includes>
</viewerContentBinding>
<viewerActionBinding viewerId="org.eclipse.ui.examples.navigator.view">
<includes>
<actionExtension pattern="org.eclipse.ui.navigator.resources.*"/>
</includes>
</viewerActionBinding>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<commonFilter
id=" org.eclipse.ui.examples.navigator.filters.hideNonJavaProject s "
name="Hide non-Java Projects">
<filterExpression>
<not>
<adapt type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.jdt.core.javanature"/>
</adapt>
</not>
</filterExpression>
</commonFilter>
</extension>
</plugin>
--------------040800060801010609090304--
|
|
|
Powered by
FUDForum. Page generated in 0.05277 seconds