Bug 234376 - New Plug-in project with property page template uses deprecated elements
Summary: New Plug-in project with property page template uses deprecated elements
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-05-28 10:39 EDT by Curtis Windatt CLA
Modified: 2008-11-04 16:17 EST (History)
4 users (show)

See Also:


Attachments
patch (3.62 KB, patch)
2008-11-03 17:03 EST, Benjamin Cabé CLA
caniszczyk: iplog+
Details | Diff
mylyn/context/zip (1.84 KB, application/octet-stream)
2008-11-04 16:17 EST, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2008-05-28 10:39:12 EDT
From bug 234351.

Using the new plug-in project wizard, generate a new project using the 'with property page' template.

The plugin.xml will contain something similar to the following

<extension
         point="org.eclipse.ui.propertyPages">
      <page
            objectClass="org.eclipse.core.resources.IFile"
            name="Sample Page"
            nameFilter="*.*"
            class="test3.properties.SamplePropertyPage"
            id="test3.properties.samplePropertyPage">
      </page>
   </extension>

The objectClass element is deprecated.  We shouldn't have a template that uses deprecated code as an example for new users.
Comment 1 Curtis Windatt CLA 2008-05-28 10:40:31 EDT
Marking as bug day as it should be a simple fix.  Also marking as 3.4 RC3, as this would be a good polish item for 3.4.
Comment 2 Chris Aniszczyk CLA 2008-05-28 11:16:48 EDT
Not a stop ship issue. We will look at 3.5

This is a bit tricky because this was deprecated in 3.3... so we need special logic in our template to accommodate this.

The fix would be to do something like this instead of objectClass...

<enabledWhen>
            <instanceof
                  value="org.eclipse.core.resources.IFile">
            </instanceof>
         </enabledWhen>
Comment 3 Chris Aniszczyk CLA 2008-11-03 16:44:43 EST
Right up your alley Benjamin ;)?
Comment 4 Benjamin Cabé CLA 2008-11-03 16:49:24 EST
okidokie ;)
Comment 5 Benjamin Cabé CLA 2008-11-03 17:03:08 EST
Created attachment 116874 [details]
patch
Comment 6 Chris Aniszczyk CLA 2008-11-04 16:17:21 EST
Thanks Benjamin, you rock!
Comment 7 Chris Aniszczyk CLA 2008-11-04 16:17:25 EST
Created attachment 117009 [details]
mylyn/context/zip