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 18
18
import com .magento .idea .magento2plugin .indexes .IndexManager ;
19
19
import com .magento .idea .magento2plugin .init .ConfigurationManager ;
20
20
import com .magento .idea .magento2plugin .magento .packages .MagentoComponentManager ;
21
+ import com .magento .idea .magento2plugin .project .util .GetProjectBasePath ;
21
22
import com .magento .idea .magento2plugin .project .validator .SettingsFormValidator ;
22
23
import com .magento .idea .magento2plugin .util .magento .MagentoVersionUtil ;
23
24
import java .awt .event .MouseAdapter ;
@@ -197,13 +198,22 @@ private void addPathListener() {
197
198
"Magento Root Directory" ,
198
199
"Choose Magento root directory" ,
199
200
this .magentoPath ,
200
- null ,
201
+ project ,
201
202
descriptor ,
202
203
TextComponentAccessor .TEXT_FIELD_WHOLE_TEXT
203
204
) {
204
205
@ Nullable
205
206
@ Override
206
207
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
+
207
217
return super .getInitialFile ();
208
218
}
209
219
};
You can’t perform that action at this time.
0 commit comments