Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321930 - IApplication missing parameter support
Summary: IApplication missing parameter support
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 18:03 EDT by Paul Bilnoski CLA
Modified: 2010-10-11 05:05 EDT (History)
0 users

See Also:


Attachments
IApplication implementation to use the argument (1.22 KB, text/plain)
2010-08-05 18:04 EDT, Paul Bilnoski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bilnoski CLA 2010-08-05 18:03:37 EDT
Build Identifier: 1.3

Parameters given to the "run" element in an application extension point are not evaluated. It is optional that an IApplication instance may also implement IExecutableExtension to be passed static arguments.

   <extension
         id="brokey"
         point="org.eclipse.core.runtime.applications">
      <application
            visible="true">
         <run
               class="bug.rap.applicationargs.Application">
            <parameter
                  name="configParam"
                  value="custom argument">
            </parameter>
         </run>
      </application>
   </extension>

This is useful when the IApplication implementation is complex and could benefit from argument injection instead of being subclassed when multiple entry points are defined on the same RAP application.

Reproducible: Always
Comment 1 Paul Bilnoski CLA 2010-08-05 18:04:56 EDT
Created attachment 175986 [details]
IApplication implementation to use the argument