mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Fix some externalized Strings warnings and incorrect icon pathes
This commit is contained in:
parent
cbbf547366
commit
7a2be0808b
15 changed files with 26 additions and 25 deletions
|
@ -21,6 +21,7 @@ import java.util.List;
|
|||
|
||||
import org.eclipse.dstore.core.model.DataElement;
|
||||
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorService;
|
||||
import org.eclipse.rse.core.subsystems.SubSystem;
|
||||
import org.eclipse.rse.services.dstore.files.DStoreHostFile;
|
||||
import org.eclipse.rse.services.dstore.files.DStoreVirtualHostFile;
|
||||
import org.eclipse.rse.services.files.IHostFile;
|
||||
|
@ -42,7 +43,7 @@ public class DStoreFileAdapter implements IHostFileToRemoteFileAdapter
|
|||
if (_listener == null)
|
||||
{
|
||||
DStoreConnectorService connectorService = (DStoreConnectorService)ss.getConnectorService();
|
||||
Shell shell = FileServiceSubSystem.getActiveWorkbenchShell();
|
||||
Shell shell = SubSystem.getActiveWorkbenchShell();
|
||||
_listener = new RemoteFilePropertyChangeListener(shell, connectorService, connectorService.getDataStore(), ss);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class DStoreFileSubSystemSearchResultConfiguration extends DStoreSearchRe
|
|||
_fileSubSystem.listFiles(parentRemoteFile);
|
||||
}
|
||||
|
||||
String path = fileNode.getValue() + "/" + fileNode.getName();
|
||||
String path = fileNode.getValue() + "/" + fileNode.getName(); //$NON-NLS-1$
|
||||
IRemoteFile remoteFile = _fileSubSystem.getRemoteFileObject(path);
|
||||
|
||||
List contained = fileNode.getNestedData();
|
||||
|
|
|
@ -212,7 +212,7 @@ public class RemoteFilePropertyChangeListener implements IDomainListener,
|
|||
if (updated != null)
|
||||
{
|
||||
String classification = updated.getClassification();
|
||||
if (!classification.equals("file") && !classification.equals("directory"))
|
||||
if (!classification.equals("file") && !classification.equals("directory")) //$NON-NLS-1$ //$NON-NLS-2$
|
||||
{
|
||||
refreshParent = true;
|
||||
toUpdate.add(updated);
|
||||
|
|
|
@ -68,6 +68,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.files.ftp", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.files.ftp", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -49,11 +49,11 @@ public class FTPRemoteFile extends AbstractRemoteFile
|
|||
{
|
||||
if (isFile())
|
||||
{
|
||||
return "file";
|
||||
return "file"; //$NON-NLS-1$
|
||||
}
|
||||
else
|
||||
{
|
||||
return "directory";
|
||||
return "directory"; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -68,6 +68,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.dstore", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.files.local", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -57,9 +57,9 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
|
|||
public LocalFileSubSystemConfiguration()
|
||||
{
|
||||
super();
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
String osName = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
|
||||
|
||||
_isWindows = (osName.startsWith("windows"));
|
||||
_isWindows = (osName.startsWith("windows")); //$NON-NLS-1$
|
||||
setIsUnixStyle(!_isWindows);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public class LocalFile extends AbstractRemoteFile implements IRemoteFile
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -89,25 +89,25 @@ public class LocalVirtualFile extends LocalFile implements IVirtualRemoteFile
|
|||
|
||||
public void setVirtualFullPath(String string)
|
||||
{
|
||||
if (string.equals(""))
|
||||
if (string.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
_node.getChild().renameTo(_node.getChild().name);
|
||||
}
|
||||
else
|
||||
{
|
||||
_node.getChild().renameTo(string + "/" + _node.getChild().name);
|
||||
_node.getChild().renameTo(string + "/" + _node.getChild().name); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
public void setVirtualName(String string)
|
||||
{
|
||||
if (_node.getChild().path.equals(""))
|
||||
if (_node.getChild().path.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
_node.getChild().renameTo(string);
|
||||
}
|
||||
else
|
||||
{
|
||||
_node.getChild().renameTo(_node.getChild().path + "/" + string);
|
||||
_node.getChild().renameTo(_node.getChild().path + "/" + string); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -67,6 +67,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.processes.dstore", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.processes.dstore", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -67,6 +67,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.processes.dstore", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.processes.local", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -69,6 +69,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.shells.dstore", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.shells.dstore", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -69,6 +69,6 @@ public class Activator extends AbstractUIPlugin {
|
|||
* @return the image descriptor
|
||||
*/
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.shells.dstore", path);
|
||||
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.rse.subsystems.shells.local", path); //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -45,14 +45,14 @@ public class LocalShellSubSystemConfiguration extends ShellServiceSubSystemConfi
|
|||
*/
|
||||
public String getCommandSeparator()
|
||||
{
|
||||
String os = System.getProperty("os.name").toLowerCase();
|
||||
if (os.startsWith("win"))
|
||||
String os = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
|
||||
if (os.startsWith("win")) //$NON-NLS-1$
|
||||
{
|
||||
return "&";
|
||||
return "&"; //$NON-NLS-1$
|
||||
}
|
||||
else
|
||||
{
|
||||
return ";";
|
||||
return ";"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public class LocalServiceCommandShell extends ServiceCommandShell
|
|||
{
|
||||
super(cmdSS, hostShell);
|
||||
_patterns = new Patterns();
|
||||
_patterns.update("cmd");
|
||||
_patterns.update("cmd"); //$NON-NLS-1$
|
||||
ISubSystem[] sses = cmdSS.getHost().getSubSystems();
|
||||
for (int i = 0; i < sses.length; i++)
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ public class LocalServiceCommandShell extends ServiceCommandShell
|
|||
}
|
||||
|
||||
RemoteOutput output = null;
|
||||
String type = "stdout";
|
||||
String type = "stdout"; //$NON-NLS-1$
|
||||
if (parsedMsg != null)
|
||||
{
|
||||
type = parsedMsg.type;
|
||||
|
@ -97,7 +97,7 @@ public class LocalServiceCommandShell extends ServiceCommandShell
|
|||
if (parsedMsg != null)
|
||||
{
|
||||
String file = parsedMsg.file;
|
||||
if (type.equals("prompt"))
|
||||
if (type.equals("prompt")) //$NON-NLS-1$
|
||||
{
|
||||
_workingDir = file;
|
||||
output.setAbsolutePath(_workingDir);
|
||||
|
|
Loading…
Add table
Reference in a new issue