This commit is contained in:
bancika
2011-01-20 21:47:09 +00:00
parent c875060e6a
commit 90f760dcd1
2 changed files with 3 additions and 3 deletions
@@ -147,7 +147,7 @@ public class InstantiationManager {
} }
} }
setDefaultProperties(component); fillWithDefaultProperties(component);
return component; return component;
} }
@@ -162,7 +162,7 @@ public class InstantiationManager {
* @throws IllegalAccessException * @throws IllegalAccessException
* @throws InvocationTargetException * @throws InvocationTargetException
*/ */
public void setDefaultProperties(Object object) throws IllegalArgumentException, public void fillWithDefaultProperties(Object object) throws IllegalArgumentException,
IllegalAccessException, InvocationTargetException { IllegalAccessException, InvocationTargetException {
// Extract properties. // Extract properties.
List<PropertyWrapper> properties = ComponentProcessor.getInstance().extractProperties( List<PropertyWrapper> properties = ComponentProcessor.getInstance().extractProperties(
@@ -188,7 +188,7 @@ public class Presenter implements IPlugInPort {
LOG.info("createNewFile()"); LOG.info("createNewFile()");
try { try {
Project project = new Project(); Project project = new Project();
instantiationManager.setDefaultProperties(project); instantiationManager.fillWithDefaultProperties(project);
loadProject(project, true); loadProject(project, true);
projectFileManager.fireFileStatusChanged(); projectFileManager.fireFileStatusChanged();
} catch (Exception e) { } catch (Exception e) {