aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-12-18 11:55:20 (EST)
committerGerrit Code Review @ Eclipse.org2013-12-18 18:16:08 (EST)
commitd6f4bc4a31caa9a5a3f625ca28f66529fd948e64 (patch)
treeffdb69885e41bc81ca2d4abcbb636549612ee351
parentbc7771051ebc5eaeb38c18663b72043dd5312f06 (diff)
downloadorg.eclipse.orion.client-d6f4bc4a31caa9a5a3f625ca28f66529fd948e64.zip
org.eclipse.orion.client-d6f4bc4a31caa9a5a3f625ca28f66529fd948e64.tar.gz
org.eclipse.orion.client-d6f4bc4a31caa9a5a3f625ca28f66529fd948e64.tar.bz2
Bug 424351 - Allow plug-in contributed settings pages to customize UI v20131218-2316refs/changes/96/19996/2
Change-Id: I45b3e964d45928dd233c99b4d5a584740caf080e Signed-off-by: Curtis Windatt <cwindatt@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/settings/ui/PluginSettings.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/settings/ui/PluginSettings.js b/bundles/org.eclipse.orion.client.ui/web/orion/settings/ui/PluginSettings.js
index 85e31f6..7d6074b 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/settings/ui/PluginSettings.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/settings/ui/PluginSettings.js
@@ -1,6 +1,6 @@
/*******************************************************************************
* @license
- * Copyright (c) 2012 IBM Corporation and others.
+ * Copyright (c) 2012, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
@@ -316,6 +316,13 @@ define(['i18n!orion/settings/nls/messages', 'orion/explorers/explorer', 'orion/s
var idPrefix = 'pluginsettings-'; //$NON-NLS-0$
var sectionId = idPrefix + 'section'; //$NON-NLS-0$
var section = this._makeSection(parent, sectionId, settings, title);
+
+ // Add a class name based on the category (all settings on the page have the same category currently)
+ if (settings.length > 0){
+ if(settings[0].category){
+ section.getContentElement().classList.add(settings[0].category + "SettingsTable"); //$NON-NLS-0$
+ }
+ }
this.explorer = new SettingsListExplorer(serviceRegistry);
this.explorer.createTree(section.getContentElement().id, new mExplorer.SimpleFlatModel(settings, 'setting-', //$NON-NLS-0$
@@ -324,7 +331,8 @@ define(['i18n!orion/settings/nls/messages', 'orion/explorers/explorer', 'orion/s
}),
{ tableElement: 'div', //$NON-NLS-0$
tableBodyElement: 'div', //$NON-NLS-0$
- tableRowElement: 'div' //$NON-NLS-0$
+ tableRowElement: 'div', //$NON-NLS-0$
+ noSelection: true // Until we support selection based commands, don't allow selection
});
}
};