JBoss Tools SVN: r18078 - trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-10-14 07:17:46 -0400 (Wed, 14 Oct 2009)
New Revision: 18078
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4872
updated ui
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java 2009-10-14 10:33:37 UTC (rev 18077)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java 2009-10-14 11:17:46 UTC (rev 18078)
@@ -43,9 +43,6 @@
ArrayContentProvider.getInstance());
setUpDownVisible(false);
}
-
- protected void setUpDownVisible(boolean tmp) {
- }
@Override
protected String[] getAddButtonLabels() {
16 years, 6 months
JBoss Tools SVN: r18077 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console: META-INF and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-10-14 06:33:37 -0400 (Wed, 14 Oct 2009)
New Revision: 18077
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationEntityResolverChange.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeMoveParticipant.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeRenameParticipant.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationNamingStrategyChange.java
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4780
Added rename and move refactoring changes for NamingStrategy and EntityResolver of console configuration.
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2009-10-14 05:55:10 UTC (rev 18076)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2009-10-14 10:33:37 UTC (rev 18077)
@@ -75,6 +75,7 @@
org.eclipse.datatools.connectivity.ui,
org.eclipse.datatools.connectivity,
org.eclipse.jpt.core,
- org.eclipse.jpt.db
+ org.eclipse.jpt.db,
+ org.eclipse.jdt
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2009-10-14 05:55:10 UTC (rev 18076)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2009-10-14 10:33:37 UTC (rev 18077)
@@ -641,27 +641,22 @@
</extension>
<extension
point="org.eclipse.ltk.core.refactoring.renameParticipants">
- <!--renameParticipant
- class="org.hibernate.eclipse.launch.core.refactoring.RenameProjectParticipant"
- id="org.hibernate.eclipse.launch.core.refactoring.RenameProjectParticipant"
- name="Launch Configurations projectrename updates">
+ <renameParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationITypeRenameParticipant"
+ name="Console Configuration IType Participant"
+ id="org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationITypeRenameParticipant">
<enablement>
- <with variable="element">
- <instanceof value="org.eclipse.jdt.core.IJavaProject"/>
- </with>
+ <with variable="affectedNatures">
+ <iterate operator="or">
+ <equals value="org.eclipse.jdt.core.javanature"/>
+ </iterate>
+ </with>
+ <with variable="element">
+ <instanceof value="org.eclipse.jdt.core.IType"/>
+ </with>
</enablement>
</renameParticipant>
<renameParticipant
- class="org.hibernate.eclipse.launch.core.refactoring.RenamePackageParticipant"
- id="org.hibernate.eclipse.launch.core.refactoring.RenamePackageParticipant"
- name="Launch Configurations package rename updates">
- <enablement>
- <with variable="element">
- <instanceof value="org.eclipse.jdt.core.IPackageFragment"/>
- </with>
- </enablement>
- </renameParticipant-->
- <renameParticipant
class="org.hibernate.eclipse.launch.core.refactoring.RenameResourceParticipant"
id="org.hibernate.eclipse.launch.core.refactoring.RenameResourceParticipant"
name="Launch Configurations resource rename updates">
@@ -711,16 +706,21 @@
</with>
</enablement>
</moveParticipant>
- <!--moveParticipant
- class="org.hibernate.eclipse.launch.core.refactoring.MovePackageParticipant"
- id="org.hibernate.eclipse.launch.core.refactoring.MovePackageParticipant"
- name="Launch Configurations resource move updates">
- <enablement>
- <with variable="element">
- <instanceof value="org.eclipse.jdt.core.IPackageFragment"/>
- </with>
+ <moveParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationITypeMoveParticipant"
+ name="Console Configuration IType Participant"
+ id="org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationITypeMoveParticipant">
+ <enablement>
+ <with variable="affectedNatures">
+ <iterate operator="or">
+ <equals value="org.eclipse.jdt.core.javanature"/>
+ </iterate>
+ </with>
+ <with variable="element">
+ <instanceof value="org.eclipse.jdt.core.IType"/>
+ </with>
</enablement>
- </moveParticipant-->
+ </moveParticipant>
</extension>
<extension
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-10-14 05:55:10 UTC (rev 18076)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -488,6 +488,9 @@
public static String LaunchConfigurationResourceNameChange_update_resource_path_in_launch_cfg;
public static String MoveResourceParticipant_launch_configurations_updates;
public static String RenameResourceParticipant_launch_configurations_updates;
+
+ public static String ConsoleConfigurationITypeRenameParticipant_update;
+ public static String ConsoleConfigurationITypeRenameParticipant_update_names;
//
public static String HibernateNature_error_while_performing_background_reading_of_database_schema;
public static String HibernateNature_exception_when_trying_to_locate_hibernate_nature;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-10-14 05:55:10 UTC (rev 18076)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-10-14 10:33:37 UTC (rev 18077)
@@ -492,6 +492,9 @@
MoveResourceParticipant_launch_configurations_updates=Launch Configurations updates
RenameResourceParticipant_launch_configurations_updates=Launch Configurations updates
+ConsoleConfigurationITypeRenameParticipant_update=Console configuration participant
+ConsoleConfigurationITypeRenameParticipant_update_names=Console configuration update time names
+
HibernateNature_error_while_performing_background_reading_of_database_schema=Error while performing background reading of database schema
HibernateNature_exception_when_trying_to_locate_hibernate_nature=Exception when trying to locate Hibernate Nature
HibernateNature_reading_database_metadata=Reading database metadata
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationEntityResolverChange.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationEntityResolverChange.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationEntityResolverChange.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -0,0 +1,70 @@
+/*******************************************************************************
+ * Copyright (c) 2009 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.hibernate.eclipse.launch.core.refactoring;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.hibernate.eclipse.console.HibernateConsoleMessages;
+import org.hibernate.eclipse.launch.IConsoleConfigurationLaunchConstants;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class ConsoleConfigurationEntityResolverChange extends Change {
+
+ private ILaunchConfiguration fLaunchConfiguration;
+ private String fNewEntityResolverName;
+ private String fOldEntityResolverTypeName;
+
+ public ConsoleConfigurationEntityResolverChange(ILaunchConfiguration launchConfiguration, String newEntityResolverName) throws CoreException {
+ fLaunchConfiguration = launchConfiguration;
+ fNewEntityResolverName = newEntityResolverName;
+ fOldEntityResolverTypeName = fLaunchConfiguration.getAttribute(IConsoleConfigurationLaunchConstants.NAMING_STRATEGY, (String) null);
+ }
+
+ @Override
+ public Object getModifiedElement() {
+ return fLaunchConfiguration;
+ }
+
+ @Override
+ public String getName() {
+ return HibernateConsoleMessages.ConsoleConfigurationITypeRenameParticipant_update_names;
+ }
+
+ @Override
+ public void initializeValidationData(IProgressMonitor pm) { }
+
+ @Override
+ public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException,
+ OperationCanceledException {
+ return new RefactoringStatus();
+ }
+
+ @Override
+ public Change perform(IProgressMonitor pm) throws CoreException {
+ final ILaunchConfigurationWorkingCopy wc = fLaunchConfiguration.getWorkingCopy();
+ String oldEntityResolverTypeName = fOldEntityResolverTypeName;
+ wc.setAttribute(IConsoleConfigurationLaunchConstants.ENTITY_RESOLVER, fNewEntityResolverName);
+
+ fLaunchConfiguration = wc.doSave();
+
+ // create the undo change
+ return new ConsoleConfigurationEntityResolverChange(fLaunchConfiguration, oldEntityResolverTypeName);
+ }
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationEntityResolverChange.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeMoveParticipant.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeMoveParticipant.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeMoveParticipant.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2009 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.hibernate.eclipse.launch.core.refactoring;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.MoveParticipant;
+import org.hibernate.eclipse.console.HibernateConsoleMessages;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class ConsoleConfigurationITypeMoveParticipant extends MoveParticipant {
+
+ private IType fType;
+ private IJavaElement fDestination;
+
+ protected boolean initialize(Object element) {
+ fType= (IType) element;
+ Object destination= getArguments().getDestination();
+ if (destination instanceof IPackageFragment || destination instanceof IType) {
+ fDestination= (IJavaElement) destination;
+ return true;
+ }
+ return false;
+ }
+
+ public String getName() {
+ return HibernateConsoleMessages.ConsoleConfigurationITypeRenameParticipant_update;
+ }
+
+ public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
+ return new RefactoringStatus();
+ }
+
+ public Change createChange(IProgressMonitor pm) throws CoreException {
+ return HibernateRefactoringUtil.createChangesForTypeMove(fType, fDestination);
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeMoveParticipant.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeRenameParticipant.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeRenameParticipant.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeRenameParticipant.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -0,0 +1,34 @@
+package org.hibernate.eclipse.launch.core.refactoring;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;
+import org.hibernate.eclipse.console.HibernateConsoleMessages;
+
+public class ConsoleConfigurationITypeRenameParticipant extends
+ RenameParticipant {
+
+ private IType fType;
+
+ protected boolean initialize(Object element) {
+ fType= (IType) element;
+ return true;
+ }
+
+ public String getName() {
+ return HibernateConsoleMessages.ConsoleConfigurationITypeRenameParticipant_update;
+ }
+
+ public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
+ return new RefactoringStatus();
+ }
+
+ public Change createChange(IProgressMonitor pm) throws CoreException {
+ return HibernateRefactoringUtil.createChangesForTypeRename(fType, getArguments().getNewName());
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationITypeRenameParticipant.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationNamingStrategyChange.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationNamingStrategyChange.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationNamingStrategyChange.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -0,0 +1,71 @@
+/*******************************************************************************
+ * Copyright (c) 2009 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.hibernate.eclipse.launch.core.refactoring;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.hibernate.eclipse.console.HibernateConsoleMessages;
+import org.hibernate.eclipse.launch.IConsoleConfigurationLaunchConstants;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class ConsoleConfigurationNamingStrategyChange extends Change {
+
+ private ILaunchConfiguration fLaunchConfiguration;
+ private String fNewNamingStrategyName;
+ private String fOldNamingStrategyTypeName;
+
+ public ConsoleConfigurationNamingStrategyChange(ILaunchConfiguration launchConfiguration, String newNamingStrategyName) throws CoreException {
+ fLaunchConfiguration = launchConfiguration;
+ fNewNamingStrategyName = newNamingStrategyName;
+ fOldNamingStrategyTypeName = fLaunchConfiguration.getAttribute(IConsoleConfigurationLaunchConstants.NAMING_STRATEGY, (String) null);
+ }
+
+ @Override
+ public Object getModifiedElement() {
+ return fLaunchConfiguration;
+ }
+
+ @Override
+ public String getName() {
+ return HibernateConsoleMessages.ConsoleConfigurationITypeRenameParticipant_update_names;
+ }
+
+ @Override
+ public void initializeValidationData(IProgressMonitor pm) { }
+
+ @Override
+ public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException,
+ OperationCanceledException {
+ return new RefactoringStatus();
+ }
+
+ @Override
+ public Change perform(IProgressMonitor pm) throws CoreException {
+ final ILaunchConfigurationWorkingCopy wc = fLaunchConfiguration.getWorkingCopy();
+ String oldNamingStrategyTypeName = fOldNamingStrategyTypeName;
+ wc.setAttribute(IConsoleConfigurationLaunchConstants.NAMING_STRATEGY, fNewNamingStrategyName);
+
+ fLaunchConfiguration = wc.doSave();
+
+ // create the undo change
+ return new ConsoleConfigurationNamingStrategyChange(fLaunchConfiguration, oldNamingStrategyTypeName);
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConsoleConfigurationNamingStrategyChange.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2009-10-14 05:55:10 UTC (rev 18076)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2009-10-14 10:33:37 UTC (rev 18077)
@@ -37,6 +37,9 @@
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.JavaRuntime;
@@ -380,4 +383,64 @@
return new CompositeChange(name, changes.toArray(new Change[changes.size()]));
}
}
+
+ public static Change createChangesForTypeRename(IType type, String newName) {
+ IType dtype = type.getDeclaringType();
+ String newfqname = newName;
+ if (dtype == null) {
+ IPackageFragment packageFragment = type.getPackageFragment();
+ if (!packageFragment.isDefaultPackage()) {
+ newfqname = packageFragment.getElementName() + '.' + newName;
+ }
+ }
+ else {
+ newfqname = dtype.getFullyQualifiedName() + '$' + newName;
+ }
+ return createChangesForTypeChange(type, newfqname);
+ }
+
+ public static Change createChangesForTypeMove(IType type, IJavaElement destination) {
+ String newfqname = type.getElementName();
+ if (destination instanceof IType) {
+ newfqname = ((IType)destination).getFullyQualifiedName() + '$' + type.getElementName();
+ }
+ else if (destination instanceof IPackageFragment) {
+ if (!((IPackageFragment) destination).isDefaultPackage()) {
+ newfqname = destination.getElementName() + '.' + type.getElementName();
+ }
+ }
+ return createChangesForTypeChange(type, newfqname);
+ }
+
+ protected static Change createChangesForTypeChange(IType type, String newfqname) {
+ List<Change> changes = new ArrayList<Change>();
+ String pname = type.getJavaProject().getElementName();
+ String typename = type.getFullyQualifiedName();
+ ILaunchConfiguration[] configs = null;
+ try {
+ configs = LaunchHelper.findHibernateLaunchConfigs();
+ String nsName, ername;
+ for(int i = 0; i < configs.length && configs[i].exists(); i++) {
+ String attrib = configs[i].getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String)null);
+ if(attrib != null) {
+ if(attrib.equals(pname)) {
+ nsName = configs[i].getAttribute(IConsoleConfigurationLaunchConstants.NAMING_STRATEGY, (String)null);
+ ername = configs[i].getAttribute(IConsoleConfigurationLaunchConstants.ENTITY_RESOLVER, (String)null);
+ if (typename.equals(nsName) ) {
+ changes.add(new ConsoleConfigurationNamingStrategyChange(configs[i], newfqname));
+ }
+ if (typename.equals(ername)) {
+ changes.add(new ConsoleConfigurationEntityResolverChange(configs[i], newfqname));
+ }
+ }
+ }
+ }
+ } catch(CoreException e) {
+ configs = new ILaunchConfiguration[0];
+ HibernateConsolePlugin.getDefault().logErrorMessage( ERROR_MESS, e );
+ }
+ return createChangesFromList(changes, HibernateConsoleMessages.ConsoleConfigurationITypeRenameParticipant_update);
+ }
+
+
}
16 years, 6 months
JBoss Tools SVN: r18076 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-10-14 01:55:10 -0400 (Wed, 14 Oct 2009)
New Revision: 18076
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/UpDownListComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4872
updated ui
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/UpDownListComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/UpDownListComposite.java 2009-10-13 22:27:00 UTC (rev 18075)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/UpDownListComposite.java 2009-10-14 05:55:10 UTC (rev 18076)
@@ -359,4 +359,9 @@
public void clear() {
tableView.getTable().removeAll();
}
+
+ public void setUpDownVisible(boolean visible){
+ upButton.setVisible(visible);
+ downButton.setVisible(visible);
+ }
}
16 years, 6 months
JBoss Tools SVN: r18075 - in trunk: seam/tests/org.jboss.tools.seam.ui.bot.test and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-10-13 18:27:00 -0400 (Tue, 13 Oct 2009)
New Revision: 18075
Added:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java
trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllTests.java
trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamTestLauncher.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/New_configuration.launch
Log:
change JUnit Suites name for SWTBot Tests to fix conflict with regular one
Copied: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java (from rev 18044, trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllTests.java)
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -0,0 +1,28 @@
+package org.jboss.tools.jsf.ui.bot.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3148and4441Test;
+import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3577Test;
+import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3579Test;
+import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3920Test;
+import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE4391Test;
+
+/**
+ *
+ * This is a sample swtbot testcase for an eclipse application.
+ *
+ */
+public class JSFAllBotTests{
+ public static Test suite(){
+ TestSuite suite = new TestSuite("CSS dialog JBIDE tests");
+ suite.addTestSuite(JBIDE3148and4441Test.class);
+ suite.addTestSuite(JBIDE4391Test.class);
+ suite.addTestSuite(JBIDE3577Test.class);
+ suite.addTestSuite(JBIDE3579Test.class);
+ suite.addTestSuite(JBIDE3920Test.class);
+ return suite;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllTests.java 2009-10-13 20:04:41 UTC (rev 18074)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllTests.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -1,28 +0,0 @@
-package org.jboss.tools.jsf.ui.bot.test;
-
-import junit.extensions.TestSetup;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3148and4441Test;
-import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3577Test;
-import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3579Test;
-import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3920Test;
-import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE4391Test;
-
-/**
- *
- * This is a sample swtbot testcase for an eclipse application.
- *
- */
-public class JSFAllTests{
- public static Test suite(){
- TestSuite suite = new TestSuite("CSS dialog JBIDE tests");
- suite.addTestSuite(JBIDE3148and4441Test.class);
- suite.addTestSuite(JBIDE4391Test.class);
- suite.addTestSuite(JBIDE3577Test.class);
- suite.addTestSuite(JBIDE3579Test.class);
- suite.addTestSuite(JBIDE3920Test.class);
- return suite;
- }
-}
\ No newline at end of file
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/New_configuration.launch
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/New_configuration.launch 2009-10-13 20:04:41 UTC (rev 18074)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/New_configuration.launch 2009-10-13 22:27:00 UTC (rev 18075)
@@ -23,7 +23,7 @@
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.seam.ui.bot.test.SeamTestLauncher"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.seam.ui.bot.test.SeamAllBotTests"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.seam.ui.bot.test"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
Copied: trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamAllBotTests.java (from rev 18044, trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamTestLauncher.java)
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamAllBotTests.java (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamAllBotTests.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -0,0 +1,35 @@
+package org.jboss.tools.seam.ui.bot.test;
+
+import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
+import org.jboss.tools.seam.ui.bot.test.create.CreateSeamRuntimes;
+import org.jboss.tools.seam.ui.bot.test.create.CreateSeamProjects;
+import org.jboss.tools.seam.ui.bot.test.create.CreateForms;
+import org.jboss.tools.seam.ui.bot.test.create.CreateActions;
+import org.jboss.tools.seam.ui.bot.test.create.CreateConversations;
+import org.jboss.tools.seam.ui.bot.test.create.CreateEntities;
+import org.jboss.tools.seam.ui.bot.test.create.DeleteSeamProjects;
+import org.jboss.tools.ui.bot.test.JBTSWTBotTestCase;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+
+
+/**
+ *
+ * This is a swtbot testcase for an eclipse application.
+ *
+ */
+public class SeamAllBotTests {
+ public static Test suite(){
+ TestSuite suite = new TestSuite("Seam tests");
+ suite.addTestSuite(CreateSeamRuntimes.class);
+ suite.addTestSuite(CreateSeamProjects.class);
+ suite.addTestSuite(CreateForms.class);
+ suite.addTestSuite(CreateActions.class);
+ suite.addTestSuite(CreateConversations.class);
+ suite.addTestSuite(CreateEntities.class);
+ return suite;
+ }
+}
\ No newline at end of file
Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamAllBotTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamTestLauncher.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamTestLauncher.java 2009-10-13 20:04:41 UTC (rev 18074)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.bot.test/src/org/jboss/tools/seam/ui/bot/test/SeamTestLauncher.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -1,35 +0,0 @@
-package org.jboss.tools.seam.ui.bot.test;
-
-import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
-import org.jboss.tools.seam.ui.bot.test.create.CreateSeamRuntimes;
-import org.jboss.tools.seam.ui.bot.test.create.CreateSeamProjects;
-import org.jboss.tools.seam.ui.bot.test.create.CreateForms;
-import org.jboss.tools.seam.ui.bot.test.create.CreateActions;
-import org.jboss.tools.seam.ui.bot.test.create.CreateConversations;
-import org.jboss.tools.seam.ui.bot.test.create.CreateEntities;
-import org.jboss.tools.seam.ui.bot.test.create.DeleteSeamProjects;
-import org.jboss.tools.ui.bot.test.JBTSWTBotTestCase;
-
-import junit.extensions.TestSetup;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-
-/**
- *
- * This is a swtbot testcase for an eclipse application.
- *
- */
-public class SeamTestLauncher {
- public static Test suite(){
- TestSuite suite = new TestSuite("Seam tests");
- suite.addTestSuite(CreateSeamRuntimes.class);
- suite.addTestSuite(CreateSeamProjects.class);
- suite.addTestSuite(CreateForms.class);
- suite.addTestSuite(CreateActions.class);
- suite.addTestSuite(CreateConversations.class);
- suite.addTestSuite(CreateEntities.class);
- return suite;
- }
-}
\ No newline at end of file
Copied: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java (from rev 18044, trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java)
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -0,0 +1,39 @@
+package org.jboss.tools.vpe.ui.bot.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
+import org.jboss.tools.vpe.ui.bot.test.editor.BlockCommentTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.ToggleCommentTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.VerificationOfNameSpacesTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.pagedesign.AddSubstitutedELExpressionFolderScopeTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.AlwaysHideSelectionBarWithoutPromptTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.BorderForUnknownTagsTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ChangeEditorTabForTheFirstOpenPageTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowNonVisualTagsTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowResourceBundlesUsageasELexpressionsTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowSelectionTagBarTest;
+import org.jboss.tools.vpe.ui.bot.test.jbide.JBIDE4556Test;
+import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
+import org.jboss.tools.vpe.ui.bot.test.palette.ImportTagsFromTLDFileTest;
+
+public class VPEAllBotTests extends SWTBotTestCase{
+ public static Test suite(){
+ TestSuite suite = new TestSuite("VPE All Tests");
+ suite.addTestSuite(CancelTagLibDefenitionTest.class);
+ suite.addTestSuite(ImportTagsFromTLDFileTest.class);
+ suite.addTestSuite(ToggleCommentTest.class);
+ suite.addTestSuite(BlockCommentTest.class);
+ suite.addTestSuite(ChangeEditorTabForTheFirstOpenPageTest.class);
+ suite.addTestSuite(JBIDE4556Test.class);
+ suite.addTestSuite(VerificationOfNameSpacesTest.class);
+ suite.addTestSuite(BorderForUnknownTagsTest.class);
+ suite.addTestSuite(ShowResourceBundlesUsageasELexpressionsTest.class);
+ suite.addTestSuite(ShowSelectionTagBarTest.class);
+ suite.addTestSuite(AlwaysHideSelectionBarWithoutPromptTest.class);
+ suite.addTestSuite(ShowNonVisualTagsTest.class);
+ suite.addTestSuite(AddSubstitutedELExpressionFolderScopeTest.class);
+ return new TestSetup(suite);
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java 2009-10-13 20:04:41 UTC (rev 18074)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java 2009-10-13 22:27:00 UTC (rev 18075)
@@ -1,39 +0,0 @@
-package org.jboss.tools.vpe.ui.bot.test;
-
-import junit.extensions.TestSetup;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
-import org.jboss.tools.vpe.ui.bot.test.editor.BlockCommentTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.ToggleCommentTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.VerificationOfNameSpacesTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.pagedesign.AddSubstitutedELExpressionFolderScopeTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.AlwaysHideSelectionBarWithoutPromptTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.BorderForUnknownTagsTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ChangeEditorTabForTheFirstOpenPageTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowNonVisualTagsTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowResourceBundlesUsageasELexpressionsTest;
-import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowSelectionTagBarTest;
-import org.jboss.tools.vpe.ui.bot.test.jbide.JBIDE4556Test;
-import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
-import org.jboss.tools.vpe.ui.bot.test.palette.ImportTagsFromTLDFileTest;
-
-public class VPEAllTests extends SWTBotTestCase{
- public static Test suite(){
- TestSuite suite = new TestSuite("VPE All Tests");
- suite.addTestSuite(CancelTagLibDefenitionTest.class);
- suite.addTestSuite(ImportTagsFromTLDFileTest.class);
- suite.addTestSuite(ToggleCommentTest.class);
- suite.addTestSuite(BlockCommentTest.class);
- suite.addTestSuite(ChangeEditorTabForTheFirstOpenPageTest.class);
- suite.addTestSuite(JBIDE4556Test.class);
- suite.addTestSuite(VerificationOfNameSpacesTest.class);
- suite.addTestSuite(BorderForUnknownTagsTest.class);
- suite.addTestSuite(ShowResourceBundlesUsageasELexpressionsTest.class);
- suite.addTestSuite(ShowSelectionTagBarTest.class);
- suite.addTestSuite(AlwaysHideSelectionBarWithoutPromptTest.class);
- suite.addTestSuite(ShowNonVisualTagsTest.class);
- suite.addTestSuite(AddSubstitutedELExpressionFolderScopeTest.class);
- return new TestSetup(suite);
- }
-}
16 years, 6 months
JBoss Tools SVN: r18074 - trunk/vpe/features/org.jboss.tools.xulrunner.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-10-13 16:04:41 -0400 (Tue, 13 Oct 2009)
New Revision: 18074
Modified:
trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
Log:
remove qualifier from xullrunner feature version
Modified: trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
===================================================================
--- trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2009-10-13 17:50:18 UTC (rev 18073)
+++ trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2009-10-13 20:04:41 UTC (rev 18074)
@@ -2,9 +2,10 @@
<feature
id="org.jboss.tools.xulrunner.feature"
label="%featureName"
- version="1.9.1.2_v20091009-2100"
+ version="1.9.1.2"
provider-name="%providerName"
plugin="org.jboss.tools.xulrunner">
+
<description>
%description
</description>
16 years, 6 months
JBoss Tools SVN: r18073 - trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-10-13 13:50:18 -0400 (Tue, 13 Oct 2009)
New Revision: 18073
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/EventManager.java
Log:
fix for java.lang.NullPointerException in tests:
java.lang.NullPointerException
[java] at org.jboss.ide.eclipse.archives.core.model.EventManager.getModelListeners(EventManager.java:182)
[java] at org.jboss.ide.eclipse.archives.core.model.EventManager.fireDelta(EventManager.java:172)
[java] at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireRegistrationEvent(ArchivesModel.java:247)
[java] at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.fireUnregisterProjectEvent(ArchivesModel.java:230)
[java] at org.jboss.ide.eclipse.archives.core.model.ArchivesModel.unregisterProject(ArchivesModel.java:216)
[java] at org.jboss.ide.eclipse.archives.core.WorkspaceChangeListener$4.runInWorkspace(WorkspaceChangeListener.java:128)
[java] at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
[java] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/EventManager.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/EventManager.java 2009-10-13 16:26:50 UTC (rev 18072)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/EventManager.java 2009-10-13 17:50:18 UTC (rev 18073)
@@ -177,13 +177,17 @@
}
}
+ private static final IArchiveModelListener[] NO_LISTENERS = new IArchiveModelListener[0];
private static IArchiveModelListener[] getModelListeners(IArchiveNode node) {
- IArchiveModelRootNode model = node.getModelRootNode();
- if( model != null && model.getModel() != null ) {
- return model.getModel().getModelListeners();
+ IArchiveModelListener[] listeners = NO_LISTENERS;
+ if(node != null) {
+ IArchiveModelRootNode model = node.getModelRootNode();
+ if( model != null && model.getModel() != null ) {
+ listeners = model.getModel().getModelListeners();
+ }
}
- return new IArchiveModelListener[]{};
+ return listeners;
}
// get workspace default ones
16 years, 6 months
JBoss Tools SVN: r18072 - in workspace/mareshkau/testProjects: jsf2CustomComponentTestApplication and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-10-13 12:26:50 -0400 (Tue, 13 Oct 2009)
New Revision: 18072
Added:
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.classpath
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.project
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/.jsdtscope
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.jdt.core.prefs
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.component
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.project.facet.core.xml
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.container
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.name
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.maven.ide.eclipse.prefs
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/pom.xml
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/resources/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/META-INF/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/META-INF/MANIFEST.MF
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/lib/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/web.xml
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/index.jsp
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/login.xhtml
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/ezcomp/
workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/ezcomp/loginPanel.xhtml
Log:
Jsf 2.0 Custom components test project has been created,https://jira.jboss.org/jira/browse/JBIDE-5015
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.classpath
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.classpath (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.classpath 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.project
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.project (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.project 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jsf2CustomComponentTestApplication</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/.jsdtscope
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/.jsdtscope (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/.jsdtscope 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.jdt.core.prefs 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,7 @@
+#Tue Oct 13 12:33:26 EEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.component
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.component (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.component 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="jsf2-maven-application">
+<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+<property name="context-root" value="jsf2-maven-application"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.common.project.facet.core.xml 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <installed facet="jst.java" version="1.4"/>
+ <installed facet="jst.web" version="2.3"/>
+</faceted-project>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/.settings/org.maven.ide.eclipse.prefs 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,9 @@
+#Tue Oct 13 12:33:24 EEST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/pom.xml
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/pom.xml (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/pom.xml 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,60 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.sun.faces.extensions</groupId>
+ <artifactId>jsf2-maven-application</artifactId>
+ <packaging>war</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+ <name>jsf2-maven-application Maven Webapp</name>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>jsf2-maven-application</finalName>
+ </build>
+ <repositories>
+ <repository>
+ <snapshots />
+ <id>codecaus</id>
+ <name>codehaus</name>
+ <url>http://repository.codehaus.org</url>
+ </repository>
+ <repository>
+ <snapshots />
+ <id>java.net</id>
+ <name>Java.net Maven 1.x Repository for external projects</name>
+ <url>https://maven-repository.dev.java.net/nonav/repository</url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
+ <snapshots />
+ <id>java.net.shared</id>
+ <name>Java.net Maven 1.x Repository for glassfish dependencies</name>
+ <url>http://download.java.net/javaee5/external/shared</url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
+ <snapshots />
+ <id>download.java.net</id>
+ <url>http://download.java.net/maven/2/</url>
+ </repository>
+ </repositories>
+</project>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/META-INF/MANIFEST.MF 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/web.xml
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/WEB-INF/web.xml 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,52 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+ <display-name>Jsf 2.0 Custom components Test Application</display-name>
+ <description>Jsf 2.0 Custom components Test Application</description>
+
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
+ <param-value>/tags/mareshkau.taglib.xml</param-value>
+ </context-param>
+
+ <context-param>
+ <description>
+ Set this flag to true if you want the JavaServer Faces
+ Reference Implementation to validate the XML in your
+ faces-config.xml resources against the DTD. Default
+ value is false.
+ </description>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/index.jsp
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/index.jsp (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/index.jsp 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,9 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<%@ page contentType="text/html; charset=UTF-8"%>
+<html>
+<head>
+</head>
+ <body>
+ <jsp:forward page="/login.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/login.xhtml
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/login.xhtml (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/login.xhtml 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ez="http://java.sun.com/jsf/composite/ezcomp">
+<h:head>
+ <title>A simple example of EZComp</title>
+</h:head>
+<h:body>
+ <h:form>
+ <ez:loginPanel id="loginPanel">
+ <f:actionListener for="loginEvent"
+ binding="#{bean.loginEventListener}" />
+ </ez:loginPanel>
+ </h:form>
+</h:body>
+</html>
Added: workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/ezcomp/loginPanel.xhtml
===================================================================
--- workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/ezcomp/loginPanel.xhtml (rev 0)
+++ workspace/mareshkau/testProjects/jsf2CustomComponentTestApplication/src/main/webapp/resources/ezcomp/loginPanel.xhtml 2009-10-13 16:26:50 UTC (rev 18072)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:composite="http://java.sun.com/jsf/composite">
+<head>
+<title>Not present in rendered output</title>
+</head>
+<body>
+<composite:interface>
+ <composite:actionSource name="loginEvent" />
+</composite:interface>
+<composite:implementation>
+ <p>Username: <h:inputText id="usernameInput" /></p>
+ <p>Password: <h:inputSecret id="passwordInput" /></p>
+ <p><h:commandButton id="loginEvent" value="login" /></p>
+</composite:implementation>
+</body>
+</html>
\ No newline at end of file
16 years, 6 months
JBoss Tools SVN: r18071 - trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-10-13 11:52:31 -0400 (Tue, 13 Oct 2009)
New Revision: 18071
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java
Log:
temporary fix - to make source compilable
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java 2009-10-13 15:22:56 UTC (rev 18070)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/AddRemoveTableComposite.java 2009-10-13 15:52:31 UTC (rev 18071)
@@ -43,6 +43,9 @@
ArrayContentProvider.getInstance());
setUpDownVisible(false);
}
+
+ protected void setUpDownVisible(boolean tmp) {
+ }
@Override
protected String[] getAddButtonLabels() {
16 years, 6 months
JBoss Tools SVN: r18070 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3144 and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-10-13 11:22:56 -0400 (Tue, 13 Oct 2009)
New Revision: 18070
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelItemTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3144/jbide3214test.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithNestedLayouts.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidths.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsDifferent.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsPixels.xhtml.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/block/div.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/text/hr.html.xml
Log:
Fixing corrupted junit tests, https://jira.jboss.org/jira/browse/JBIDE-2248
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelItemTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelItemTemplate.java 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelItemTemplate.java 2009-10-13 15:22:56 UTC (rev 18070)
@@ -87,16 +87,16 @@
div.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
// Encode Header
- String headerActiveStyle = barHeaderStyle
+ String headerActiveStyle = (barHeaderStyle
+ SPACE
+ ComponentUtil.getAttribute(sourceElement, HEADER_STYLE)
+ SPACE
+ barHeaderActiveStyle
+ SPACE
+ ComponentUtil
- .getAttribute(sourceElement, HEADER_ACTIVE_STYLE);
- String headerStyle = barHeaderStyle + SPACE
- + ComponentUtil.getAttribute(sourceElement, HEADER_STYLE);
+ .getAttribute(sourceElement, HEADER_ACTIVE_STYLE)).trim();
+ String headerStyle = (barHeaderStyle + SPACE
+ + ComponentUtil.getAttribute(sourceElement, HEADER_STYLE)).trim();
String internContentClass = ComponentUtil.getAttribute(sourceElement,
CONTENT_CLASS);
@@ -108,16 +108,16 @@
sourceElement, HEADER_ACTIVE_CLASS);
if (active) {
- String headerClass = DR_PNLBAR_H_RICH_PANELBAR_HEADER + SPACE
+ String headerClass = (DR_PNLBAR_H_RICH_PANELBAR_HEADER + SPACE
+ barHeaderStyleClass + SPACE + internHeaderClass + SPACE
+ barHeaderActiveStyleClass + SPACE
- + internHeaderActiveClass;
+ + internHeaderActiveClass).trim();
encodeHeader(creationData, pageContext, sourceElement,
visualDocument, div, headerClass, headerActiveStyle,
toggleId);
} else {
- String headerClass = DR_PNLBAR_H_RICH_PANELBAR_HEADER + SPACE
- + barHeaderStyleClass + SPACE + internHeaderClass;
+ String headerClass = (DR_PNLBAR_H_RICH_PANELBAR_HEADER + SPACE
+ + barHeaderStyleClass + SPACE + internHeaderClass).trim();
encodeHeader(creationData, pageContext, sourceElement,
visualDocument, div, headerClass, headerStyle, toggleId);
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3144/jbide3214test.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3144/jbide3214test.xhtml.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3144/jbide3214test.xhtml.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -16,7 +16,7 @@
<TABLE CLASS="dr-table rich-sdt">
<COLGROUP SPAN="1">
</COLGROUP>
-<TBODY HEIGHT="100" STYLE="background-color: blue;" WIDTH="100px;">
+<TBODY HEIGHT="100px;" STYLE="background-color: blue;" WIDTH="100px;">
</TBODY>
<TR CLASS="dr-table-firstrow rich-table-firstrow">
<TD STYLE="background-color: rgb(160, 32, 240);" CLASS="dr-table-cell rich-table-cell"><BR _MOZ_DIRTY="" TYPE="_moz"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java 2009-10-13 15:22:56 UTC (rev 18070)
@@ -91,8 +91,8 @@
* Doctype should have the correct type.
*/
assertEquals(
- "Doctype should have the correct type: \" html \", but was: "+ doctype.getNodeName(), //$NON-NLS-1$
- "html", doctype.getNodeName()); //$NON-NLS-1$
+ "Doctype should have the correct type: \" HTML \", but was: "+ doctype.getNodeName(), //$NON-NLS-1$
+ "HTML", doctype.getNodeName()); //$NON-NLS-1$
} else {
/*
* Fail the test when we cannot process jar file correctly.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithNestedLayouts.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithNestedLayouts.xhtml.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithNestedLayouts.xhtml.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -142,7 +142,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="300" STYLE="">
+ <DIV WIDTH="300px;" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidths.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidths.xhtml.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidths.xhtml.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -318,7 +318,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100%" STYLE="float: left; width: 165%;">
+ <DIV WIDTH="165%" STYLE="float: left; width: 165%;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -364,7 +364,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100%" STYLE="float: left; width: 165%;">
+ <DIV WIDTH="165%" STYLE="float: left; width: 165%;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -410,7 +410,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100%" STYLE="float: left; width: 165%;">
+ <DIV WIDTH="165%" STYLE="float: left; width: 165%;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsDifferent.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsDifferent.xhtml.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsDifferent.xhtml.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -48,7 +48,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="30" STYLE="float: right; width: 30px;">
+ <DIV WIDTH="30px" STYLE="float: right; width: 30px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
@@ -87,7 +87,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="35" STYLE="float: left; width: 35px;">
+ <DIV WIDTH="35px" STYLE="float: left; width: 35px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -179,7 +179,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: left; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: left; width: 65px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -278,7 +278,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: right; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: right; width: 65px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
@@ -317,14 +317,14 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100%" STYLE="float: left; width: 165%;">
+ <DIV WIDTH="165%" STYLE="float: left; width: 165%;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="300" STYLE="float: right; width: 300px;">
+ <DIV WIDTH="300px" STYLE="float: right; width: 300px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
@@ -356,7 +356,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: left; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: left; width: 65px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
@@ -409,7 +409,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="165" STYLE="float: left; width: 165px;">
+ <DIV WIDTH="165px" STYLE="float: left; width: 165px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsPixels.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsPixels.xhtml.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/page/pageWithWidthsPixels.xhtml.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -28,7 +28,7 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
@@ -74,21 +74,21 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;" >
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="25" STYLE="float: left; width: 25px;">
+ <DIV WIDTH="25px" STYLE="float: left; width: 25px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="35" STYLE="float: left; width: 35px;">
+ <DIV WIDTH="35px" STYLE="float: left; width: 35px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -102,7 +102,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -120,14 +120,14 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="90" STYLE="">
+ <DIV WIDTH="90px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="20" STYLE="float: left; width: 20px;">
+ <DIV WIDTH="20px" STYLE="float: left; width: 20px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
@@ -148,7 +148,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="80" STYLE="">
+ <DIV WIDTH="80px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -166,35 +166,35 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="25" STYLE="float: left; width: 25px;">
+ <DIV WIDTH="25px" STYLE="float: left; width: 25px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: left; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: left; width: 65px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="45" STYLE="float: right; width: 45px;">
+ <DIV WIDTH="45px" STYLE="float: right; width: 45px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -212,35 +212,35 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="10" STYLE="float: left; width: 10px;">
+ <DIV WIDTH="10px" STYLE="float: left; width: 10px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="20" STYLE="float: left; width: 20px;">
+ <DIV WIDTH="20px" STYLE="float: left; width: 20px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="30" STYLE="float: right; width: 30px;">
+ <DIV WIDTH="30px" STYLE="float: right; width: 30px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -258,7 +258,7 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
@@ -272,21 +272,21 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: left; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: left; width: 65px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: right; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: right; width: 65px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -304,7 +304,7 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
@@ -318,7 +318,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="165" STYLE="float: left; width: 165px;">
+ <DIV WIDTH="165px" STYLE="float: left; width: 165px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -332,7 +332,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -350,21 +350,21 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV>
<SPAN CLASS="vpe-text">
TOP PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: left; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: left; width: 65px;">
<DIV>
<SPAN CLASS="vpe-text">
LEFT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="165" STYLE="float: left; width: 165px;">
+ <DIV WIDTH="165px" STYLE="float: left; width: 165px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
@@ -378,7 +378,7 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
@@ -396,7 +396,7 @@
</SPAN>
</H1>
<DIV STYLE="border: 1px solid black;">
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV >
<SPAN CLASS="vpe-text">
TOP PANEL
@@ -410,21 +410,21 @@
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="165" STYLE="float: left; width: 165px;">
+ <DIV WIDTH="165px" STYLE="float: left; width: 165px;">
<DIV>
<SPAN STYLE="font-size: 2em;">
CENTER PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="65" STYLE="float: right; width: 65px;">
+ <DIV WIDTH="65px" STYLE="float: right; width: 65px;">
<DIV>
<SPAN CLASS="vpe-text">
RIGHT PANEL
</SPAN>
</DIV>
</DIV>
- <DIV WIDTH="100" STYLE="">
+ <DIV WIDTH="100px" STYLE="">
<DIV
STYLE="display: block; height: 0pt; clear: both; visibility: hidden;">
.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/block/div.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/block/div.html.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/block/div.html.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -1,7 +1,7 @@
<tests>
<test id="div">
- <DIV ALIGN="left" ID="div" CLASS="divClass" STYLE="background: grey none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: white; -moz-user-modify: read-write;" DIR="ltr">
-<SPAN>
+ <DIV ALIGN="left" ID="div" CLASS="divClass" STYLE="background: grey none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: white; -moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
some text
</SPAN>
</DIV>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -1,10 +1,10 @@
<tests>
<test id="table">
<TABLE WIDTH="400" CELLSPACING="0" CELLPADDING="5" BORDER="0"
- ID="table" STYLE="-moz-user-modify: read-write;" >
+ ID="table" STYLE="-moz-user-modify: read-write;">
<COLGROUP WIDTH="150" STYLE="-moz-user-modify: read-write;">
</COLGROUP>
- <COLGROUP WIDTH="50" ALIGN="center" SPAN="9"
+ <COLGROUP WIDTH="50" SPAN="9" ALIGN="center"
STYLE="-moz-user-modify: read-write;">
<COL SPAN="5" STYLE="-moz-user-modify: read-only;" />
@@ -13,28 +13,28 @@
</COLGROUP>
<TR STYLE="-moz-user-modify: read-write;">
<TD
- STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
<SPAN>
Some Text
- </SPAN>
+</SPAN>
</TD>
<TD
- STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
<SPAN>
Some Text
- </SPAN>
+</SPAN>
</TD>
<TD
- STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
<SPAN>
Some Text
- </SPAN>
+</SPAN>
</TD>
<TD
- STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
<SPAN>
Some Text
- </SPAN>
+</SPAN>
</TD>
</TR>
</TABLE>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -1,9 +1,9 @@
<tests>
<test id="td">
<TD ID="td"
- STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;"
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;"
CLASS="tdClass">
- <SPAN>
+ <SPAN CLASS="vpe-text">
Some Text
</SPAN>
</TD>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -1,26 +1,30 @@
<tests>
<test id="tr">
<TR ID="tr" CLASS="trClass" STYLE="color: red; -moz-user-modify: read-write;">
-<TD STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
-<SPAN>
-Some Text
-</SPAN>
-</TD>
-<TD STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
-<SPAN>
-Some Text
-</SPAN>
-</TD>
-<TD STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
-<SPAN>
-Some Text
-</SPAN>
-</TD>
-<TD STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
-<SPAN>
-Some Text
-</SPAN>
-</TD>
-</TR>
+ <TD
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ Some Text
+ </SPAN>
+ </TD>
+ </TR>
</test>
</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/text/hr.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/text/hr.html.xml 2009-10-13 14:47:00 UTC (rev 18069)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/text/hr.html.xml 2009-10-13 15:22:56 UTC (rev 18070)
@@ -1,5 +1,5 @@
<tests>
<test id="hr">
- <HR SIZE="20" ALIGN="left" ID="hr" CLASS="hrClass" STYLE="background: red none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-only;" DIR="ltr"/>
+ <HR SIZE="20" ALIGN="left" ID="hr" CLASS="hrClass" STYLE="background: red none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-user-modify: read-only;"/>
</test>
</tests>
\ No newline at end of file
16 years, 6 months
JBoss Tools SVN: r18069 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-10-13 10:47:00 -0400 (Tue, 13 Oct 2009)
New Revision: 18069
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
Log:
minor fix: unnecessary code removed in the XModelObjectImpl
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2009-10-13 14:31:24 UTC (rev 18068)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2009-10-13 14:47:00 UTC (rev 18069)
@@ -311,7 +311,7 @@
if(n.equals("..")) me = getParent(); //$NON-NLS-1$
else if(n.equals(".")) me = this; //$NON-NLS-1$
}
- return (me == null || i < 0) ? me : ((XModelObjectImpl)me).getChildByPath(f);
+ return (me == null || i < 0) ? me : me.getChildByPath(f);
}
public XModelObject getChildByPathPart(String pathpart) {
16 years, 6 months