@Override protected void createStorageContexts(InputContextManager manager, IStorageEditorInput input) { String name = input.getName().toLowerCase(Locale.ENGLISH); if (name.startsWith("site.xml")) { //$NON-NLS-1$ manager.putContext(input, new SiteInputContext(this, input, true)); } }
@Override protected void createStorageContexts(InputContextManager manager, IStorageEditorInput input) { if (input.getName().endsWith(".product")) { //$NON-NLS-1$ manager.putContext(input, new ProductInputContext(this, input, true)); } }
@Override protected void createStorageContexts(InputContextManager manager, IStorageEditorInput input) { String name = input.getName().toLowerCase(Locale.ENGLISH); if (name.equals(ICoreConstants.BUILD_FILENAME_DESCRIPTOR)) { manager.putContext(input, new BuildInputContext(this, input, true)); } else if (name.startsWith(ICoreConstants.FEATURE_FILENAME_DESCRIPTOR)) { manager.putContext(input, new FeatureInputContext(this, input, true)); } }
@Override protected void createStorageContexts(InputContextManager manager, IStorageEditorInput input) { if (input instanceof JarEntryEditorInput) { createJarEntryContexts(manager, (JarEntryEditorInput) input); return; } String name = input.getName().toLowerCase(Locale.ENGLISH); if (name.startsWith(ICoreConstants.MANIFEST_FILENAME_LOWER_CASE)) { manager.putContext(input, new BundleInputContext(this, input, true)); } else if (name.startsWith(ICoreConstants.BUILD_FILENAME_DESCRIPTOR)) { manager.putContext(input, new BuildInputContext(this, input, true)); } else if (name.startsWith(ICoreConstants.PLUGIN_FILENAME_DESCRIPTOR)) { manager.putContext(input, new PluginInputContext(this, input, true, false)); } else if (name.startsWith(ICoreConstants.FRAGMENT_FILENAME_DESCRIPTOR)) { manager.putContext(input, new PluginInputContext(this, input, true, true)); } }