File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/com/magento/idea/magento2plugin/project Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1818import com .magento .idea .magento2plugin .indexes .IndexManager ;
1919import com .magento .idea .magento2plugin .init .ConfigurationManager ;
2020import com .magento .idea .magento2plugin .magento .packages .MagentoComponentManager ;
21+ import com .magento .idea .magento2plugin .project .util .GetProjectBasePath ;
2122import com .magento .idea .magento2plugin .project .validator .SettingsFormValidator ;
2223import com .magento .idea .magento2plugin .util .magento .MagentoVersionUtil ;
2324import java .awt .event .MouseAdapter ;
@@ -197,13 +198,22 @@ private void addPathListener() {
197198 "Magento Root Directory" ,
198199 "Choose Magento root directory" ,
199200 this .magentoPath ,
200- null ,
201+ project ,
201202 descriptor ,
202203 TextComponentAccessor .TEXT_FIELD_WHOLE_TEXT
203204 ) {
204205 @ Nullable
205206 @ Override
206207 protected VirtualFile getInitialFile () {
208+
209+ final String text = getComponentText ();
210+ if (text .length () == 0 ) {
211+ final VirtualFile file = GetProjectBasePath .execute (project );
212+ if (file != null ) {
213+ return file ;
214+ }
215+ }
216+
207217 return super .getInitialFile ();
208218 }
209219 };
You can’t perform that action at this time.
0 commit comments