Skip to content

Commit 52642e6

Browse files
Perform clean code of update/org.eclipse.update.configurator
1 parent 879c3bd commit 52642e6

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class ConfiguratorUtils {
4444
* @return platform configuration used in current instance of platform
4545
* @since 3.0
4646
*/
47+
@Deprecated
4748
public static IPlatformConfiguration getCurrentPlatformConfiguration() {
4849
// acquire factory service first
4950
BundleContext context = ConfigurationActivator.getBundleContext();
@@ -69,6 +70,7 @@ public static IPlatformConfiguration getCurrentPlatformConfiguration() {
6970
* is specified, an empty configuration object is returned
7071
* @return platform configuration used in current instance of platform
7172
*/
73+
@Deprecated
7274
public static IPlatformConfiguration getPlatformConfiguration(URL url) throws IOException {
7375
// acquire factory service first
7476
BundleContext context = ConfigurationActivator.getBundleContext();
@@ -95,6 +97,7 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url) throws IO
9597
* @param loc location of the platform installation. Used to resolve entries in the save location
9698
* @return platform configuration used in current instance of platform
9799
*/
100+
@Deprecated
98101
public static IPlatformConfiguration getPlatformConfiguration(URL url, URL loc) throws IOException {
99102
// acquire factory service first
100103
BundleContext context = ConfigurationActivator.getBundleContext();
@@ -115,6 +118,7 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url, URL loc)
115118
/**
116119
* @return the URL of this eclipse installation
117120
*/
121+
@Deprecated
118122
public static URL getInstallURL() {
119123
return Utils.getInstallURL();
120124
}

update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/IPlatformConfiguration.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public interface IPlatformConfiguration {
4444
*
4545
* @since 2.0
4646
*/
47+
@Deprecated
4748
public interface ISiteEntry {
4849

4950
/**
@@ -167,6 +168,7 @@ public interface ISiteEntry {
167168
*
168169
* @since 2.0
169170
*/
171+
@Deprecated
170172
public interface ISitePolicy {
171173

172174
/**
@@ -235,6 +237,7 @@ public interface ISitePolicy {
235237
*
236238
* @since 2.0
237239
*/
240+
@Deprecated
238241
public interface IFeatureEntry {
239242

240243
/**
@@ -315,6 +318,7 @@ public interface IFeatureEntry {
315318
* @return created site entry
316319
* @since 2.0
317320
*/
321+
@Deprecated
318322
public ISiteEntry createSiteEntry(URL url, ISitePolicy policy);
319323

320324
/**
@@ -327,6 +331,7 @@ public interface IFeatureEntry {
327331
* @return created site policy entry
328332
* @since 2.0
329333
*/
334+
@Deprecated
330335
public ISitePolicy createSitePolicy(int type, String[] list);
331336

332337
/**
@@ -348,6 +353,7 @@ public interface IFeatureEntry {
348353
* @return create feature entry
349354
* @since 2.0
350355
*/
356+
@Deprecated
351357
public IFeatureEntry createFeatureEntry(String id, String version, String pluginVersion, boolean primary, String application, URL[] root);
352358

353359
/**
@@ -371,6 +377,7 @@ public interface IFeatureEntry {
371377
* @return create feature entry
372378
* @since 2.1
373379
*/
380+
@Deprecated
374381
public IFeatureEntry createFeatureEntry(String id, String version, String pluginIdentifier, String pluginVersion, boolean primary, String application, URL[] root);
375382

376383
/**
@@ -380,6 +387,7 @@ public interface IFeatureEntry {
380387
* @param entry site entry
381388
* @since 2.0
382389
*/
390+
@Deprecated
383391
public void configureSite(ISiteEntry entry);
384392

385393
/**
@@ -392,6 +400,7 @@ public interface IFeatureEntry {
392400
* the same URL should be replaced (<code>true</code>) or not (<code>false</code>).
393401
* @since 2.0
394402
*/
403+
@Deprecated
395404
public void configureSite(ISiteEntry entry, boolean replace);
396405

397406
/**
@@ -401,6 +410,7 @@ public interface IFeatureEntry {
401410
* @param entry site entry
402411
* @since 2.0
403412
*/
413+
@Deprecated
404414
public void unconfigureSite(ISiteEntry entry);
405415

406416
/**
@@ -410,6 +420,7 @@ public interface IFeatureEntry {
410420
* configured
411421
* @since 2.0
412422
*/
423+
@Deprecated
413424
public ISiteEntry[] getConfiguredSites();
414425

415426
/**
@@ -419,6 +430,7 @@ public interface IFeatureEntry {
419430
* @return matching site entry, or <code>null</code> if no match found
420431
* @since 2.0
421432
*/
433+
@Deprecated
422434
public ISiteEntry findConfiguredSite(URL url);
423435

424436
/**
@@ -428,13 +440,15 @@ public interface IFeatureEntry {
428440
* @param entry feature entry
429441
* @since 2.0
430442
*/
443+
@Deprecated
431444
public void configureFeatureEntry(IFeatureEntry entry);
432445

433446
/**
434447
* Unconfigures the specified feature entry if it exists.
435448
* @param entry feature entry
436449
* @since 2.0
437450
*/
451+
@Deprecated
438452
public void unconfigureFeatureEntry(IFeatureEntry entry);
439453

440454
/**
@@ -443,6 +457,7 @@ public interface IFeatureEntry {
443457
* are configured
444458
* @since 2.0
445459
*/
460+
@Deprecated
446461
public IFeatureEntry[] getConfiguredFeatureEntries();
447462

448463
/**
@@ -451,6 +466,7 @@ public interface IFeatureEntry {
451466
* @return ferature entry, or <code>null</code>.
452467
* @since 2.0
453468
*/
469+
@Deprecated
454470
public IFeatureEntry findConfiguredFeatureEntry(String id);
455471

456472
/**
@@ -460,6 +476,7 @@ public interface IFeatureEntry {
460476
* configuration location could not be determined.
461477
* @since 2.0
462478
*/
479+
@Deprecated
463480
public URL getConfigurationLocation();
464481

465482
/**
@@ -470,6 +487,7 @@ public interface IFeatureEntry {
470487
* @return configuration change stamp
471488
* @since 2.0
472489
*/
490+
@Deprecated
473491
public long getChangeStamp();
474492

475493
/**
@@ -504,6 +522,7 @@ public interface IFeatureEntry {
504522
* @return primary feature identifier, or <code>null</code> if none configured
505523
* @since 2.0
506524
*/
525+
@Deprecated
507526
public String getPrimaryFeatureIdentifier();
508527

509528
/**
@@ -513,6 +532,7 @@ public interface IFeatureEntry {
513532
* @return an array of plug-in path elements (full URL entries), or an empty array.
514533
* @since 2.0
515534
*/
535+
@Deprecated
516536
public URL[] getPluginPath();
517537

518538
/**
@@ -549,6 +569,7 @@ public interface IFeatureEntry {
549569
* otherwise
550570
* @since 2.0
551571
*/
572+
@Deprecated
552573
public boolean isUpdateable();
553574

554575
/**
@@ -561,6 +582,7 @@ public interface IFeatureEntry {
561582
* otherwise
562583
* @since 2.0
563584
*/
585+
@Deprecated
564586
public boolean isTransient();
565587

566588
/**
@@ -574,6 +596,7 @@ public interface IFeatureEntry {
574596
* otherwise
575597
* @since 2.0
576598
*/
599+
@Deprecated
577600
public void isTransient(boolean value);
578601

579602
/**
@@ -582,12 +605,14 @@ public interface IFeatureEntry {
582605
* configuration state, and updates the lists of available plug-ins.
583606
* @since 2.0
584607
*/
608+
@Deprecated
585609
public void refresh();
586610

587611
/**
588612
* Called to save the configuration information
589613
* @since 2.0
590614
*/
615+
@Deprecated
591616
public void save() throws IOException;
592617

593618
/**
@@ -597,6 +622,7 @@ public interface IFeatureEntry {
597622
* @param url save location.
598623
* @since 2.0
599624
*/
625+
@Deprecated
600626
public void save(URL url) throws IOException;
601627

602628
}

update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/IPlatformConfigurationFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public interface IPlatformConfigurationFactory {
3434
*
3535
* @return platform configuration used in current instance of platform
3636
*/
37+
@Deprecated
3738
public IPlatformConfiguration getCurrentPlatformConfiguration();
3839
/**
3940
* Returns a platform configuration object, optionally initialized with previously saved
@@ -43,6 +44,7 @@ public interface IPlatformConfigurationFactory {
4344
* is specified, an empty configuration object is returned
4445
* @return platform configuration used in current instance of platform
4546
*/
47+
@Deprecated
4648
public IPlatformConfiguration getPlatformConfiguration(URL url) throws IOException;
4749

4850
/**
@@ -55,5 +57,6 @@ public interface IPlatformConfigurationFactory {
5557
* location
5658
* @return platform configuration used in current instance of platform
5759
*/
60+
@Deprecated
5861
public IPlatformConfiguration getPlatformConfiguration(URL url, URL loc) throws IOException;
5962
}

0 commit comments

Comments
 (0)