Author: scabanovich
Date: 2011-08-03 14:52:34 -0400 (Wed, 03 Aug 2011)
New Revision: 33550
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencePage.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties
Log:
JBIDE-9120
https://issues.jboss.org/browse/JBIDE-9120
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties 2011-08-03 18:34:20 UTC
(rev 33549)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.properties 2011-08-03 18:52:34 UTC
(rev 33550)
@@ -11,4 +11,7 @@
PreferencePage_KBSettings=JBoss Tools Knowledge Base
ConfigureMenu_AddKBSupport=Add JBoss Tools Knowledge Base Support
-ConfigureMenu_RemoveKBSupport=Remove JBoss Tools Knowledge Base Support
\ No newline at end of file
+ConfigureMenu_RemoveKBSupport=Remove JBoss Tools Knowledge Base Support
+
+PreferencePage_KB=Knowledge Base
+PreferencePage_KBValidator=Validator
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2011-08-03 18:34:20 UTC (rev
33549)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2011-08-03 18:52:34 UTC (rev
33550)
@@ -308,6 +308,21 @@
</page>
</extension>
+ <extension point="org.eclipse.ui.preferencePages">
+ <page
+ category="org.jboss.tools.common.model.ui.kb"
+
class="org.jboss.tools.jst.web.kb.preferences.KBValidationPreferencePage"
+ id="org.jboss.tools.jst.web.kb.preferences.KBValidationPreferencePage"
+ name="%PreferencePage_KBValidator">
+ </page>
+ <page
+ category="org.jboss.tools.common.model.ui"
+ class="org.jboss.tools.jst.web.kb.preferences.KBPreferencePage"
+ id="org.jboss.tools.common.model.ui.kb"
+ name="%PreferencePage_KB">
+ </page>
+ </extension>
+
<extension
point="org.eclipse.ui.popupMenus">
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties 2011-08-03
18:34:20 UTC (rev 33549)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties 2011-08-03
18:52:34 UTC (rev 33550)
@@ -20,5 +20,3 @@
ILLEGAL_CONTENTTYPE=Unknown contentType argument value: {0}
EXCEPTION_DURING_CREATING_MARKER=Exception occurred during creating marker for validation
error on ''{0}''
-
-KB_SETTINGS_PREFERENCE_PAGE_KB_SUPPORT=JBoss Tools Knowledge Base support\:
\ No newline at end of file
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencePage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencePage.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencePage.java 2011-08-03
18:52:34 UTC (rev 33550)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.web.kb.preferences;
+
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class KBPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
{
+
+ /**
+ * @see plugin.xml descriptor for ID
+ */
+ public static final String ID = "org.jboss.tools.common.model.ui.kb";
//$NON-NLS-1$
+
+ @Override
+ protected Control createContents(Composite parent) {
+ Composite root = new Composite(parent, SWT.NONE);
+ GridLayout gl = new GridLayout(1, false);
+ root.setLayout(gl);
+
+ Label lable = new Label(root, 0);
+ lable.setText(KBPreferencesMessages.KB_DESCRIPTION);
+
+ return root;
+ }
+
+ public void init(IWorkbench workbench) {
+ }
+}
\ No newline at end of file
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencePage.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.java 2011-08-03
18:52:34 UTC (rev 33550)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jst.web.kb.preferences;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class KBPreferencesMessages extends NLS {
+ private static final String BUNDLE_NAME = KBPreferencesMessages.class.getName();
+
+ public static String KB_DESCRIPTION;
+
+ public static String KB_SETTINGS_PREFERENCE_PAGE_KB_SUPPORT;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, KBPreferencesMessages.class);
+ }
+}
\ No newline at end of file
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.properties
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.properties
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.properties 2011-08-03
18:52:34 UTC (rev 33550)
@@ -0,0 +1,25 @@
+##################################################################################
+### Copyright (c) 2011 Red Hat, Inc.
+### Distributed under license by Red Hat, Inc. All rights reserved.
+### This program is made available under the terms of the
+### Eclipse Public License v1.0 which accompanies this distribution,
+### and is available at
http://www.eclipse.org/legal/epl-v10.html
+###
+### Contributors:
+### Red Hat, Inc. - initial API and implementation
+##################################################################################
+
+KB_DESCRIPTION=JBoss Tools Knowledge Base is a set of basic frameworks \n\
+that provides for concerted action of other JBoss Tools \n\
+(such as CDI, Seam, JSF) at validation, expression language resolution, \n\
+content assist in expression language and in web page xml/html structures. \n\
+Enabling Knowledge Base capabilities (nature and builder) on a project \n\
+is required for correct work of other JBoss Tools capabilities. \n\
+Since each Java archive is ready to provide JSF 2 resources, \n\
+it is recommended to enable Knowledge Base capabilities on any \n\
+Java project that is used as a module by another Web project.
+
+KB_SETTINGS_PREFERENCE_PAGE_KB_SUPPORT=JBoss Tools Knowledge Base support\:
+
+KB_VALIDATOR_PREFERENCE_PAGE_KB_VALIDATOR=KB Validator
+
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBPreferencesMessages.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java 2011-08-03
18:52:34 UTC (rev 33550)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.web.kb.preferences;
+
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class KBValidationPreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
+
+ /**
+ * @see plugin.xml descriptor for ID
+ */
+ public static final String ID = "org.jboss.tools.common.model.ui.kb";
//$NON-NLS-1$
+
+ @Override
+ protected Control createContents(Composite parent) {
+ Composite root = new Composite(parent, SWT.NONE);
+ GridLayout gl = new GridLayout(1, false);
+ root.setLayout(gl);
+
+ return root;
+ }
+
+ public void init(IWorkbench workbench) {
+ }
+}
\ No newline at end of file
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/preferences/KBValidationPreferencePage.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain