Revision 22616 branches/v10/extensions/extPublish/src/org/gvsig/publish/ProjectPublication.java
ProjectPublication.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package org.gvsig.publish; |
42 | 42 |
|
43 |
import java.util.Iterator; |
|
44 |
|
|
43 | 45 |
import org.gvsig.publish.gui.properties.PublicationPropertiesController; |
44 | 46 |
import org.gvsig.publish.gui.publish.PublishController; |
45 | 47 |
import org.gvsig.publish.gui.selectServer.SelectServerController; |
... | ... | |
47 | 49 |
import org.gvsig.publish.infoproject.ProjectInfoFactory; |
48 | 50 |
import org.gvsig.publish.serversmodel.Publication; |
49 | 51 |
|
52 |
import com.iver.andami.PluginServices; |
|
50 | 53 |
import com.iver.andami.ui.mdiManager.IWindow; |
51 | 54 |
import com.iver.cit.gvsig.fmap.DriverException; |
52 | 55 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
... | ... | |
113 | 116 |
public IWindow createWindow() { |
114 | 117 |
|
115 | 118 |
IProjectInfo projectInfo = ProjectInfoFactory.getProjectInfo(getProject()); |
116 |
getPublication().setProjectInfo(projectInfo); |
|
117 |
|
|
118 |
//Creates the controllers |
|
119 |
//addResourceCtrl = new AddResourceController(); |
|
119 |
Iterator it= getPublication().setProjectInfo(projectInfo).iterator(); |
|
120 |
String message=""; |
|
121 |
while (it.hasNext()){ |
|
122 |
message=message +" " +it.next().toString(); |
|
123 |
} |
|
124 |
//create controllers |
|
120 | 125 |
publishCtrl = new PublishController(); |
121 |
slcSrvCtrl = new SelectServerController(); |
|
126 |
slcSrvCtrl = new SelectServerController(); |
|
127 |
//initial message |
|
128 |
if (!message.equals("")){ |
|
129 |
String aux = PluginServices.getText(this, "publish_layerinfo_not_available"); |
|
130 |
message = aux + message; |
|
131 |
publishCtrl.setInitialMessage(message); |
|
132 |
} |
|
122 | 133 |
|
123 | 134 |
//Add observers |
124 | 135 |
getPublication().addObserver(publishCtrl); |
Also available in: Unified diff