mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
[216252] messages for UDA
This commit is contained in:
parent
76cbbbe40e
commit
3bbeda28af
17 changed files with 332 additions and 169 deletions
|
@ -409,87 +409,7 @@ Kevin Doyle (IBM) - [160769] Added message for invalid filter when moving files
|
|||
<LevelOne>Value %1 not in range</LevelOne>
|
||||
<LevelTwo>The value specified is not within the valid range of %2 to %3</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1180" Indicator="E">
|
||||
<LevelOne>Enter action name</LevelOne>
|
||||
<LevelTwo>You must enter a name for this action</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1181" Indicator="E">
|
||||
<LevelOne>Action name is not unique</LevelOne>
|
||||
<LevelTwo>There is already an action with the given name in the selected profile. Specify a name that is not already in use</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1182" Indicator="E">
|
||||
<LevelOne>Action name is not valid</LevelOne>
|
||||
<LevelTwo>The given name is not a valid action name</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1183" Indicator="E">
|
||||
<LevelOne>Enter comment</LevelOne>
|
||||
<LevelTwo>You must enter a comment for this action</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1184" Indicator="E">
|
||||
<LevelOne>Action comment is not valid</LevelOne>
|
||||
<LevelTwo>The given comment has syntactical errors</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1185" Indicator="E">
|
||||
<LevelOne>Enter command</LevelOne>
|
||||
<LevelTwo>You must enter a command for this action</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1186" Indicator="E">
|
||||
<LevelOne>Action command is not valid</LevelOne>
|
||||
<LevelTwo>The given command has syntactical errors</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1187" Indicator="E">
|
||||
<LevelOne>Enter type name</LevelOne>
|
||||
<LevelTwo>You must enter a name for this collection of resource types</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1188" Indicator="E">
|
||||
<LevelOne>Type name %1 in use</LevelOne>
|
||||
<LevelTwo>There is already a named type with the given name. Specify a name that is not already in use</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1189" Indicator="E">
|
||||
<LevelOne>Type name %1 is not valid</LevelOne>
|
||||
<LevelTwo>The given name is not valid for a named type. It must not contain blanks</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1190" Indicator="E">
|
||||
<LevelOne>Specify one or more resource types</LevelOne>
|
||||
<LevelTwo>You must specify one or more simple or generic resource types to constitute this named type</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1191" Indicator="E">
|
||||
<LevelOne>Types not valid</LevelOne>
|
||||
<LevelTwo>Syntactical errors were found in the list of resource types</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1192" Indicator="E">
|
||||
<LevelOne>Enter source type</LevelOne>
|
||||
<LevelTwo>You must enter a source type</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1193" Indicator="E">
|
||||
<LevelOne>Source type "%1" not valid</LevelOne>
|
||||
<LevelTwo>The source type you entered is not valid.</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1194" Indicator="E">
|
||||
<LevelOne>Source type "%1" already exists</LevelOne>
|
||||
<LevelTwo>The source type you entered has already been specified. Specify a unique source type.</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1195" Indicator="E">
|
||||
<LevelOne>Enter a label for this compile command</LevelOne>
|
||||
<LevelTwo>You must enter a label for this compile command, that will be shown in menus and lists</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1196" Indicator="E">
|
||||
<LevelOne>Compile command label "%1" is in use</LevelOne>
|
||||
<LevelTwo>There is already a compile command with the given label. Specify a label that is not already in use</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1197" Indicator="E">
|
||||
<LevelOne>Compile command label "%1" is not valid</LevelOne>
|
||||
<LevelTwo>The given label is not a valid compile label</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1198" Indicator="E">
|
||||
<LevelOne>Enter command string for this compile command</LevelOne>
|
||||
<LevelTwo>You must enter a command string for this compile command. This is what is run when this compile command is selected.</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1199" Indicator="E">
|
||||
<LevelOne>Compile command string "%1" is not valid</LevelOne>
|
||||
<LevelTwo>The given string is not a valid command.</LevelTwo>
|
||||
</Message>
|
||||
|
||||
|
||||
<Message ID="1220" Indicator="E">
|
||||
<LevelOne>Host name '%1' not found or valid</LevelOne>
|
||||
<LevelTwo>A remote system of host name '%1' was not found. If you are working disconnected, de-select the checkbox to verify the host name</LevelTwo>
|
||||
|
@ -498,14 +418,7 @@ Kevin Doyle (IBM) - [160769] Added message for invalid filter when moving files
|
|||
<LevelOne>Verifying host name...</LevelOne>
|
||||
<LevelTwo></LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1230" Indicator="Q">
|
||||
<LevelOne>Delete selected user actions?</LevelOne>
|
||||
<LevelTwo>This is a permanent deletion of the selected actions and cannot be undone.Select Yes to delete and No to cancel the delete action</LevelTwo>
|
||||
</Message>
|
||||
<Message ID="1231" Indicator="Q">
|
||||
<LevelOne>Delete selected types?</LevelOne>
|
||||
<LevelTwo>This is a permanent deletion of the selected types and cannot be undone.Select Yes to delete and No to cancel the delete action</LevelTwo>
|
||||
</Message>
|
||||
|
||||
<Message ID="1240" Indicator="E">
|
||||
<LevelOne>There is an error on another page</LevelOne>
|
||||
<LevelTwo>Another page of the wizard has an error that must be corrected before the wizard can be finished</LevelTwo>
|
||||
|
|
|
@ -38,4 +38,22 @@
|
|||
</enabledWhen>
|
||||
</page>
|
||||
</extension>
|
||||
|
||||
|
||||
<extension point="org.eclipse.ui.menus">
|
||||
<menuContribution locationURI="popup:org.eclipse.rse.ui.view.systemView">
|
||||
<menu id="org.eclipse.rse.ui.useractions.menu"
|
||||
label="Dynamic menu test"
|
||||
mnemonic="useractions.dynamicmenu.mnemonic">
|
||||
|
||||
<dynamic class="org.eclipse.rse.internal.useractions.ui.DynamicMenuTest"
|
||||
id="org.eclipse.ui.rse.ui.views.dynamicmenutest">
|
||||
</dynamic>
|
||||
|
||||
</menu>
|
||||
|
||||
</menuContribution>
|
||||
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.osgi.framework.BundleContext;
|
|||
public class Activator extends AbstractUIPlugin {
|
||||
//The shared instance.
|
||||
private static Activator plugin;
|
||||
|
||||
public static final String PLUGIN_ID = "org.eclipse.rse.useractions"; //$NON-NLS-1$
|
||||
/**
|
||||
* The constructor.
|
||||
*/
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* David Dykstal (IBM) - [186589] move user types, user actions, and compile commands
|
||||
* API to the user actions plugin
|
||||
*******************************************************************************/
|
||||
package org.eclipse.rse.internal.useractions;
|
||||
|
||||
public interface IUserActionsMessageIds {
|
||||
|
||||
public static final String MSG_VALIDATE_UDANAME_EMPTY = "RSEG1180"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDANAME_NOTUNIQUE= "RSEG1181"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDANAME_NOTVALID = "RSEG1182"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDACMT_EMPTY = "RSEG1183"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDACMT_NOTVALID = "RSEG1184"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDACMD_EMPTY = "RSEG1185"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDACMD_NOTVALID = "RSEG1186"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDTNAME_EMPTY = "RSEG1187"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDTNAME_NOTUNIQUE= "RSEG1188"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDTNAME_NOTVALID = "RSEG1189"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDTTYPES_EMPTY = "RSEG1190"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_UDTTYPES_NOTVALID = "RSEG1191"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_COMPILELABEL_EMPTY = "RSEG1195"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_COMPILELABEL_NOTUNIQUE= "RSEG1196"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_COMPILELABEL_NOTVALID = "RSEG1197"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_COMPILESTRING_EMPTY = "RSEG1198"; //$NON-NLS-1$
|
||||
public static final String MSG_VALIDATE_COMPILESTRING_NOTVALID = "RSEG1199"; //$NON-NLS-1$
|
||||
public static final String MSG_UDA_LOAD_ERROR = "RSEG1140"; //$NON-NLS-1$
|
||||
public static final String MSG_UDA_ROOTTAG_ERROR = "RSEG1141"; //$NON-NLS-1$
|
||||
public static final String MSG_CONFIRM_DELETE_USERACTION = "RSEG1230"; //$NON-NLS-1$
|
||||
public static final String MSG_CONFIRM_DELETE_USERTYPE = "RSEG1231"; //$NON-NLS-1$
|
||||
|
||||
}
|
|
@ -73,6 +73,49 @@ public class UserActionsResources extends NLS {
|
|||
public static String RESID_PROPERTY_COMMENT_LABEL;
|
||||
public static String RESID_PROPERTY_COMMENT_TOOLTIP;
|
||||
|
||||
public static String MSG_VALIDATE_UDANAME_EMPTY;
|
||||
public static String MSG_VALIDATE_UDANAME_NOTUNIQUE;
|
||||
public static String MSG_VALIDATE_UDANAME_NOTVALID;
|
||||
public static String MSG_VALIDATE_UDACMT_EMPTY;
|
||||
public static String MSG_VALIDATE_UDACMT_NOTVALID;
|
||||
public static String MSG_VALIDATE_UDACMD_EMPTY;
|
||||
public static String MSG_VALIDATE_UDACMD_NOTVALID;
|
||||
public static String MSG_VALIDATE_UDTNAME_EMPTY;
|
||||
public static String MSG_VALIDATE_UDTNAME_NOTUNIQUE;
|
||||
public static String MSG_VALIDATE_UDTNAME_NOTVALID;
|
||||
public static String MSG_VALIDATE_UDTTYPES_EMPTY;
|
||||
public static String MSG_VALIDATE_UDTTYPES_NOTVALID;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_EMPTY;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_NOTUNIQUE;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_NOTVALID;
|
||||
public static String MSG_VALIDATE_COMPILESTRING_EMPTY;
|
||||
public static String MSG_VALIDATE_COMPILESTRING_NOTVALID;
|
||||
public static String MSG_UDA_LOAD_ERROR;
|
||||
public static String MSG_UDA_ROOTTAG_ERROR;
|
||||
public static String MSG_CONFIRM_DELETE_USERACTION;
|
||||
public static String MSG_CONFIRM_DELETE_USERTYPE;
|
||||
|
||||
public static String MSG_VALIDATE_UDANAME_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_UDANAME_NOTUNIQUE_DETAILS;
|
||||
public static String MSG_VALIDATE_UDANAME_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_UDACMT_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_UDACMT_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_UDACMD_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_UDACMD_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_UDTNAME_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_UDTNAME_NOTUNIQUE_DETAILS;
|
||||
public static String MSG_VALIDATE_UDTNAME_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_UDTTYPES_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_NOTUNIQUE_DETAILS;
|
||||
public static String MSG_VALIDATE_COMPILELABEL_NOTVALID_DETAILS;
|
||||
public static String MSG_VALIDATE_COMPILESTRING_EMPTY_DETAILS;
|
||||
public static String MSG_VALIDATE_COMPILESTRING_NOTVALID_DETAILS;
|
||||
|
||||
public static String MSG_UDA_ROOTTAG_ERROR_DETAILS;
|
||||
public static String MSG_CONFIRM_DELETE_USERACTION_DETAILS;
|
||||
public static String MSG_CONFIRM_DELETE_USERTYPE_DETAILS;
|
||||
|
||||
static {
|
||||
// load message values from bundle file
|
||||
|
|
|
@ -91,3 +91,68 @@ RESID_PROPERTY_COMMAND_TOOLTIP=The command that will be executed
|
|||
RESID_PROPERTY_COMMENT_LABEL=Comment
|
||||
RESID_PROPERTY_COMMENT_TOOLTIP=A description
|
||||
|
||||
|
||||
MSG_VALIDATE_UDANAME_EMPTY = Enter action name
|
||||
MSG_VALIDATE_UDANAME_EMPTY_DETAILS = You must enter a name for this action
|
||||
|
||||
MSG_VALIDATE_UDANAME_NOTUNIQUE= Action name is not unique
|
||||
MSG_VALIDATE_UDANAME_NOTUNIQUE_DETAILS = There is already an action with the given name in the selected profile. Specify a name that is not already in use
|
||||
|
||||
MSG_VALIDATE_UDANAME_NOTVALID =Action name is not valid
|
||||
MSG_VALIDATE_UDANAME_NOTVALID_DETAILS =The given name is not a valid action name
|
||||
|
||||
MSG_VALIDATE_UDACMT_EMPTY = Enter comment
|
||||
MSG_VALIDATE_UDACMT_EMPTY_DETAILS = You must enter a comment for this action
|
||||
|
||||
MSG_VALIDATE_UDACMT_NOTVALID = Action comment is not valid
|
||||
MSG_VALIDATE_UDACMT_NOTVALID_DETAILS =The given comment has syntactical errors
|
||||
|
||||
MSG_VALIDATE_UDACMD_EMPTY = Enter command
|
||||
MSG_VALIDATE_UDACMD_EMPTY_DETAILS = You must enter a command for this action
|
||||
|
||||
MSG_VALIDATE_UDACMD_NOTVALID = Action command is not valid
|
||||
MSG_VALIDATE_UDACMD_NOTVALID = The given command has syntactical errors
|
||||
|
||||
MSG_VALIDATE_UDTNAME_EMPTY = Enter type name
|
||||
MSG_VALIDATE_UDTNAME_EMPTY_DETAILS = You must enter a name for this collection of resource types
|
||||
|
||||
MSG_VALIDATE_UDTNAME_NOTUNIQUE= Type name {0} in use
|
||||
MSG_VALIDATE_UDTNAME_NOTUNIQUE_DETAILS = There is already a named type with the given name. Specify a name that is not already in use
|
||||
|
||||
MSG_VALIDATE_UDTNAME_NOTVALID = Type name {0} is not valid
|
||||
MSG_VALIDATE_UDTNAME_NOTVALID_DETAILS =The given name is not valid for a named type. It must not contain blanks
|
||||
|
||||
MSG_VALIDATE_UDTTYPES_EMPTY = Specify one or more resource types
|
||||
MSG_VALIDATE_UDTTYPES_EMPTY_DETAILS = You must specify one or more simple or generic resource types to constitute this named type
|
||||
|
||||
MSG_VALIDATE_UDTTYPES_NOTVALID = Types not valid
|
||||
MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS = Syntactical errors were found in the list of resource types
|
||||
|
||||
MSG_VALIDATE_COMPILELABEL_EMPTY = Enter a label for this compile command
|
||||
MSG_VALIDATE_COMPILELABEL_EMPTY_DETAILS = You must enter a label for this compile command, that will be shown in menus and lists
|
||||
|
||||
MSG_VALIDATE_COMPILELABEL_NOTUNIQUE= Compile command label "{0}" is in use
|
||||
MSG_VALIDATE_COMPILELABEL_NOTUNIQUE_DETAILS =There is already a compile command with the given label. Specify a label that is not already in use
|
||||
|
||||
MSG_VALIDATE_COMPILELABEL_NOTVALID = Compile command label "{0}" is not valid
|
||||
MSG_VALIDATE_COMPILELABEL_NOTVALID_DETAILS =The given label is not a valid compile label
|
||||
|
||||
MSG_VALIDATE_COMPILESTRING_EMPTY = Enter command string for this compile command
|
||||
MSG_VALIDATE_COMPILESTRING_EMPTY_DETAILS = You must enter a command string for this compile command. This is what is run when this compile command is selected.
|
||||
|
||||
MSG_VALIDATE_COMPILESTRING_NOTVALID = Compile command string "{0}" is not valid
|
||||
MSG_VALIDATE_COMPILESTRING_NOTVALID_DETAILS = The given string is not a valid command.
|
||||
|
||||
MSG_UDA_LOAD_ERROR = Error occurred while loading the user-defined action information from file: {0}
|
||||
|
||||
MSG_UDA_ROOTTAG_ERROR = The xml file '{0}' appears to be corrupted. It has been replaced
|
||||
MSG_UDA_ROOTTAG_ERROR_DETAILS=Expected root tag to be named '{0}'. The corrupted file has been renamed to '{1}' and a new file created for you
|
||||
|
||||
MSG_CONFIRM_DELETE_USERACTION = Delete selected user actions?
|
||||
MSG_CONFIRM_DELETE_USERACTION_DETAILS=This is a permanent deletion of the selected actions and cannot be undone.Select Yes to delete and No to cancel the delete action
|
||||
|
||||
MSG_CONFIRM_DELETE_USERTYPE = Delete selected types?
|
||||
MSG_CONFIRM_DELETE_USERTYPE_DETAILS =This is a permanent deletion of the selected types and cannot be undone.Select Yes to delete and No to cancel the delete action
|
||||
|
||||
|
||||
|
|
@ -18,12 +18,15 @@ import java.util.Iterator;
|
|||
import java.util.StringTokenizer;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.jface.viewers.CheckStateChangedEvent;
|
||||
import org.eclipse.jface.viewers.CheckboxTableViewer;
|
||||
import org.eclipse.jface.viewers.ICheckStateListener;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.internal.useractions.ui.uda.ISystemUDTypeEditPaneTypesSelector;
|
||||
import org.eclipse.rse.internal.useractions.ui.uda.SystemUDAResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.subsystems.files.core.model.RemoteFileFilterString;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -246,7 +249,14 @@ public class UDTypesEditorFiles implements ISystemUDTypeEditPaneTypesSelector, I
|
|||
*/
|
||||
public SystemMessage validate() {
|
||||
if (typesSelectionList == null) return null;
|
||||
if (!areTypesSelected()) return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_EMPTY);
|
||||
|
||||
|
||||
|
||||
if (!areTypesSelected()) {
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_EMPTY,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_EMPTY_DETAILS);
|
||||
}
|
||||
// validate that user-defined entry field!
|
||||
return validateUserDefinedTypes();
|
||||
}
|
||||
|
@ -263,8 +273,9 @@ public class UDTypesEditorFiles implements ISystemUDTypeEditPaneTypesSelector, I
|
|||
int index = filename.indexOf('.');
|
||||
if (index == filename.length() - 1) {
|
||||
if (index == 0 || (index == 1 && filename.charAt(0) == '*')) {
|
||||
//setErrorMessage(GenericMessages.getString("FileExtension.extensionEmptyMessage")); //$NON-NLS-1$
|
||||
return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_NOTVALID);
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS);
|
||||
}
|
||||
}
|
||||
int startScan = 0;
|
||||
|
@ -276,12 +287,14 @@ public class UDTypesEditorFiles implements ISystemUDTypeEditPaneTypesSelector, I
|
|||
index = filename.indexOf('*', startScan);
|
||||
if (index > -1) {
|
||||
if (filename.length() == 1) {
|
||||
//setErrorMessage(GenericMessages.getString("FileExtension.extensionEmptyMessage")); //$NON-NLS-1$
|
||||
return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_NOTVALID);
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS);
|
||||
}
|
||||
if (index != 0 || filename.charAt(1) != '.') {
|
||||
//setErrorMessage(GenericMessages.getString("FileExtension.fileNameInvalidMessage")); //$NON-NLS-1$
|
||||
return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_NOTVALID);
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID,
|
||||
UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2008 IBM Corporation. All rights reserved.
|
||||
* This program and the accompanying materials are 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
|
||||
*
|
||||
* Initial Contributors:
|
||||
* The following IBM employees contributed to the Remote System Explorer
|
||||
* component that contains this file: David McKnight.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
********************************************************************************/
|
||||
package org.eclipse.rse.internal.useractions.ui;
|
||||
|
||||
import org.eclipse.jface.action.ContributionItem;
|
||||
import org.eclipse.jface.action.IContributionItem;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.widgets.Menu;
|
||||
import org.eclipse.swt.widgets.MenuItem;
|
||||
import org.eclipse.ui.actions.CompoundContributionItem;
|
||||
|
||||
public class DynamicMenuTest extends CompoundContributionItem
|
||||
{
|
||||
private class TestContribution extends ContributionItem {
|
||||
public void fill(Menu menu, int index)
|
||||
{
|
||||
MenuItem menuItem = new MenuItem(menu, SWT.RADIO);
|
||||
menuItem.setText("My First Contribution");
|
||||
}
|
||||
}
|
||||
|
||||
protected IContributionItem[] getContributionItems() {
|
||||
// Here's where you would dynamically generate your list
|
||||
IContributionItem[] list = new IContributionItem[1];
|
||||
|
||||
list[0] = new TestContribution();
|
||||
|
||||
|
||||
//IAction searchAction = new SystemSearchAction(null);
|
||||
// ActionContributionItem item = new ActionContributionItem(searchAction);
|
||||
// list[1] = item;
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
|
@ -43,8 +43,10 @@ import org.eclipse.core.resources.IResourceChangeListener;
|
|||
import org.eclipse.core.resources.IResourceDelta;
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.jface.viewers.ITreeContentProvider;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
import org.eclipse.rse.core.RSECorePlugin;
|
||||
import org.eclipse.rse.core.SystemResourceHelpers;
|
||||
import org.eclipse.rse.core.SystemResourceManager;
|
||||
|
@ -52,7 +54,9 @@ import org.eclipse.rse.core.model.ISystemProfile;
|
|||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.ISystemIconConstants;
|
||||
import org.eclipse.rse.ui.ISystemMessages;
|
||||
|
@ -425,7 +429,8 @@ public abstract class SystemUDBaseManager implements ErrorHandler, IResourceChan
|
|||
// Phil. 08/2002
|
||||
if ((null == docroot) || !docroot.getTagName().equals(getDocumentRootTagName())) {
|
||||
Shell activeShell = getActiveShell();
|
||||
SystemMessage docRootMsg = RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_UDA_ROOTTAG_ERROR);
|
||||
|
||||
|
||||
String oldFileName = getFilePath(profile);
|
||||
String newFileName = getFileName() + ".bad"; //$NON-NLS-1$
|
||||
IFile file = getFolder(profile).getFile(getFileName());
|
||||
|
@ -433,6 +438,13 @@ public abstract class SystemUDBaseManager implements ErrorHandler, IResourceChan
|
|||
SystemResourceHelpers.getResourceHelpers().renameFile(file, newFileName);
|
||||
} catch (Exception exc) {
|
||||
}
|
||||
|
||||
|
||||
String msgTxt = NLS.bind(UserActionsResources.MSG_UDA_ROOTTAG_ERROR, getFilePath(profile));
|
||||
String msgDetails = NLS.bind(UserActionsResources.MSG_UDA_ROOTTAG_ERROR_DETAILS, getDocumentRootTagName(), newFileName);
|
||||
|
||||
SystemMessage docRootMsg = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msgTxt, msgDetails);
|
||||
|
||||
doc = createAndPrimeDocument(profile);
|
||||
docRootMsg.makeSubstitution(oldFileName, getDocumentRootTagName(), newFileName);
|
||||
SystemBasePlugin.logWarning(docRootMsg.getLevelOneText());
|
||||
|
@ -445,9 +457,10 @@ public abstract class SystemUDBaseManager implements ErrorHandler, IResourceChan
|
|||
// Provide a non-null value. Might as well prime
|
||||
// with a "proper" doc structure.
|
||||
Document doc = initializeDocument();
|
||||
SystemMessageDialog msgdlg = new SystemMessageDialog(SystemBasePlugin.getActiveWorkbenchShell(), RSEUIPlugin.getPluginMessage(
|
||||
// ISystemMessages.MSG_RESTORE_FAILED).makeSubstitution(exc));
|
||||
IUserActionsMessageIds.MSG_UDA_LOAD_ERROR).makeSubstitution(fileName, exc));
|
||||
|
||||
String msgTxt = NLS.bind(UserActionsResources.MSG_UDA_LOAD_ERROR, fileName);
|
||||
SystemMessage msg = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msgTxt, exc);
|
||||
SystemMessageDialog msgdlg = new SystemMessageDialog(SystemBasePlugin.getActiveWorkbenchShell(), msg);
|
||||
msgdlg.open();
|
||||
return doc;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
package org.eclipse.rse.internal.useractions.ui.uda;
|
||||
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.jface.action.IMenuListener;
|
||||
import org.eclipse.jface.action.IMenuManager;
|
||||
import org.eclipse.jface.action.MenuManager;
|
||||
|
@ -31,10 +32,11 @@ import org.eclipse.rse.core.model.ISystemProfile;
|
|||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.internal.ui.view.SystemViewMenuListener;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemBasePlugin;
|
||||
import org.eclipse.rse.ui.actions.ISystemAction;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
|
@ -400,7 +402,7 @@ public class SystemUDBaseTreeView extends TreeViewer implements IMenuListener, I
|
|||
* Return message for delete confirmation
|
||||
*/
|
||||
protected SystemMessage getDeleteConfirmationMessage() {
|
||||
return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_CONFIRM_DELETE_USERACTION);
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, UserActionsResources.MSG_CONFIRM_DELETE_USERACTION, UserActionsResources.MSG_CONFIRM_DELETE_USERTYPE_DETAILS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,14 +13,16 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.rse.internal.useractions.ui.uda;
|
||||
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.jface.viewers.IBasicPropertyConstants;
|
||||
import org.eclipse.rse.core.model.ISystemProfile;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsModelChangeEvents;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
|
||||
/**
|
||||
|
@ -74,7 +76,7 @@ public class SystemUDTypeTreeView extends SystemUDBaseTreeView {
|
|||
* Return message for delete confirmation
|
||||
*/
|
||||
protected SystemMessage getDeleteConfirmationMessage() {
|
||||
return RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_CONFIRM_DELETE_USERTYPE);
|
||||
return new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.WARNING, UserActionsResources.MSG_CONFIRM_DELETE_USERTYPE, UserActionsResources.MSG_CONFIRM_DELETE_USERTYPE_DETAILS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,9 +21,11 @@ import java.util.Collection;
|
|||
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.rse.ui.validators.ValidatorUniqueString;
|
||||
|
||||
|
@ -64,10 +66,23 @@ public class ValidatorCompileCommandLabel extends ValidatorUniqueString implemen
|
|||
}
|
||||
|
||||
private void init() {
|
||||
super.setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_COMPILELABEL_EMPTY), RSEUIPlugin
|
||||
.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_COMPILELABEL_NOTUNIQUE));
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_COMPILELABEL_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_COMPILELABEL_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_COMPILELABEL_NOTUNIQUE;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_COMPILELABEL_NOTUNIQUE_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
|
||||
super.setErrorMessages(msg1, msg2);
|
||||
fUnique = true;
|
||||
msg_Invalid = RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_COMPILELABEL_NOTVALID);
|
||||
|
||||
String msg3Txt = UserActionsResources.MSG_VALIDATE_COMPILELABEL_NOTVALID;
|
||||
String msg3Details= UserActionsResources.MSG_VALIDATE_COMPILELABEL_NOTVALID_DETAILS;
|
||||
|
||||
msg_Invalid = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg3Txt, msg3Details);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
|
||||
package org.eclipse.rse.internal.useractions.ui.validators;
|
||||
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
|
||||
/**
|
||||
|
@ -35,7 +37,16 @@ public class ValidatorUserActionCommand implements ISystemValidator {
|
|||
* but use the default for the "Value not valid" error message
|
||||
*/
|
||||
public ValidatorUserActionCommand() {
|
||||
setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDACMD_EMPTY), RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDACMD_NOTVALID));
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_UDACMD_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_UDACMD_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_UDACMD_NOTVALID;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_UDACMD_NOTVALID_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
setErrorMessages(msg1,msg2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
|
||||
package org.eclipse.rse.internal.useractions.ui.validators;
|
||||
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
|
||||
/**
|
||||
|
@ -35,7 +37,17 @@ public class ValidatorUserActionComment implements ISystemValidator {
|
|||
* but use the default for the "Value not valid" error message
|
||||
*/
|
||||
public ValidatorUserActionComment() {
|
||||
setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDACMT_EMPTY), RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDACMT_NOTVALID));
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_UDACMT_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_UDACMT_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_UDACMT_NOTVALID;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_UDACMT_NOTVALID_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
|
||||
setErrorMessages(msg1, msg2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,9 +21,11 @@ import java.util.Collection;
|
|||
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.rse.ui.validators.ValidatorUniqueString;
|
||||
|
||||
|
@ -66,9 +68,25 @@ public class ValidatorUserActionName extends ValidatorUniqueString implements IS
|
|||
}
|
||||
|
||||
private void init() {
|
||||
super.setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDANAME_EMPTY), RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDANAME_NOTUNIQUE));
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_UDANAME_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_UDANAME_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_UDANAME_NOTUNIQUE;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_UDANAME_NOTUNIQUE_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
|
||||
|
||||
super.setErrorMessages(msg1, msg2);
|
||||
fUnique = true;
|
||||
msg_Invalid = RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDANAME_NOTVALID);
|
||||
|
||||
String msg3Txt = UserActionsResources.MSG_VALIDATE_UDANAME_NOTVALID;
|
||||
String msg3Details = UserActionsResources.MSG_VALIDATE_UDANAME_NOTVALID_DETAILS;
|
||||
|
||||
SystemMessage msg3 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg3Txt, msg3Details);
|
||||
msg_Invalid = msg3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
|
||||
package org.eclipse.rse.internal.useractions.ui.validators;
|
||||
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.rse.ui.validators.ValidatorUniqueString;
|
||||
|
||||
|
@ -40,8 +42,23 @@ public class ValidatorUserTypeName extends ValidatorUniqueString implements ISys
|
|||
}
|
||||
|
||||
private void init() {
|
||||
super.setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTNAME_EMPTY), RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTNAME_NOTUNIQUE));
|
||||
msg_Invalid = RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTNAME_NOTVALID);
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_UDTNAME_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_UDTNAME_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_UDTNAME_NOTUNIQUE;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_UDTNAME_NOTUNIQUE_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
|
||||
super.setErrorMessages(msg1, msg2);
|
||||
|
||||
String msg3Txt = UserActionsResources.MSG_VALIDATE_UDTNAME_NOTVALID;
|
||||
String msg3Details = UserActionsResources.MSG_VALIDATE_UDTNAME_NOTVALID_DETAILS;
|
||||
|
||||
SystemMessage msg3 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg3Txt, msg3Details);
|
||||
msg_Invalid = msg3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
|
||||
package org.eclipse.rse.internal.useractions.ui.validators;
|
||||
|
||||
import org.eclipse.rse.internal.useractions.IUserActionsMessageIds;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.rse.internal.useractions.Activator;
|
||||
import org.eclipse.rse.internal.useractions.UserActionsResources;
|
||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
|
||||
/**
|
||||
|
@ -35,7 +37,18 @@ public class ValidatorUserTypeTypes implements ISystemValidator {
|
|||
* but use the default for the "Value not valid" error message
|
||||
*/
|
||||
public ValidatorUserTypeTypes() {
|
||||
setErrorMessages(RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_EMPTY), RSEUIPlugin.getPluginMessage(IUserActionsMessageIds.MSG_VALIDATE_UDTTYPES_NOTVALID));
|
||||
String msg1Txt = UserActionsResources.MSG_VALIDATE_UDTTYPES_EMPTY;
|
||||
String msg1Details = UserActionsResources.MSG_VALIDATE_UDTTYPES_EMPTY_DETAILS;
|
||||
|
||||
SystemMessage msg1 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg1Txt, msg1Details);
|
||||
|
||||
String msg2Txt = UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID;
|
||||
String msg2Details = UserActionsResources.MSG_VALIDATE_UDTTYPES_NOTVALID_DETAILS;
|
||||
|
||||
SystemMessage msg2 = new SimpleSystemMessage(Activator.PLUGIN_ID, IStatus.ERROR, msg2Txt, msg2Details);
|
||||
|
||||
|
||||
setErrorMessages(msg1, msg2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue