mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 18:15:23 +02:00
[180562[ not implementing I*Property*Constants
This commit is contained in:
parent
103e79173f
commit
01e918f2ce
12 changed files with 77 additions and 94 deletions
|
@ -146,8 +146,7 @@ import org.eclipse.ui.views.properties.PropertyDescriptor;
|
||||||
*/
|
*/
|
||||||
public class SystemViewRemoteFileAdapter
|
public class SystemViewRemoteFileAdapter
|
||||||
extends AbstractSystemViewAdapter
|
extends AbstractSystemViewAdapter
|
||||||
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter,
|
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||||
ISystemPropertyConstants
|
|
||||||
{
|
{
|
||||||
|
|
||||||
private String xlatedSize = null;
|
private String xlatedSize = null;
|
||||||
|
@ -862,24 +861,24 @@ public class SystemViewRemoteFileAdapter
|
||||||
//RSEUIPlugin plugin = RSEUIPlugin.getDefault();
|
//RSEUIPlugin plugin = RSEUIPlugin.getDefault();
|
||||||
|
|
||||||
// classification
|
// classification
|
||||||
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
|
|
||||||
// last modified
|
// last modified
|
||||||
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
|
|
||||||
// size
|
// size
|
||||||
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
|
|
||||||
// canonical path
|
// canonical path
|
||||||
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
if (isRegular) uniquePropertyDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
else if (isVirtual) uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
else if (isArchive) uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
|
|
||||||
|
|
||||||
if (isVirtual)
|
if (isVirtual)
|
||||||
|
@ -887,26 +886,26 @@ public class SystemViewRemoteFileAdapter
|
||||||
// add virtual property descriptors...
|
// add virtual property descriptors...
|
||||||
|
|
||||||
// compressed size
|
// compressed size
|
||||||
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSEDSIZE, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION);
|
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSEDSIZE, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION);
|
||||||
|
|
||||||
// compression ratio
|
// compression ratio
|
||||||
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSIONRATIO, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION);
|
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSIONRATIO, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION);
|
||||||
|
|
||||||
// compression method
|
// compression method
|
||||||
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSIONMETHOD, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION);
|
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSIONMETHOD, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION);
|
||||||
|
|
||||||
// comment
|
// comment
|
||||||
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(P_VIRTUAL_COMMENT, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION);
|
uniqueVirtualDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMMENT, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION);
|
||||||
}
|
}
|
||||||
else if (isArchive)
|
else if (isArchive)
|
||||||
{
|
{
|
||||||
// add archive property descriptors...
|
// add archive property descriptors...
|
||||||
|
|
||||||
// expanded size
|
// expanded size
|
||||||
uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_ARCHIVE_EXPANDEDSIZE, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION);
|
uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_ARCHIVE_EXPANDEDSIZE, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION);
|
||||||
|
|
||||||
// comment
|
// comment
|
||||||
uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(P_ARCHIVE_COMMENT, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION);
|
uniqueArchiveDescriptorArray[++i] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_ARCHIVE_COMMENT, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -962,46 +961,46 @@ public class SystemViewRemoteFileAdapter
|
||||||
int briefIdx = idx;
|
int briefIdx = idx;
|
||||||
|
|
||||||
// path
|
// path
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
||||||
briefPropertyDescriptorArray[++briefIdx] = createSimplePropertyDescriptor(P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
briefPropertyDescriptorArray[++briefIdx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
||||||
|
|
||||||
// filter string
|
// filter string
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
||||||
briefPropertyDescriptorArray[++briefIdx] = createSimplePropertyDescriptor(P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
briefPropertyDescriptorArray[++briefIdx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILTERSTRING, SystemViewResources.RESID_PROPERTY_FILTERSTRING_LABEL,SystemViewResources.RESID_PROPERTY_FILTERSTRING_TOOLTIP);
|
||||||
|
|
||||||
// canonical path
|
// canonical path
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CANONICAL_PATH, SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_LABEL,SystemViewResources.RESID_PROPERTY_FILE_CANONICAL_PATH_TOOLTIP);
|
||||||
|
|
||||||
// last modified
|
// last modified
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL,SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL,SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL,SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_LASTMODIFIED, SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_LABEL,SystemViewResources.RESID_PROPERTY_FILE_LASTMODIFIED_TOOLTIP);
|
||||||
|
|
||||||
// size
|
// size
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_SIZE, SystemViewResources.RESID_PROPERTY_FILE_SIZE_LABEL, SystemViewResources.RESID_PROPERTY_FILE_SIZE_TOOLTIP);
|
||||||
|
|
||||||
// classification
|
// classification
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_CLASSIFICATION, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_LABEL, SystemViewResources.RESID_PROPERTY_FILE_CLASSIFICATION_TOOLTIP);
|
||||||
|
|
||||||
// readonly
|
// readonly
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_READONLY, SystemViewResources.RESID_PROPERTY_FILE_READONLY_LABEL, SystemViewResources.RESID_PROPERTY_FILE_READONLY_TOOLTIP);
|
||||||
|
|
||||||
// hidden
|
// hidden
|
||||||
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
if (isRegular) propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
||||||
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
else if (isVirtual) virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
||||||
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
else if (isArchive) archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_HIDDEN, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_LABEL, SystemViewResources.RESID_PROPERTY_FILE_HIDDEN_TOOLTIP);
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
|
@ -1026,16 +1025,16 @@ public class SystemViewRemoteFileAdapter
|
||||||
// add virtual property descriptors...
|
// add virtual property descriptors...
|
||||||
|
|
||||||
// compressed size
|
// compressed size
|
||||||
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSEDSIZE, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION);
|
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSEDSIZE, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION);
|
||||||
|
|
||||||
// compression ratio
|
// compression ratio
|
||||||
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSIONRATIO, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION);
|
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSIONRATIO, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION);
|
||||||
|
|
||||||
// compression method
|
// compression method
|
||||||
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_VIRTUAL_COMPRESSIONMETHOD, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION);
|
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMPRESSIONMETHOD, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION);
|
||||||
|
|
||||||
// comment
|
// comment
|
||||||
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(P_VIRTUAL_COMMENT, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION);
|
virtualDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VIRTUAL_COMMENT, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (isArchive)
|
else if (isArchive)
|
||||||
|
@ -1043,10 +1042,10 @@ public class SystemViewRemoteFileAdapter
|
||||||
// add archive property descriptors...
|
// add archive property descriptors...
|
||||||
|
|
||||||
// expanded size
|
// expanded size
|
||||||
archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_ARCHIVE_EXPANDEDSIZE, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION);
|
archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_ARCHIVE_EXPANDEDSIZE, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION);
|
||||||
|
|
||||||
// comment
|
// comment
|
||||||
archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(P_ARCHIVE_COMMENT, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION);
|
archiveDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_ARCHIVE_COMMENT, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, SystemViewResources.RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1092,7 +1091,7 @@ public class SystemViewRemoteFileAdapter
|
||||||
public Object getPropertyValue(Object key)
|
public Object getPropertyValue(Object key)
|
||||||
{
|
{
|
||||||
String name = (String)key;
|
String name = (String)key;
|
||||||
if (name.equals(P_NBRCHILDREN))
|
if (name.equals(ISystemPropertyConstants.P_NBRCHILDREN))
|
||||||
{
|
{
|
||||||
IRemoteFile file = (IRemoteFile) propertySourceInput;
|
IRemoteFile file = (IRemoteFile) propertySourceInput;
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,6 @@ import org.eclipse.rse.ui.dialogs.SystemSimpleContentElement;
|
||||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||||
import org.eclipse.rse.ui.validators.ValidatorProfileName;
|
import org.eclipse.rse.ui.validators.ValidatorProfileName;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.swt.events.ModifyEvent;
|
import org.eclipse.swt.events.ModifyEvent;
|
||||||
import org.eclipse.swt.events.ModifyListener;
|
import org.eclipse.swt.events.ModifyListener;
|
||||||
import org.eclipse.swt.widgets.Button;
|
import org.eclipse.swt.widgets.Button;
|
||||||
|
@ -40,8 +39,7 @@ import org.eclipse.swt.widgets.Text;
|
||||||
/**
|
/**
|
||||||
* Dialog for copying a system profile.
|
* Dialog for copying a system profile.
|
||||||
*/
|
*/
|
||||||
public class SystemCopyProfileDialog extends SystemPromptDialog
|
public class SystemCopyProfileDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants
|
|
||||||
{
|
{
|
||||||
private Text newName;
|
private Text newName;
|
||||||
private Button makeActiveCB;
|
private Button makeActiveCB;
|
||||||
|
|
|
@ -58,7 +58,6 @@ import org.eclipse.rse.ui.filters.actions.SystemFilterAbstractFilterPoolAction;
|
||||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||||
import org.eclipse.rse.ui.validators.ValidatorFilterPoolName;
|
import org.eclipse.rse.ui.validators.ValidatorFilterPoolName;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
@ -72,7 +71,7 @@ import org.eclipse.swt.widgets.Tree;
|
||||||
*/
|
*/
|
||||||
public class SystemFilterWorkWithFilterPoolsDialog
|
public class SystemFilterWorkWithFilterPoolsDialog
|
||||||
extends SystemPromptDialog
|
extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants,
|
implements
|
||||||
ISelectionChangedListener,
|
ISelectionChangedListener,
|
||||||
ISystemDeleteTarget, ISystemRenameTarget,
|
ISystemDeleteTarget, ISystemRenameTarget,
|
||||||
SystemFilterPoolDialogInterface
|
SystemFilterPoolDialogInterface
|
||||||
|
|
|
@ -49,7 +49,6 @@ import org.eclipse.ui.views.properties.TextPropertyDescriptor;
|
||||||
* These are children of SystemConnection objects
|
* These are children of SystemConnection objects
|
||||||
*/
|
*/
|
||||||
public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
implements ISystemPropertyConstants
|
|
||||||
{
|
{
|
||||||
protected String translatedType;
|
protected String translatedType;
|
||||||
// for reset property support
|
// for reset property support
|
||||||
|
@ -243,10 +242,10 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
//propertyDescriptorArray[++idx] = getPortDescriptor();
|
//propertyDescriptorArray[++idx] = getPortDescriptor();
|
||||||
|
|
||||||
// connected
|
// connected
|
||||||
propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_IS_CONNECTED, SystemViewResources.RESID_PROPERTY_CONNECTED_LABEL, SystemViewResources.RESID_PROPERTY_CONNECTED_TOOLTIP);
|
propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_IS_CONNECTED, SystemViewResources.RESID_PROPERTY_CONNECTED_LABEL, SystemViewResources.RESID_PROPERTY_CONNECTED_TOOLTIP);
|
||||||
|
|
||||||
// vrm
|
// vrm
|
||||||
propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(P_VRM, SystemViewResources.RESID_PROPERTY_VRM_LABEL, SystemViewResources.RESID_PROPERTY_VRM_TOOLTIP);
|
propertyDescriptorArray[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_VRM, SystemViewResources.RESID_PROPERTY_VRM_LABEL, SystemViewResources.RESID_PROPERTY_VRM_TOOLTIP);
|
||||||
}
|
}
|
||||||
return propertyDescriptorArray;
|
return propertyDescriptorArray;
|
||||||
}
|
}
|
||||||
|
@ -361,11 +360,11 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
{
|
{
|
||||||
String name = (String)property;
|
String name = (String)property;
|
||||||
ISubSystem ss = (ISubSystem)propertySourceInput;
|
ISubSystem ss = (ISubSystem)propertySourceInput;
|
||||||
if (name.equals(P_USERID))
|
if (name.equals(ISystemPropertyConstants.P_USERID))
|
||||||
return setUserIdPropertyData(userIdData, ss);
|
return setUserIdPropertyData(userIdData, ss);
|
||||||
else if (name.equals(P_PORT))
|
else if (name.equals(ISystemPropertyConstants.P_PORT))
|
||||||
return getPortString(ss);
|
return getPortString(ss);
|
||||||
else if (name.equals(P_VRM))
|
else if (name.equals(ISystemPropertyConstants.P_VRM))
|
||||||
{
|
{
|
||||||
IConnectorService system = ss.getConnectorService();
|
IConnectorService system = ss.getConnectorService();
|
||||||
if (system != null)
|
if (system != null)
|
||||||
|
@ -379,7 +378,7 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
else
|
else
|
||||||
return getTranslatedNotAvailable();
|
return getTranslatedNotAvailable();
|
||||||
}
|
}
|
||||||
else if (name.equals(P_IS_CONNECTED))
|
else if (name.equals(ISystemPropertyConstants.P_IS_CONNECTED))
|
||||||
{
|
{
|
||||||
// yantzi: artemis 6.0, offline support
|
// yantzi: artemis 6.0, offline support
|
||||||
if (ss.getHost().isOffline())
|
if (ss.getHost().isOffline())
|
||||||
|
@ -467,9 +466,9 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
{
|
{
|
||||||
String property = (String)propertyObject;
|
String property = (String)propertyObject;
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
if (property.equals(P_USERID))
|
if (property.equals(ISystemPropertyConstants.P_USERID))
|
||||||
changed = changed_userId;
|
changed = changed_userId;
|
||||||
else if (property.equals(P_PORT))
|
else if (property.equals(ISystemPropertyConstants.P_PORT))
|
||||||
changed = changed_port && port_editable;
|
changed = changed_port && port_editable;
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
@ -543,12 +542,12 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
String property = (String)propertyObject;
|
String property = (String)propertyObject;
|
||||||
ISubSystem ss = (ISubSystem)propertySourceInput;
|
ISubSystem ss = (ISubSystem)propertySourceInput;
|
||||||
ss.getSubSystemConfiguration();
|
ss.getSubSystemConfiguration();
|
||||||
if (property.equals(P_USERID))
|
if (property.equals(ISystemPropertyConstants.P_USERID))
|
||||||
{
|
{
|
||||||
updateUserId(ss, original_userIdData);
|
updateUserId(ss, original_userIdData);
|
||||||
changed_userId = false;
|
changed_userId = false;
|
||||||
}
|
}
|
||||||
else if (property.equals(P_PORT))
|
else if (property.equals(ISystemPropertyConstants.P_PORT))
|
||||||
{
|
{
|
||||||
//updatePort(ss, original_portData);
|
//updatePort(ss, original_portData);
|
||||||
updatePort(ss, original_portData);
|
updatePort(ss, original_portData);
|
||||||
|
@ -564,12 +563,12 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
||||||
ISubSystem ss = (ISubSystem)propertySourceInput;
|
ISubSystem ss = (ISubSystem)propertySourceInput;
|
||||||
ss.getSubSystemConfiguration();
|
ss.getSubSystemConfiguration();
|
||||||
//System.out.println("inside setPropVal: " + property + ", value: " + value);
|
//System.out.println("inside setPropVal: " + property + ", value: " + value);
|
||||||
if (name.equals(P_USERID))
|
if (name.equals(ISystemPropertyConstants.P_USERID))
|
||||||
{
|
{
|
||||||
updateUserId(ss, (SystemInheritablePropertyData)value);
|
updateUserId(ss, (SystemInheritablePropertyData)value);
|
||||||
changed_userId = true;
|
changed_userId = true;
|
||||||
}
|
}
|
||||||
else if (name.equals(P_PORT))
|
else if (name.equals(ISystemPropertyConstants.P_PORT))
|
||||||
{
|
{
|
||||||
//System.out.println("inside setPropVal: " + property + ", value: " + value);
|
//System.out.println("inside setPropVal: " + property + ", value: " + value);
|
||||||
//updatePort(ss, (SystemInheritablePropertyData)value);
|
//updatePort(ss, (SystemInheritablePropertyData)value);
|
||||||
|
|
|
@ -54,8 +54,7 @@ import org.eclipse.swt.widgets.TableColumn;
|
||||||
* @see org.eclipse.rse.internal.ui.actions.SystemCommonDeleteAction
|
* @see org.eclipse.rse.internal.ui.actions.SystemCommonDeleteAction
|
||||||
*/
|
*/
|
||||||
public class SystemDeleteDialog extends SystemPromptDialog
|
public class SystemDeleteDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants,
|
implements ISelectionChangedListener
|
||||||
ISelectionChangedListener
|
|
||||||
{
|
{
|
||||||
private String warningMessage, warningTip;
|
private String warningMessage, warningTip;
|
||||||
private String promptLabel;
|
private String promptLabel;
|
||||||
|
|
|
@ -86,7 +86,7 @@ import org.eclipse.swt.widgets.Text;
|
||||||
* @see org.eclipse.rse.internal.ui.actions.SystemCommonRenameAction
|
* @see org.eclipse.rse.internal.ui.actions.SystemCommonRenameAction
|
||||||
*/
|
*/
|
||||||
public class SystemRenameDialog extends SystemPromptDialog
|
public class SystemRenameDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants,
|
implements
|
||||||
ISelectionChangedListener,
|
ISelectionChangedListener,
|
||||||
TraverseListener,
|
TraverseListener,
|
||||||
ICellEditorListener, Runnable, FocusListener
|
ICellEditorListener, Runnable, FocusListener
|
||||||
|
@ -132,7 +132,7 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
{
|
{
|
||||||
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
||||||
String value = ""; //$NON-NLS-1$
|
String value = ""; //$NON-NLS-1$
|
||||||
if (property.equals(P_TEXT))
|
if (property.equals(ISystemPropertyConstants.P_TEXT))
|
||||||
value = row.getName();
|
value = row.getName();
|
||||||
else
|
else
|
||||||
value = row.getNewName();
|
value = row.getNewName();
|
||||||
|
@ -142,7 +142,7 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
|
|
||||||
public boolean canModify(Object element, String property)
|
public boolean canModify(Object element, String property)
|
||||||
{
|
{
|
||||||
boolean modifiable = property.equals(P_NEWNAME);
|
boolean modifiable = property.equals(ISystemPropertyConstants.P_NEWNAME);
|
||||||
if ((cellEditor != null) && (cellEditor.getControl() != null))
|
if ((cellEditor != null) && (cellEditor.getControl() != null))
|
||||||
{
|
{
|
||||||
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
SystemRenameTableRow row = (SystemRenameTableRow)element;
|
||||||
|
@ -160,7 +160,7 @@ public class SystemRenameDialog extends SystemPromptDialog
|
||||||
{
|
{
|
||||||
SystemRenameTableRow row = (SystemRenameTableRow)(((TableItem)element).getData());
|
SystemRenameTableRow row = (SystemRenameTableRow)(((TableItem)element).getData());
|
||||||
//System.out.println("inside modify: " + row+"; "+property+", "+value);
|
//System.out.println("inside modify: " + row+"; "+property+", "+value);
|
||||||
if (property.equals(P_NEWNAME))
|
if (property.equals(ISystemPropertyConstants.P_NEWNAME))
|
||||||
{
|
{
|
||||||
row.setNewName((String)value);
|
row.setNewName((String)value);
|
||||||
tableViewer.update(row, null);
|
tableViewer.update(row, null);
|
||||||
|
|
|
@ -35,7 +35,6 @@ import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||||
import org.eclipse.rse.ui.validators.ISystemValidatorUniqueString;
|
import org.eclipse.rse.ui.validators.ISystemValidatorUniqueString;
|
||||||
import org.eclipse.rse.ui.validators.ValidatorConnectionName;
|
import org.eclipse.rse.ui.validators.ValidatorConnectionName;
|
||||||
import org.eclipse.rse.ui.validators.ValidatorUniqueString;
|
import org.eclipse.rse.ui.validators.ValidatorUniqueString;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||||
import org.eclipse.swt.events.ModifyEvent;
|
import org.eclipse.swt.events.ModifyEvent;
|
||||||
|
@ -73,7 +72,7 @@ import org.eclipse.swt.widgets.Widget;
|
||||||
* @see org.eclipse.rse.internal.ui.actions.SystemCommonRenameAction
|
* @see org.eclipse.rse.internal.ui.actions.SystemCommonRenameAction
|
||||||
*/
|
*/
|
||||||
public class SystemRenameSingleDialog extends SystemPromptDialog
|
public class SystemRenameSingleDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants,
|
implements
|
||||||
Runnable
|
Runnable
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ import org.eclipse.jface.viewers.IStructuredSelection;
|
||||||
import org.eclipse.jface.viewers.SelectionChangedEvent;
|
import org.eclipse.jface.viewers.SelectionChangedEvent;
|
||||||
import org.eclipse.rse.internal.ui.view.SystemViewForm;
|
import org.eclipse.rse.internal.ui.view.SystemViewForm;
|
||||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.rse.ui.view.ISystemViewInputProvider;
|
import org.eclipse.rse.ui.view.ISystemViewInputProvider;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
@ -31,7 +30,7 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
|
|
||||||
|
|
||||||
public class SystemSelectAnythingDialog extends SystemPromptDialog
|
public class SystemSelectAnythingDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants, ISelectionChangedListener
|
implements ISelectionChangedListener
|
||||||
{
|
{
|
||||||
private SystemViewForm _view = null;
|
private SystemViewForm _view = null;
|
||||||
private Object _selected = null;
|
private Object _selected = null;
|
||||||
|
|
|
@ -24,7 +24,6 @@ import org.eclipse.jface.viewers.ICheckStateListener;
|
||||||
import org.eclipse.jface.viewers.StructuredSelection;
|
import org.eclipse.jface.viewers.StructuredSelection;
|
||||||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
@ -58,8 +57,7 @@ import org.eclipse.swt.widgets.Tree;
|
||||||
* @see org.eclipse.rse.ui.dialogs.SystemSimpleContentProvider
|
* @see org.eclipse.rse.ui.dialogs.SystemSimpleContentProvider
|
||||||
*/
|
*/
|
||||||
public class SystemSimpleSelectDialog extends SystemPromptDialog
|
public class SystemSimpleSelectDialog extends SystemPromptDialog
|
||||||
implements ISystemPropertyConstants,
|
implements ICheckStateListener
|
||||||
ICheckStateListener
|
|
||||||
{
|
{
|
||||||
private String promptString;
|
private String promptString;
|
||||||
//private Label prompt;
|
//private Label prompt;
|
||||||
|
|
|
@ -15,9 +15,6 @@ import org.eclipse.jface.dialogs.IDialogConstants;
|
||||||
import org.eclipse.jface.text.source.ISourceViewer;
|
import org.eclipse.jface.text.source.ISourceViewer;
|
||||||
import org.eclipse.jface.text.source.SourceViewer;
|
import org.eclipse.jface.text.source.SourceViewer;
|
||||||
import org.eclipse.rse.shells.ui.view.SystemCommandEditor;
|
import org.eclipse.rse.shells.ui.view.SystemCommandEditor;
|
||||||
import org.eclipse.rse.ui.ISystemIconConstants;
|
|
||||||
import org.eclipse.rse.ui.ISystemMessages;
|
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
@ -31,7 +28,7 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
/**
|
/**
|
||||||
* Dialog used for editing command text in a resizable widget
|
* Dialog used for editing command text in a resizable widget
|
||||||
*/
|
*/
|
||||||
public class SystemEditCommandDialog extends Dialog implements ISystemMessages, ISystemPropertyConstants, ISystemIconConstants {
|
public class SystemEditCommandDialog extends Dialog {
|
||||||
// gui
|
// gui
|
||||||
protected Label newNamePrompt;
|
protected Label newNamePrompt;
|
||||||
// input
|
// input
|
||||||
|
|
|
@ -11,10 +11,8 @@ package org.eclipse.rse.useractions.ui;
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||||
import org.eclipse.rse.ui.ISystemMessages;
|
|
||||||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||||
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
||||||
import org.eclipse.swt.events.ModifyEvent;
|
import org.eclipse.swt.events.ModifyEvent;
|
||||||
import org.eclipse.swt.events.ModifyListener;
|
import org.eclipse.swt.events.ModifyListener;
|
||||||
|
@ -34,7 +32,7 @@ import org.eclipse.swt.widgets.Text;
|
||||||
* <p>
|
* <p>
|
||||||
* Typically this is subclassed or configured to supply unique translated text.
|
* Typically this is subclassed or configured to supply unique translated text.
|
||||||
*/
|
*/
|
||||||
public class SystemPromptCommandDialog extends SystemPromptDialog implements ISystemMessages, ISystemPropertyConstants {
|
public class SystemPromptCommandDialog extends SystemPromptDialog {
|
||||||
// gui
|
// gui
|
||||||
protected Text cmdText;
|
protected Text cmdText;
|
||||||
protected Label newNamePrompt;
|
protected Label newNamePrompt;
|
||||||
|
|
|
@ -12,13 +12,11 @@ package org.eclipse.rse.useractions.ui.compile;
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||||
import org.eclipse.rse.ui.ISystemMassager;
|
import org.eclipse.rse.ui.ISystemMassager;
|
||||||
import org.eclipse.rse.ui.ISystemMessages;
|
|
||||||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||||
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
||||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||||
import org.eclipse.rse.ui.validators.ISystemValidatorUniqueString;
|
import org.eclipse.rse.ui.validators.ISystemValidatorUniqueString;
|
||||||
import org.eclipse.rse.ui.validators.ValidatorSourceType;
|
import org.eclipse.rse.ui.validators.ValidatorSourceType;
|
||||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
|
||||||
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
import org.eclipse.rse.useractions.ui.uda.SystemUDAResources;
|
||||||
import org.eclipse.swt.events.ModifyEvent;
|
import org.eclipse.swt.events.ModifyEvent;
|
||||||
import org.eclipse.swt.events.ModifyListener;
|
import org.eclipse.swt.events.ModifyListener;
|
||||||
|
@ -34,7 +32,7 @@ import org.eclipse.swt.widgets.Text;
|
||||||
* This class is designed so that it need not be subclassed. Rather, the mri, validation
|
* This class is designed so that it need not be subclassed. Rather, the mri, validation
|
||||||
* and massaging can all be configured.
|
* and massaging can all be configured.
|
||||||
*/
|
*/
|
||||||
public class SystemNewCompileSrcTypeDialog extends SystemPromptDialog implements ISystemMessages, ISystemPropertyConstants {
|
public class SystemNewCompileSrcTypeDialog extends SystemPromptDialog {
|
||||||
// gui
|
// gui
|
||||||
protected Text srcTypeText;
|
protected Text srcTypeText;
|
||||||
// input
|
// input
|
||||||
|
|
Loading…
Add table
Reference in a new issue