Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 104321 - [implementation] IDocumentSetupParticipant.setup called more than once for same extension
Summary: [implementation] IDocumentSetupParticipant.setup called more than once for sa...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 04:19 EDT by Dani Megert CLA
Modified: 2006-01-04 09:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2005-07-19 04:19:23 EDT
R3.0

If a documentSetup extension is defined like:
  <extension
    id="PropertiesFileDocumentSetupParticipant1"
    name="%propertiesFileDocumentSetupParticipant"
    point="org.eclipse.core.filebuffers.documentSetup">
    <participant
      contentTypeId="org.eclipse.jdt.core.javaProperties"
      extensions="properties"   
      class="...class...">
    </participant>
  </extension>

setup(IDocument) might get called more than once.

We have to ensure that each extension is only called once.
Comment 1 Dani Megert CLA 2006-01-04 09:24:22 EST
Fixed in HEAD.
Available in builds > 20060104-0010.