Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 156928 | Differences between
and this patch

Collapse All | Expand All

(-)plugin.xml (+69 lines)
Lines 206-210 Link Here
206
            <objectClass name="org.eclipse.ui.tests.navigator.extension.TestExtensionTreeData"/>
206
            <objectClass name="org.eclipse.ui.tests.navigator.extension.TestExtensionTreeData"/>
207
         </enablement>
207
         </enablement>
208
      </decorator>
208
      </decorator>
209
   </extension>
210
   <extension
211
         point="org.eclipse.ui.activities">
212
      <activityPatternBinding
213
            activityId="org.eclipse.wst.web"
214
            pattern="org\.eclipse\.ui\.tests\.navigator\.*"/> 
215
   </extension>
216
   
217
   <extension
218
         point="org.eclipse.ui.newWizards">
219
      <wizard
220
            class="org.eclipse.ui.tests.navigator.wizards.NewWizard1"
221
            id="org.eclipse.ui.tests.navigator.SampleNewWizard"
222
            name="Sample New Wizard (Does Nothing)"/>
223
   </extension>
224
   
225
   <extension
226
         point="org.eclipse.ui.importWizards">
227
      <wizard
228
            class="org.eclipse.ui.tests.navigator.wizards.ImportWizard1"
229
            id="org.eclipse.ui.tests.navigator.SampleImportWizard"
230
            name="Sample Import Wizard  (Does Nothing)"/>
231
   </extension>
232
  
233
   <extension
234
         point="org.eclipse.ui.exportWizards">
235
      <wizard
236
            class="org.eclipse.ui.tests.navigator.wizards.ExportWizard1"
237
            id="org.eclipse.ui.tests.navigator.SampleExportWizard"
238
            name="Sample Export Wizard  (Does Nothing)"/>
239
   </extension>
240
	<extension
241
	      point="org.eclipse.ui.navigator.navigatorContent"> 
242
      <commonWizard
243
            associatedExtensionId="org.eclipse.ui.tests.navigator.testContent"
244
            menuGroupId="org.eclipse.ui.tests.navigator"
245
            type="import"
246
            wizardId="org.eclipse.ui.tests.navigator.SampleImportWizard">
247
         <enablement>
248
            <or>
249
				<instanceof value="org.eclipse.ui.tests.navigator.extension.TestExtensionTreeData"/>
250
				<instanceof value="org.eclipse.core.resources.IFile" />
251
			</or>         
252
         </enablement>
253
      </commonWizard>
254
      <commonWizard
255
            associatedExtensionId="org.eclipse.ui.tests.navigator.testContent"
256
            menuGroupId="org.eclipse.ui.tests.navigator"
257
            type="export"
258
            wizardId="org.eclipse.ui.tests.navigator.SampleExportWizard">
259
         <enablement>
260
            <or>
261
				<instanceof value="org.eclipse.ui.tests.navigator.extension.TestExtensionTreeData"/>
262
				<instanceof value="org.eclipse.core.resources.IFile" />
263
			</or>         
264
         </enablement>
265
      </commonWizard>
266
      <commonWizard
267
            associatedExtensionId="org.eclipse.ui.tests.navigator.testContent"
268
            menuGroupId="org.eclipse.ui.tests.navigator"
269
            type="new"
270
            wizardId="org.eclipse.ui.tests.navigator.SampleNewWizard">  
271
         <enablement>
272
            <or>
273
				<instanceof value="org.eclipse.ui.tests.navigator.extension.TestExtensionTreeData"/>
274
				<instanceof value="org.eclipse.core.resources.IFile" />
275
			</or>         
276
         </enablement>            
277
      </commonWizard>
209
   </extension> 
278
   </extension> 
210
</plugin>
279
</plugin>
(-)src/org/eclipse/ui/tests/navigator/wizards/NewWizard1.java (+27 lines)
Added Link Here
1
package org.eclipse.ui.tests.navigator.wizards;
2
3
import org.eclipse.jface.viewers.IStructuredSelection;
4
import org.eclipse.jface.wizard.Wizard;
5
import org.eclipse.ui.INewWizard;
6
import org.eclipse.ui.IWorkbench;
7
8
/**
9
 * Does nothing. Used to test the Capability-awareness of the <b>commonWizard</b> extension.
10
 * 
11
 * @since 3.2
12
 *
13
 */
14
public class NewWizard1 extends Wizard implements INewWizard {
15
16
	public NewWizard1() { 
17
	}
18
 
19
	public boolean performFinish() { 
20
		return false;
21
	}
22
23
	public void init(IWorkbench workbench, IStructuredSelection selection) { 
24
25
	}
26
27
}
(-)src/org/eclipse/ui/tests/navigator/wizards/ImportWizard1.java (+27 lines)
Added Link Here
1
package org.eclipse.ui.tests.navigator.wizards;
2
3
import org.eclipse.jface.viewers.IStructuredSelection;
4
import org.eclipse.jface.wizard.Wizard;
5
import org.eclipse.ui.IImportWizard;
6
import org.eclipse.ui.IWorkbench;
7
8
/**
9
 * Does nothing. Used to test the Capability-awareness of the <b>commonWizard</b> extension.
10
 * 
11
 * @since 3.2
12
 *
13
 */
14
public class ImportWizard1 extends Wizard implements IImportWizard {
15
16
	public ImportWizard1() { 
17
	}
18
 
19
	public boolean performFinish() { 
20
		return false;
21
	}
22
23
	public void init(IWorkbench workbench, IStructuredSelection selection) { 
24
25
	}
26
27
}
(-)src/org/eclipse/ui/tests/navigator/wizards/ExportWizard1.java (+27 lines)
Added Link Here
1
package org.eclipse.ui.tests.navigator.wizards;
2
3
import org.eclipse.jface.viewers.IStructuredSelection;
4
import org.eclipse.jface.wizard.Wizard;
5
import org.eclipse.ui.IExportWizard;
6
import org.eclipse.ui.IWorkbench;
7
/**
8
 * Does nothing. Used to test the Capability-awareness of the <b>commonWizard</b> extension.
9
 * 
10
 * @since 3.2
11
 *
12
 */
13
public class ExportWizard1 extends Wizard implements IExportWizard {
14
15
	public ExportWizard1() { 
16
	}
17
18
	@Override
19
	public boolean performFinish() { 
20
		return false;
21
	}
22
23
	public void init(IWorkbench workbench, IStructuredSelection selection) { 
24
25
	}
26
27
}

Return to bug 156928