Update of /cvsroot/nice/eclipse/src/nice/eclipse/util
In directory sc8-pr-cvs1:/tmp/cvs-serv919/src/nice/eclipse/util
Added Files:
Resources.nice Resources.properties _util.nice
Log Message:
initial import
--- NEW FILE: Resources.nice ---
/**************************************************************************/
/* Nice Eclipse-Plugin */
/* (c) Alex Greif 2003 */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/**************************************************************************/
package nice.eclipse.util;
let String RESOURCE_BUNDLE= "nice.eclipse.util.Resources";
let ResourceBundle resourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);
String getResourceString(String key) {
try {
return resourceBundle.getString(key);
} catch (MissingResourceException e) {
return "!" + key + "!";
}
}
String getFormattedResourceString(String key, String arg) {
return getFormattedResourceString(key, [arg]);
}
String getFormattedResourceString(String key, String[] args) {
return MessageFormat.format(getResourceString(key), args);
}
ResourceBundle getResourceBundle() {
return resourceBundle;
}
--- NEW FILE: Resources.properties ---
#########################################
# Wizards
#########################################
NewProjectCreationWizard.windowTitle=New Nice Project
NewProjectCreationWizard.projectCreationMessage=Creating new Nice Project
WizardNewProjectCreationPage.pageName=Create Nice Project
WizardNewProjectCreationPage.pageTitle=Nice Project
WizardNewProjectCreationPage.pageDescription=Create a new Nice Project
--- NEW FILE: _util.nice ---
/**************************************************************************/
/* Nice Eclipse-Plugin */
/* (c) Alex Greif 2003 */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/**************************************************************************/
package nice.eclipse.util;
import java.text.*;
import java.util.*;
import org.eclipse.core.resources.*;
<!T> String formatMessage(String, T[]) = native String MessageFormat.format(String, Object[]);
//String formatMessage(String, String[]) = native String MessageFormat.format(String, Object[]);
IWorkspace getWorkspace() = native IWorkspace ResourcesPlugin.getWorkspace();
|