JBoss Tools SVN: r27839 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-12-30 15:54:31 -0500 (Thu, 30 Dec 2010)
New Revision: 27839
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties
Log:
https://issues.jboss.org/browse/JBIDE-7635
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 2010-12-30 20:36:14 UTC (rev 27838)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIUIMessages.properties 2010-12-30 20:54:31 UTC (rev 27839)
@@ -68,8 +68,8 @@
ADD_LOCAL_BEAN_MARKER_RESOLUTION_TITLE=Add @LocalBean annotation to ''{0}'' class
DELETE_ALL_DISPOSER_DUPLICANT_MARKER_RESOLUTION_TITLE=Delete @Disposes annotations from all methods except ''{0}'' method
DELETE_ALL_INJECTED_CONSTRUCTORS_MARKER_RESOLUTION_TITLE=Delete @Inject annotations from all constructors except ''{0}'' constructor
-MAKE_INJECTED_POINT_UNAMBIGUOUS_TITLE=Specify ''{0}'' CDI Bean for the Injection Point
-SELECT_BEAN_TITLE=Select CDI Bean to configure the Injection Point
+MAKE_INJECTED_POINT_UNAMBIGUOUS_TITLE=Specify ''{0}'' bean for injection to the injection point
+SELECT_BEAN_TITLE=Select bean to configure the injection point
SELECT_BEAN_WIZARD_TITLE=Specify CDI Bean for the Injection Point
ADD_QUALIFIERS_TO_BEAN_WIZARD_TITLE=Add Qualifiers to the Bean
14 years
JBoss Tools SVN: r27838 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-12-30 15:36:14 -0500 (Thu, 30 Dec 2010)
New Revision: 27838
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
Log:
https://issues.jboss.org/browse/JBIDE-7635
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-30 17:37:16 UTC (rev 27837)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-30 20:36:14 UTC (rev 27838)
@@ -38,6 +38,7 @@
import org.jboss.tools.cdi.core.IBean;
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.core.IInjectionPoint;
+import org.jboss.tools.cdi.core.IInjectionPointField;
import org.jboss.tools.cdi.internal.core.impl.CDIProject;
import org.jboss.tools.cdi.internal.core.validation.CDIValidationErrorManager;
import org.jboss.tools.cdi.ui.CDIUIPlugin;
@@ -200,7 +201,11 @@
Set<IBean> allBeans = cdiProject.getBeans(file.getFullPath());
- return CDIUtil.findInjectionPoint(allBeans, element, start);
+ IInjectionPoint ip = CDIUtil.findInjectionPoint(allBeans, element, start);
+
+ if(ip instanceof IInjectionPointField)
+ return ip;
+ return null;
}
private List<IBean> findBeans(IInjectionPoint injectionPoint){
14 years
JBoss Tools SVN: r27837 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2010-12-30 12:37:16 -0500 (Thu, 30 Dec 2010)
New Revision: 27837
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-8013
Move the acquirement for KB Builder requirements out of the nature(-s)
New extension point is used to declare KB Builder requirement.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-12-30 16:40:12 UTC (rev 27836)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-12-30 17:37:16 UTC (rev 27837)
@@ -41,7 +41,6 @@
import org.jboss.tools.common.model.project.ext.event.Change;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.xml.XMLUtilities;
-import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
import org.jboss.tools.jst.web.kb.internal.validation.ProjectValidationContext;
import org.jboss.tools.seam.core.BijectedAttributeType;
import org.jboss.tools.seam.core.IBijectedAttribute;
@@ -74,7 +73,7 @@
/**
* @author Viacheslav Kabanovich
*/
-public class SeamProject extends SeamObject implements ISeamProject, IProjectNature, IKBBuilderRequiredNature {
+public class SeamProject extends SeamObject implements ISeamProject, IProjectNature {
IProject project;
@@ -2506,13 +2505,4 @@
}
}
-
- public boolean isKBBuilderRequired() {
- return true;
- }
-
- public String getNatureDescription() {
- return SeamCoreMessages.SEAM_NATURE_DESCRIPTION;
- }
-
}
14 years
JBoss Tools SVN: r27836 - in trunk/cdi/tests/org.jboss.tools.cdi.core.test: projects/CDITest1/lib and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-12-30 11:40:12 -0500 (Thu, 30 Dec 2010)
New Revision: 27836
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/weld-servlet.jar
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/src/cdi/test/MyBeanManager.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java
Log:
JBIDE-8017
https://issues.jboss.org/browse/JBIDE-8017
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath 2010-12-30 16:36:54 UTC (rev 27835)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath 2010-12-30 16:40:12 UTC (rev 27836)
@@ -7,5 +7,6 @@
<classpathentry kind="lib" path="lib/weld-api.jar"/>
<classpathentry kind="lib" path="lib/weld-core.jar"/>
<classpathentry kind="lib" path="lib/weld-se.jar"/>
+ <classpathentry kind="lib" path="lib/weld-servlet.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/weld-servlet.jar
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/weld-servlet.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/src/cdi/test/MyBeanManager.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/src/cdi/test/MyBeanManager.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/src/cdi/test/MyBeanManager.java 2010-12-30 16:40:12 UTC (rev 27836)
@@ -0,0 +1,11 @@
+package cdi.test;
+
+import javax.enterprise.inject.spi.BeanManager;
+import javax.inject.Inject;
+
+public class MyBeanManager {
+
+ @Inject
+ BeanManager b3;
+
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/src/cdi/test/MyBeanManager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java 2010-12-30 16:36:54 UTC (rev 27835)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java 2010-12-30 16:40:12 UTC (rev 27836)
@@ -9,6 +9,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
@@ -31,7 +32,9 @@
public WeldJarTest() {}
public void setUp() throws Exception {
+ System.out.println("setUUUUUUUUUUUp");
project1 = ResourcesUtils.importProject(PLUGIN_ID, "/projects/CDITest1");
+ JobUtils.waitForIdle();
project1.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
JobUtils.waitForIdle();
}
@@ -45,6 +48,14 @@
IInjectionPoint p = ps.iterator().next();
Set<IBean> inbs = cdi.getBeans(false, p);
assertFalse(inbs.isEmpty());
+
+ bs = cdi.getBeans(new Path("/CDITest1/src/cdi/test/MyBeanManager.java"));
+ assertFalse(bs.isEmpty());
+ b = bs.iterator().next();
+ ps = b.getInjectionPoints();
+ p = ps.iterator().next();
+ inbs = cdi.getBeans(false, p);
+ assertFalse(inbs.isEmpty());
}
public void tearDown() throws Exception {
@@ -53,5 +64,6 @@
project1.delete(true, true, null);
JobUtils.waitForIdle();
ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ JobUtils.waitForIdle();
}
}
\ No newline at end of file
14 years
JBoss Tools SVN: r27835 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-12-30 11:36:54 -0500 (Thu, 30 Dec 2010)
New Revision: 27835
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
Log:
JBIDE-7962
https://issues.jboss.org/browse/JBIDE-7962
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-12-30 16:00:27 UTC (rev 27834)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-12-30 16:36:54 UTC (rev 27835)
@@ -131,8 +131,10 @@
XModelObjectLoaderUtil.setTempBody(this, body);
loader.load(this);
- threadSafeCopyFactory.destroy();
- threadSafeCopyFactory = null;
+ if(threadSafeCopyFactory != null) {
+ threadSafeCopyFactory.destroy();
+ threadSafeCopyFactory = null;
+ }
if(!isIncorrect() && !isOverlapped()) {
runCheckerOnLoad();
14 years
JBoss Tools SVN: r27834 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi: internal/core/impl/definition and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-12-30 11:00:27 -0500 (Thu, 30 Dec 2010)
New Revision: 27834
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
Log:
JBIDE-8017
https://issues.jboss.org/browse/JBIDE-8017
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java 2010-12-30 15:54:13 UTC (rev 27833)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIConstants.java 2010-12-30 16:00:27 UTC (rev 27834)
@@ -85,4 +85,6 @@
public String ANNOTATION_LITERAL_TYPE_NAME = "javax.enterprise.util.AnnotationLiteral";
+ public String WELD_BEAN_MANAGER_TYPE_NAME = "org.jboss.weld.manager.BeanManagerImpl";
+
}
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2010-12-30 15:54:13 UTC (rev 27833)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/TypeDefinition.java 2010-12-30 16:00:27 UTC (rev 27834)
@@ -73,6 +73,9 @@
if(!hasConstructor) {
hasBeanConstructor = true;
}
+ if(!hasBeanConstructor && getType().getFullyQualifiedName().equals(CDIConstants.WELD_BEAN_MANAGER_TYPE_NAME)) {
+ hasBeanConstructor = true;
+ }
}
public ParametedType getSuperType() {
14 years
JBoss Tools SVN: r27833 - in trunk: jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-12-30 10:54:13 -0500 (Thu, 30 Dec 2010)
New Revision: 27833
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/commands/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/commands/NewEditorSideBySideCommandTest.java
Removed:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ExternalizeCommandTest.java
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/NewEditorSideBySideCommandTest.java
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
Log:
https://issues.jboss.org/browse/JBIDE-7902 , ExternalizeCommandTest was removed from the org.jboss.tools.jst.jsp.test.ca package.
SWTBotTest was added instead (in org.jboss.tools.vpe.ui.bot.test.wizard.ExternalizeStringsDialogTest). NewEditorSideBySideCommandTest was moved to the org.jboss.tools.jst.jsp.test.commands package.
Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2010-12-30 15:42:46 UTC (rev 27832)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2010-12-30 15:54:13 UTC (rev 27833)
@@ -13,7 +13,6 @@
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.jboss.tools.jst.jsp.test.ca.ExternalizeCommandTest;
import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1585Test;
import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1641Test;
import org.jboss.tools.jst.jsp.test.selbar.SelectionBarTest;
@@ -33,9 +32,7 @@
suite.addTestSuite(Jbide1791Test.class);
*/
suite.addTestSuite(JspPreferencesPageTest.class);
-
suite.addTestSuite(SelectionBarTest.class);
- suite.addTestSuite(ExternalizeCommandTest.class);
return suite;
}
Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ExternalizeCommandTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ExternalizeCommandTest.java 2010-12-30 15:42:46 UTC (rev 27832)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ExternalizeCommandTest.java 2010-12-30 15:54:13 UTC (rev 27833)
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007-2010 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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.jsp.test.ca;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.commands.Command;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.commands.ICommandService;
-import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.jst.jsp.test.TestUtil;
-import org.jboss.tools.test.util.TestProjectProvider;
-import org.jboss.tools.test.util.WorkbenchUtils;
-
-/**
- * Junit for JBIDE-7060
- *
- * @author mareshkau
- *
- */
-public class ExternalizeCommandTest extends TestCase {
- protected IProject project = null;
- private TestProjectProvider provider = null;
- private Command externalizeCommand;
-
- public void setUp() throws Exception {
- provider = new TestProjectProvider("org.jboss.tools.jst.jsp.test", null, "JsfJbide1791Test",false); //$NON-NLS-1$ //$NON-NLS-2$
- project = provider.getProject();
- ICommandService commandService =
- (ICommandService) PlatformUI.getWorkbench()
- .getService(ICommandService.class);
- externalizeCommand = commandService.getCommand(
- "org.jboss.tools.jst.jsp.commands.i18"); //$NON-NLS-1$
- }
-
- protected void tearDown() throws Exception {
- if(provider != null) {
- provider.dispose();
- }
- }
- /**
- * Test behaviour of externalize string command
- */
- public void testExternalizeCommand(){
- IEditorPart editorPart = WorkbenchUtils.openEditor(project.getName()+"/WebContent/pages/extCommandTest.xhtml"); //$NON-NLS-1$
-
- assertTrue("Should be opened JSPMultiPage Editor", editorPart instanceof JSPMultiPageEditor); //$NON-NLS-1$
-
- JSPMultiPageEditor jspMultiPageEditor= (JSPMultiPageEditor) editorPart;
- StructuredTextViewer textViewer = jspMultiPageEditor.getSourceEditor().getTextViewer();
-
- textViewer.setSelectedRange(0, 0);
- checkExternalizeCommand(false);
- textViewer.setSelectedRange(2, 0);
- checkExternalizeCommand(false);
- textViewer.setSelectedRange(15, 0);
- checkExternalizeCommand(true);
- textViewer.setSelectedRange(2, 0);
- checkExternalizeCommand(false);
-
- TestUtil.closeAllEditors();
- checkExternalizeCommand(false);
- }
-
- private void checkExternalizeCommand(boolean requiredState) {
- TestUtil.waitForIdle(TestUtil.MAX_IDLE);
- assertEquals("Externalize Command has incorrect enabled state", //$NON-NLS-1$
- requiredState,externalizeCommand.isEnabled());
- }
-}
Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/NewEditorSideBySideCommandTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/NewEditorSideBySideCommandTest.java 2010-12-30 15:42:46 UTC (rev 27832)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/NewEditorSideBySideCommandTest.java 2010-12-30 15:54:13 UTC (rev 27833)
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007-2010 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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.jsp.test.ca;
-
-import junit.framework.TestCase;
-import org.eclipse.core.commands.Command;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.NotEnabledException;
-import org.eclipse.core.commands.NotHandledException;
-import org.eclipse.core.commands.common.NotDefinedException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.commands.ICommandService;
-import org.jboss.tools.test.util.TestProjectProvider;
-import org.jboss.tools.test.util.WorkbenchUtils;
-
-/**
- *
- * Junit test for https://jira.jboss.org/browse/JBIDE-6685 command
- * @author mareshkau
- *
- */
-public class NewEditorSideBySideCommandTest extends TestCase {
-
- public static final String NEW_EDITOR_SIDE_BY_SIDE_COMMAND_ID="org.jboss.tools.sidebyside.newEditor"; //$NON-NLS-1$
- protected IProject project = null;
- private TestProjectProvider provider = null;
- private Command newEditorSideBySideCmd;
- public void setUp() throws Exception {
- provider = new TestProjectProvider("org.jboss.tools.jst.jsp.test", null, "JsfJbide1791Test",false); //$NON-NLS-1$ //$NON-NLS-2$
- project = provider.getProject();
- ICommandService commandService =
- (ICommandService) PlatformUI.getWorkbench()
- .getService(ICommandService.class);
- newEditorSideBySideCmd = commandService.getCommand(
- NEW_EDITOR_SIDE_BY_SIDE_COMMAND_ID);
- }
-
- protected void tearDown() throws Exception {
- if(provider != null) {
- provider.dispose();
- }
- }
- /**
- * Test Side by Side command
- * @throws NotDefinedException
- * @throws NotHandledException
- * @throws NotEnabledException
- * @throws ExecutionException
- */
- public void testNewEditorSideBySideCommand() throws Exception {
- assertEquals(newEditorSideBySideCmd.getName()+ " should be disabled without opened editor",false,newEditorSideBySideCmd.isEnabled()); //$NON-NLS-1$
- WorkbenchUtils.openEditor(project.getName()+"/WebContent/pages/newSideBySideEditorTest.txt"); //$NON-NLS-1$
- assertEquals(newEditorSideBySideCmd.getName()+ " should be enabled when editor opened",true,newEditorSideBySideCmd.isEnabled()); //$NON-NLS-1$
- }
-}
Copied: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/commands/NewEditorSideBySideCommandTest.java (from rev 27820, trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/NewEditorSideBySideCommandTest.java)
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/commands/NewEditorSideBySideCommandTest.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/commands/NewEditorSideBySideCommandTest.java 2010-12-30 15:54:13 UTC (rev 27833)
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.jsp.test.commands;
+
+import junit.framework.TestCase;
+import org.eclipse.core.commands.Command;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.NotEnabledException;
+import org.eclipse.core.commands.NotHandledException;
+import org.eclipse.core.commands.common.NotDefinedException;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.commands.ICommandService;
+import org.jboss.tools.test.util.TestProjectProvider;
+import org.jboss.tools.test.util.WorkbenchUtils;
+
+/**
+ *
+ * Junit test for https://jira.jboss.org/browse/JBIDE-6685 command
+ * @author mareshkau
+ *
+ */
+public class NewEditorSideBySideCommandTest extends TestCase {
+
+ public static final String NEW_EDITOR_SIDE_BY_SIDE_COMMAND_ID="org.jboss.tools.sidebyside.newEditor"; //$NON-NLS-1$
+ protected IProject project = null;
+ private TestProjectProvider provider = null;
+ private Command newEditorSideBySideCmd;
+ public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.jst.jsp.test", null, "JsfJbide1791Test",false); //$NON-NLS-1$ //$NON-NLS-2$
+ project = provider.getProject();
+ ICommandService commandService =
+ (ICommandService) PlatformUI.getWorkbench()
+ .getService(ICommandService.class);
+ newEditorSideBySideCmd = commandService.getCommand(
+ NEW_EDITOR_SIDE_BY_SIDE_COMMAND_ID);
+ }
+
+ protected void tearDown() throws Exception {
+ if(provider != null) {
+ provider.dispose();
+ }
+ }
+ /**
+ * Test Side by Side command
+ * @throws NotDefinedException
+ * @throws NotHandledException
+ * @throws NotEnabledException
+ * @throws ExecutionException
+ */
+ public void testNewEditorSideBySideCommand() throws Exception {
+ assertEquals(newEditorSideBySideCmd.getName()+ " should be disabled without opened editor",false,newEditorSideBySideCmd.isEnabled()); //$NON-NLS-1$
+ WorkbenchUtils.openEditor(project.getName()+"/WebContent/pages/newSideBySideEditorTest.txt"); //$NON-NLS-1$
+ assertEquals(newEditorSideBySideCmd.getName()+ " should be enabled when editor opened",true,newEditorSideBySideCmd.isEnabled()); //$NON-NLS-1$
+ }
+}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-12-30 15:42:46 UTC (rev 27832)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-12-30 15:54:13 UTC (rev 27833)
@@ -12,8 +12,10 @@
import java.awt.event.KeyEvent;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.utils.Position;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotRadio;
@@ -29,10 +31,12 @@
public class ExternalizeStringsDialogTest extends VPEAutoTestCase {
+ private final String ENABLED_TEST_TEXT = "<html>Externalize Text</html>"; //$NON-NLS-1$
private final String TOOL_TIP = "Externalize Strings... (Ctrl+7)"; //$NON-NLS-1$
private final String FOLDER_TEXT_LABEL = "Enter or select the parent folder:"; //$NON-NLS-1$
private final String INCORRECT_TABLE_VALUE = "Table value is incorrect"; //$NON-NLS-1$
- private final String TOOLBAR_ICON_ENABLED = "Toolbar buttion should be enabled"; //$NON-NLS-1$
+ private final String TOOLBAR_ICON_ENABLED = "Toolbar button should be enabled"; //$NON-NLS-1$
+ private final String TOOLBAR_ICON_DISABLED = "Toolbar button should be disabled"; //$NON-NLS-1$
private final String CANNOT_FIND_PROPERTY_VALUE = "Cannot find 'Property Value' text field"; //$NON-NLS-1$
private final String CANNOT_FIND_RADIO_BUTTON = "Cannot find radio button with name: "; //$NON-NLS-1$
private final String COMPLEX_TEXT = "!! HELLO ~ Input User, Name.Page ?" //$NON-NLS-1$
@@ -889,6 +893,34 @@
editor.toTextEditor().getSelection());
}
+ public void testToolBarIconEnableState() throws Throwable {
+ isUnusedDialogOpened = false;
+ SWTBotEditor editor = SWTTestExt.packageExplorer.openFile(FACELETS_TEST_PROJECT_NAME,
+ "WebContent", "pages", FACELETS_TEST_PAGE); //$NON-NLS-1$ //$NON-NLS-2$
+ editor.setFocus();
+ editor.toTextEditor().setText(ENABLED_TEST_TEXT);
+ navigateToAndTestIcon(editor.toTextEditor(), new Position(0, 1), false);
+ navigateToAndTestIcon(editor.toTextEditor(), new Position(0, 3), false);
+ navigateToAndTestIcon(editor.toTextEditor(), new Position(0, 16), true);
+ navigateToAndTestIcon(editor.toTextEditor(), new Position(0, 3), false);
+ }
+
+ private void navigateToAndTestIcon(SWTBotEclipseEditor editor, Position pos, boolean enabled) {
+ /*
+ * Select some text
+ */
+ editor.navigateTo(pos);
+ /*
+ * Send key press event to fire VPE listeners
+ */
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_LEFT);
+ /*
+ * Get toolbar button
+ */
+ assertEquals(enabled ? TOOLBAR_ICON_ENABLED : TOOLBAR_ICON_DISABLED,
+ enabled, bot.toolbarButtonWithTooltip(TOOL_TIP).isEnabled());
+ }
+
/**
* Creates the new bundle till last page.
*
@@ -953,4 +985,6 @@
return editor;
}
+
+
}
14 years
JBoss Tools SVN: r27832 - in trunk/cdi/plugins/org.jboss.tools.cdi.core: src/org/jboss/tools/cdi/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2010-12-30 10:42:46 -0500 (Thu, 30 Dec 2010)
New Revision: 27832
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties
trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
Log:
JBIDE-8013
Move the acquirement for KB Builder requirements out of the nature(-s)
New extension point is used to declare KB Builder requirement.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties 2010-12-30 15:39:13 UTC (rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.properties 2010-12-30 15:42:46 UTC (rev 27832)
@@ -1 +1,3 @@
-KBProblemName=CDI Problem
\ No newline at end of file
+KBProblemName=CDI Problem
+
+KB_REQUIRED_FOR_CDI=CDI
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-12-30 15:39:13 UTC (rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-12-30 15:42:46 UTC (rev 27832)
@@ -145,6 +145,15 @@
</delegate>
</extension>
+ <extension
+ id="org.jboss.tools.cdi.core.KbRequire"
+ point="org.jboss.tools.jst.web.kb.KbRequire">
+ <require
+ description="%KB_REQUIRED_FOR_CDI"
+ forNature="org.jboss.tools.cdi.core.cdinature">
+ </require>
+ </extension>
+
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=315390 -->
<extension
id="excludeEJBValidation"
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-30 15:39:13 UTC (rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-30 15:42:46 UTC (rev 27832)
@@ -34,5 +34,4 @@
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE;
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION;
public static String CDI_UTIL_BUILD_CDI_MODEL;
- public static String CDI_NATURE_DESCRIPTION;
}
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-30 15:39:13 UTC (rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-30 15:42:46 UTC (rev 27832)
@@ -38,11 +38,10 @@
import org.jboss.tools.common.util.FileUtil;
import org.jboss.tools.common.xml.XMLUtilities;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
-import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
import org.jboss.tools.jst.web.kb.internal.validation.ProjectValidationContext;
import org.w3c.dom.Element;
-public class CDICoreNature implements IProjectNature, IKBBuilderRequiredNature {
+public class CDICoreNature implements IProjectNature {
public static String NATURE_ID = "org.jboss.tools.cdi.core.cdinature";
IProject project = null;
@@ -424,14 +423,6 @@
return validationContext;
}
- public boolean isKBBuilderRequired() {
- return true;
- }
-
- public String getNatureDescription() {
- return CDICoreMessages.CDI_NATURE_DESCRIPTION;
- }
-
/**
* Test method.
*/
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-30 15:39:13 UTC (rev 27831)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-30 15:42:46 UTC (rev 27832)
@@ -9,4 +9,3 @@
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE=Named Bean does not have a file
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION=Named Bean does not have a name location
CDI_UTIL_BUILD_CDI_MODEL=Build CDI Model
-CDI_NATURE_DESCRIPTION=CDI
\ No newline at end of file
14 years
JBoss Tools SVN: r27831 - in trunk/seam/plugins/org.jboss.tools.seam.core: src/org/jboss/tools/seam/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2010-12-30 10:39:13 -0500 (Thu, 30 Dec 2010)
New Revision: 27831
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
Log:
JBIDE-8013
Move the acquirement for KB Builder requirements out of the nature(-s)
New extension point is used to declare KB Builder requirement.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties 2010-12-30 15:36:47 UTC (rev 27830)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.properties 2010-12-30 15:39:13 UTC (rev 27831)
@@ -4,4 +4,6 @@
Bundle-Vendor.0 = JBoss by Red Hat
Bundle-Name.0 = Seam Tools
-KBProblemName=Seam Problem
\ No newline at end of file
+KBProblemName=Seam Problem
+
+KB_REQUIRED_FOR_SEAM=Seam
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2010-12-30 15:36:47 UTC (rev 27830)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2010-12-30 15:39:13 UTC (rev 27831)
@@ -531,7 +531,16 @@
class="org.jboss.tools.seam.internal.core.validation.SeamELValidationDelegate">
</delegate>
</extension>
-
+
+ <extension
+ id="org.jboss.tools.seam.core.KbRequire"
+ point="org.jboss.tools.jst.web.kb.KbRequire">
+ <require
+ description="%KB_REQUIRED_FOR_SEAM"
+ forNature="org.jboss.tools.seam.core.seamnature">
+ </require>
+ </extension>
+
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=315390 -->
<extension
id="excludeEJBValidation"
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2010-12-30 15:36:47 UTC (rev 27830)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2010-12-30 15:39:13 UTC (rev 27831)
@@ -63,5 +63,4 @@
public static String SEAM_RENAME_PROCESSOR_COMPONENT_HAS_BROKEN_DECLARATION;
public static String SEAM_RENAME_METHOD_PARTICIPANT_SETTER_WARNING;
public static String SEAM_RENAME_METHOD_PARTICIPANT_GETTER_WARNING;
- public static String SEAM_NATURE_DESCRIPTION;
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2010-12-30 15:36:47 UTC (rev 27830)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2010-12-30 15:39:13 UTC (rev 27831)
@@ -42,4 +42,3 @@
SEAM_RENAME_PROCESSOR_COMPONENT_HAS_BROKEN_DECLARATION=Declaration of component ''{0}'' is broken.
SEAM_RENAME_METHOD_PARTICIPANT_SETTER_WARNING=Be sure, may be you also should rename getter method to avoid compilation problems.
SEAM_RENAME_METHOD_PARTICIPANT_GETTER_WARNING=Be sure, may be you also should rename setter method to avoid compilation problems.
-SEAM_NATURE_DESCRIPTION=Seam
\ No newline at end of file
14 years
JBoss Tools SVN: r27830 - in trunk/jsf/plugins/org.jboss.tools.jsf: src/org/jboss/tools/jsf/messages and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2010-12-30 10:36:47 -0500 (Thu, 30 Dec 2010)
New Revision: 27830
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties
trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java
Log:
JBIDE-8013
Move the acquirement for KB Builder requirements out of the nature(-s)
New extension point is used to declare KB Builder requirement.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.properties 2010-12-30 15:36:47 UTC (rev 27830)
@@ -7,4 +7,6 @@
JSF2ProblemName = JSF 2 Problem
-KBProblemName=JSF EL Problem
\ No newline at end of file
+KBProblemName=JSF EL Problem
+
+KB_REQUIRED_FOR_JSF=JSF
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2010-12-30 15:36:47 UTC (rev 27830)
@@ -725,5 +725,14 @@
</instanceof>
</enablement>
</changePreviewViewer>
- </extension>
+ </extension>
+ <extension
+ id="org.jboss.tools.jsf.KbRequire"
+ point="org.jboss.tools.jst.web.kb.KbRequire">
+ <require
+ description="%KB_REQUIRED_FOR_JSF"
+ forNature="org.jboss.tools.jsf.jsfnature">
+ </require>
+ </extension>
+
</plugin>
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2010-12-30 15:36:47 UTC (rev 27830)
@@ -148,7 +148,6 @@
public static String Refactoring_JSF_2_Changes_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Attr_Ref_Decl;
- public static String JSFNatureDescription;
static {
// load message values from bundle file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2010-12-30 15:36:47 UTC (rev 27830)
@@ -125,4 +125,3 @@
Refactoring_JSF_2_Changes_Rename_Composite_Component=Changes to rename composite component
Refactoring_JSF_2_Rename_Composite_Component=Rename composite component
Refactoring_JSF_2_Rename_Attr_Ref_Decl=Rename composite attribute reference in declaration
-JSFNatureDescription=JSF
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java 2010-12-30 15:36:42 UTC (rev 27829)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/JSFNature.java 2010-12-30 15:36:47 UTC (rev 27830)
@@ -12,14 +12,11 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
-
import org.jboss.tools.common.model.project.IAutoLoad;
import org.jboss.tools.common.model.project.ModelNature;
import org.jboss.tools.jsf.JSFModelPlugin;
-import org.jboss.tools.jsf.messages.JSFUIMessages;
-import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
-public class JSFNature extends ModelNature implements IKBBuilderRequiredNature {
+public class JSFNature extends ModelNature {
public static final String NATURE_ID = JSFModelPlugin.PLUGIN_ID + ".jsfnature";
public static final String NATURE_NICK = "org.jboss.tools.struts.strutsnature";
static String BUILDER_ID = "org.jboss.tools.common.verification.verifybuilder";
@@ -52,12 +49,4 @@
removeFromBuildSpec(BUILDER_ID);
super.deconfigure();
}
-
- public boolean isKBBuilderRequired() {
- return true;
- }
-
- public String getNatureDescription() {
- return JSFUIMessages.JSFNatureDescription;
- }
}
14 years