RC2 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / externaltools / variable / ResourceComponent.java
index 9937f78..143a6e6 100644 (file)
@@ -9,6 +9,10 @@ http://www.eclipse.org/legal/cpl-v10.html
 Contributors:
 **********************************************************************/
 
+import net.sourceforge.phpdt.externaltools.group.IGroupDialogPage;
+import net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsModelMessages;
+import net.sourceforge.phpdt.externaltools.model.ToolUtil;
+
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.jface.dialogs.IMessageProvider;
@@ -27,9 +31,6 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Group;
 import org.eclipse.swt.widgets.Tree;
-import net.sourceforge.phpdt.externaltools.group.IGroupDialogPage;
-import net.sourceforge.phpdt.externaltools.internal.model.ToolMessages;
-import net.sourceforge.phpdt.externaltools.model.ToolUtil;
 import org.eclipse.ui.model.WorkbenchContentProvider;
 import org.eclipse.ui.model.WorkbenchLabelProvider;
 
@@ -110,7 +111,7 @@ public class ResourceComponent implements IVariableComponent {
         */
        protected void createSelectedResourceOption() {
                selectedResourceButton = new Button(mainGroup, SWT.RADIO);
-               selectedResourceButton.setText(ToolMessages.getString("ResourceComponent.selectedResLabel")); //$NON-NLS-1$
+               selectedResourceButton.setText(ExternalToolsModelMessages.getString("ResourceComponent.selectedResLabel")); //$NON-NLS-1$
                GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                selectedResourceButton.setLayoutData(data);
                selectedResourceButton.setFont(mainGroup.getFont());
@@ -123,7 +124,7 @@ public class ResourceComponent implements IVariableComponent {
         */
        protected void createSpecificResourceOption() {
                specificResourceButton = new Button(mainGroup, SWT.RADIO);
-               specificResourceButton.setText(ToolMessages.getString("ResourceComponent.specificResLabel")); //$NON-NLS-1$
+               specificResourceButton.setText(ExternalToolsModelMessages.getString("ResourceComponent.specificResLabel")); //$NON-NLS-1$
                GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                specificResourceButton.setLayoutData(data);
                specificResourceButton.setFont(mainGroup.getFont());
@@ -254,7 +255,7 @@ public class ResourceComponent implements IVariableComponent {
                        return true;
 
                if (resourceList.getSelection().isEmpty()) {
-                       getPage().setMessage(ToolMessages.getString("ResourceComponent.selectionRequired"), IMessageProvider.WARNING); //$NON-NLS-1$
+                       getPage().setMessage(ExternalToolsModelMessages.getString("ResourceComponent.selectionRequired"), IMessageProvider.WARNING); //$NON-NLS-1$
                        setIsValid(false);
                        return false;
                }