1 11 package org.eclipse.core.boot; 12 13 import java.io.IOException ; 14 import java.net.URL ; 15 16 33 public interface IPlatformConfiguration { 34 35 40 public interface ISiteEntry { 41 42 48 public URL getURL(); 49 50 56 public ISitePolicy getSitePolicy(); 57 58 64 public void setSitePolicy(ISitePolicy policy); 65 66 74 public String [] getFeatures(); 75 76 86 public String [] getPlugins(); 87 88 96 public long getChangeStamp(); 97 98 106 public long getFeaturesChangeStamp(); 107 108 116 public long getPluginsChangeStamp(); 117 118 124 public boolean isUpdateable(); 125 126 134 public boolean isNativelyLinked(); 135 } 136 137 159 public interface ISitePolicy extends org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy { 160 161 164 165 170 public static final int USER_INCLUDE = 0; 171 172 177 public static final int USER_EXCLUDE = 1; 178 179 185 public int getType(); 186 187 193 public String [] getList(); 194 195 205 public void setList(String [] list); 206 } 207 208 220 public interface IFeatureEntry { 221 222 227 public String getFeatureIdentifier(); 228 229 234 public String getFeatureVersion(); 235 236 248 public String getFeaturePluginIdentifier(); 249 250 262 public String getFeaturePluginVersion(); 263 264 270 public String getFeatureApplication(); 271 272 280 public URL [] getFeatureRootURLs(); 281 282 289 public boolean canBePrimary(); 290 } 291 292 300 public ISiteEntry createSiteEntry(URL url, ISitePolicy policy); 301 302 312 public ISitePolicy createSitePolicy(int type, String [] list); 313 314 333 public IFeatureEntry createFeatureEntry(String id, String version, String pluginVersion, boolean primary, String application, URL [] root); 334 335 356 public IFeatureEntry createFeatureEntry(String id, String version, String pluginIdentifier, String pluginVersion, boolean primary, String application, URL [] root); 357 358 365 public void configureSite(ISiteEntry entry); 366 367 377 public void configureSite(ISiteEntry entry, boolean replace); 378 379 386 public void unconfigureSite(ISiteEntry entry); 387 388 395 public ISiteEntry[] getConfiguredSites(); 396 397 404 public ISiteEntry findConfiguredSite(URL url); 405 406 413 public void configureFeatureEntry(IFeatureEntry entry); 414 415 420 public void unconfigureFeatureEntry(IFeatureEntry entry); 421 422 428 public IFeatureEntry[] getConfiguredFeatureEntries(); 429 430 436 public IFeatureEntry findConfiguredFeatureEntry(String id); 437 438 445 public URL getConfigurationLocation(); 446 447 455 public long getChangeStamp(); 456 457 465 public long getFeaturesChangeStamp(); 466 467 475 public long getPluginsChangeStamp(); 476 477 485 public String getPrimaryFeatureIdentifier(); 486 487 494 public URL [] getPluginPath(); 495 496 504 public String [] getBootstrapPluginIdentifiers(); 505 506 515 public void setBootstrapPluginLocation(String id, URL location); 516 517 524 public boolean isUpdateable(); 525 526 536 public boolean isTransient(); 537 538 550 public void isTransient(boolean value); 551 552 558 public void refresh(); 559 560 564 public void save() throws IOException ; 565 566 573 public void save(URL url) throws IOException ; 574 575 } 576 | Popular Tags |