Author: akazakov
Date: 2011-11-03 18:43:01 -0400 (Thu, 03 Nov 2011)
New Revision: 36166
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
Log:
https://issues.jboss.org/browse/JBIDE-9581 Create vanilla CDI getting started project
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.java 2011-11-03
22:36:58 UTC (rev 36165)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.java 2011-11-03
22:43:01 UTC (rev 36166)
@@ -19,24 +19,24 @@
static {
NLS.initializeMessages(BUNDLE_NAME, CDIUIMessages.class);
}
-
+
public static String INJECTION_POINT_LABEL_PROVIDER_INJECT_BEAN;
public static String INJECTION_POINT_LABEL_PROVIDER_OBSERVER_METHOD;
public static String INJECTION_POINT_LABEL_PROVIDER_EVENT;
-
+
public static String CDI_BEAN_QUERY_PARTICIPANT_TASK;
public static String CDI_BEAN_QUERY_PARTICIPANT_INJECT_FIELD;
public static String CDI_BEAN_QUERY_PARTICIPANT_INJECT_METHOD;
public static String CDI_BEAN_QUERY_PARTICIPANT_INJECT_PARAMETER;
-
+
public static String CDI_UI_IMAGESBASE_URL_FOR_IMAGE_REGISTRY_CANNOT_BE_NULL;
public static String CDI_UI_IMAGESIMAGE_NAME_CANNOT_BE_NULL;
-
+
public static String CDI_REFACTOR_CONTRIBUTOR_MENU_NAME;
public static String CDI_REFACTOR_CONTRIBUTOR_ERROR;
public static String CDI_REFACTOR_CONTRIBUTOR_RENAME_NAMED_BEAN_ACTION_NAME;
public static String RENAME_NAMED_BEAN_WIZARD_FIELD_NAME;
-
+
public static String NEW_QUALIFIER_WIZARD_TITLE;
public static String NEW_QUALIFIER_WIZARD_PAGE_NAME;
public static String NEW_STEREOTYPE_WIZARD_TITLE;
@@ -45,20 +45,20 @@
public static String NEW_SCOPE_WIZARD_PAGE_NAME;
public static String NEW_INTERCEPTOR_BINDING_WIZARD_TITLE;
public static String NEW_INTERCEPTOR_BINDING_WIZARD_PAGE_NAME;
-
+
public static String NEW_INTERCEPTOR_WIZARD_TITLE;
public static String NEW_INTERCEPTOR_WIZARD_PAGE_NAME;
public static String NEW_INTERCEPTOR_WIZARD_DESCRIPTION;
-
+
public static String NEW_DECORATOR_WIZARD_TITLE;
public static String NEW_DECORATOR_WIZARD_PAGE_NAME;
public static String NEW_DECORATOR_WIZARD_INTERFACES_LABEL;
public static String NEW_DECORATOR_WIZARD_DESCRIPTION;
-
+
public static String NEW_BEAN_WIZARD_TITLE;
public static String NEW_BEAN_WIZARD_PAGE_NAME;
public static String NEW_BEAN_WIZARD_DESCRIPTION;
-
+
public static String NEW_BEANS_XML_WIZARD_TITLE;
public static String NEW_BEANS_XML_WIZARD_PAGE_NAME;
public static String NEW_BEANS_XML_WIZARD_DESCRIPTION;
@@ -76,23 +76,23 @@
public static String FIELD_EDITOR_INTERCEPTOR_BINDINGS_LABEL;
public static String FIELD_EDITOR_STEREOTYPES_LABEL;
public static String FIELD_EDITOR_QUALIFIER_LABEL;
-
+
public static String MESSAGE_METHOD_NAME_EMPTY;
public static String MESSAGE_METHOD_NAME_NOT_VALID;
-
+
public static String MESSAGE_FIELD_NAME_EMPTY;
public static String MESSAGE_FIELD_NAME_NOT_VALID;
-
+
public static String MESSAGE_INTERCEPTOR_BINDINGS_EMPTY;
-
+
public static String MESSAGE_STEREOTYPE_CANNOT_BE_APPLIED_TO_TYPE;
public static String MESSAGE_STEREOTYPE_IS_NOT_COMPATIBLE;
public static String MESSAGE_INTERCEPTOR_BINDING_IS_NOT_COMPATIBLE;
-
+
public static String MESSAGE_QUALIFIER_NOT_SET;
-
+
public static String MESSAGE_BEAN_SHOULD_BE_SERIALIZABLE;
-
+
public static String MAKE_FIELD_STATIC_MARKER_RESOLUTION_TITLE;
public static String MAKE_METHOD_PUBLIC_MARKER_RESOLUTION_TITLE;
public static String MAKE_METHOD_BUSINESS_MARKER_RESOLUTION_TITLE;
@@ -113,7 +113,7 @@
public static String CREATE_STEREOTYPE_TITLE;
public static String CREATE_INTERCEPTOR_TITLE;
public static String CREATE_DECORATOR_TITLE;
-
+
public static String CDI_QUICK_FIXES_ANNOTATION;
public static String CDI_QUICK_FIXES_INTERFACE;
public static String CDI_QUICK_FIXES_CLASS;
@@ -121,14 +121,14 @@
public static String CDI_QUICK_FIXES_METHOD;
public static String CDI_QUICK_FIXES_FIELD;
public static String CDI_QUICK_FIXES_PARAMETER;
-
+
public static String QUESTION;
public static String DECREASING_FIELD_VISIBILITY_MAY_CAUSE_COMPILATION_PROBLEMS;
-
+
public static String SELECT_BEAN_WIZARD_TITLE;
public static String SELECT_BEAN_WIZARD_ENTER_BEAN_NAME;
public static String SELECT_BEAN_WIZARD_SELECT_BEAN;
-
+
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_TITLE;
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_AVAILABLE;
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_IN_BEAN;
@@ -141,17 +141,19 @@
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_EDIT_QUALIFIER_VALUE;
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_SET_IS_NOT_UNIQUE;
public static String ADD_QUALIFIERS_TO_BEAN_WIZARD_ENTER_QUALIFIER_NAME;
-
+
public static String CDI_GENERATE_BEANS_XML;
public static String CDI_INSTALL_WIZARD_PAGE_FACET;
public static String CDI_INSTALL_WIZARD_PAGE_CONFIGURE;
-
+
public static String OPEN_CDI_NAMED_BEAN_DIALOG_LOADING;
public static String OPEN_CDI_NAMED_BEAN_DIALOG_NAME;
public static String OPEN_CDI_NAMED_BEAN_DIALOG_WAIT;
-
+
public static String OPEN_CDI_NAMED_BEAN_ACTION_NAME;
public static String OPEN_CDI_NAMED_BEAN_ACTION_MESSAGE;
public static String CDI_PROJECT_WIZARD_NEW_PROJECT;
+ public static String CDI_PROJECT_WIZARD_NEW_PROJECT_TITLE;
+ public static String CDI_PROJECT_WIZARD_NEW_PROJECT_DESCRIPTION;
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties 2011-11-03
22:36:58 UTC (rev 36165)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties 2011-11-03
22:43:01 UTC (rev 36166)
@@ -141,4 +141,6 @@
OPEN_CDI_NAMED_BEAN_ACTION_NAME=Open CDI Named Bean
OPEN_CDI_NAMED_BEAN_ACTION_MESSAGE=Enter bean EL name prefix or pattern (? = any
character, * = any string):
-CDI_PROJECT_WIZARD_NEW_PROJECT=New CDI Web Project
\ No newline at end of file
+CDI_PROJECT_WIZARD_NEW_PROJECT=New CDI Web Project
+CDI_PROJECT_WIZARD_NEW_PROJECT_TITLE=CDI Web Project
+CDI_PROJECT_WIZARD_NEW_PROJECT_DESCRIPTION=Create a standalone CDI Web project or add it
to a new or existing Enterprise Application.
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2011-11-03
22:36:58 UTC (rev 36165)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2011-11-03
22:43:01 UTC (rev 36166)
@@ -15,6 +15,8 @@
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard;
import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
import org.eclipse.wst.common.project.facet.core.IFacetedProjectTemplate;
@@ -24,6 +26,7 @@
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.eclipse.wst.common.project.facet.core.runtime.IRuntime;
+import org.jboss.tools.cdi.core.CDIImages;
import org.jboss.tools.cdi.ui.CDIUIMessages;
/**
@@ -86,4 +89,28 @@
dm.setSelectedPreset(FacetedProjectFramework.DEFAULT_CONFIGURATION_PRESET_ID);
}
}
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard#createFirstPage()
+ */
+ @Override
+ protected IWizardPage createFirstPage() {
+ IWizardPage page = super.createFirstPage();
+
+ page.setTitle(CDIUIMessages.CDI_PROJECT_WIZARD_NEW_PROJECT_TITLE);
+ page.setDescription(CDIUIMessages.CDI_PROJECT_WIZARD_NEW_PROJECT_DESCRIPTION);
+ page.setImageDescriptor(getDefaultPageImageDescriptor());
+
+ return page;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see
org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard#getDefaultPageImageDescriptor()
+ */
+ @Override
+ protected ImageDescriptor getDefaultPageImageDescriptor() {
+ return CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH);
+ }
}
\ No newline at end of file