Commit 9676a87b authored by Andrey Filippov's avatar Andrey Filippov

Do not try to restore non-HDL project state if the selected file in the editor...

Do not try to restore non-HDL project state if the selected file in the editor is from non-HDL project
parent 4d3d451a
......@@ -1270,6 +1270,8 @@ public class DesignFlowView extends ViewPart implements ISelectionListener {
toggleLinkedTools.setChecked(!SelectedResourceManager.getDefault().isToolsLinked());
// Initialize VEditor database build
IResource HDLFile=SelectedResourceManager.getDefault().getChosenVerilogFile();
if ((HDLFile!=null) && HDLFile.exists()){
// restore properties from the project, overwrite global ones
IProject project;
if (selectedResource == null) {
......@@ -1277,10 +1279,7 @@ public class DesignFlowView extends ViewPart implements ISelectionListener {
} else {
project = HDLFile.getProject();
}
// restoreCurrentState(selectedResource.getProject()); // null OK
restoreCurrentState(project); // null OK
if ((HDLFile!=null) && HDLFile.exists()){
toolSequence.setUnfinishedBoot(memento,true);
if (VerilogPlugin.getPreferenceBoolean(PreferenceStrings.DEBUG_OTHER))
System.out.println("Initiating DB rebuild HDLFile="+HDLFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment