чистка лишних импортов.и фикс бага с сохранением тестов
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
package _VisualDVM.ProjectData.Files;
|
||||
import Common.CommonConstants;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.ProjectData.LanguageName;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -25,7 +22,7 @@ public class ProjectFile extends projectFile_ {
|
||||
public void AutoDetectProperties(String name_in) {
|
||||
super.AutoDetectProperties(name_in);
|
||||
if (fileType.equals(FileType.forbidden) || fileType.equals(FileType.none))
|
||||
state= FileState.Excluded;
|
||||
state = FileState.Excluded;
|
||||
}
|
||||
public String ImageKey() {
|
||||
//icons/files/Excludeddata.png
|
||||
@@ -52,7 +49,6 @@ public class ProjectFile extends projectFile_ {
|
||||
}
|
||||
return new ImageIcon(imageUrl);
|
||||
}
|
||||
|
||||
public String getUnixName() {
|
||||
return Utils_.toU(file.getName());
|
||||
}
|
||||
@@ -60,7 +56,6 @@ public class ProjectFile extends projectFile_ {
|
||||
public String toString() {
|
||||
return file.getName();
|
||||
}
|
||||
|
||||
public String getQSourceName() {
|
||||
return Utils_.DQuotes(getUnixName());
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.ProjectData.Files.UI.Editor;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Editor.BaseEditor;
|
||||
import Common.Visual.Menus.StyledPopupMenu;
|
||||
@@ -13,7 +12,6 @@ import _VisualDVM.Utils;
|
||||
import _VisualDVM.Visual.Editor.CaretInfo;
|
||||
import _VisualDVM.Visual.Interface.SPFEditorInterface;
|
||||
import _VisualDVM.Visual.Menus.MainEditorMenu;
|
||||
import _VisualDVM.Visual.Syntax.SPFEditorTheme;
|
||||
import javafx.util.Pair;
|
||||
import org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaHighlighter;
|
||||
|
||||
@@ -206,5 +204,4 @@ public class SPFEditor extends BaseEditor implements SPFEditorInterface {
|
||||
public int getCurrentSymbol() {
|
||||
return getCaretOffsetFromLineStart() + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,11 @@ public abstract class projectFile_ extends DBObject {
|
||||
public FileType fileType = FileType.none;
|
||||
public LanguageName languageName = LanguageName.n;
|
||||
public LanguageStyle style = LanguageStyle.none;
|
||||
public projectFile_() {
|
||||
}
|
||||
public projectFile_(File file_in) {
|
||||
AutoDetectProperties(file_in.getName());
|
||||
}
|
||||
@Override
|
||||
public void SynchronizeFields(DBObject src) {
|
||||
super.SynchronizeFields(src);
|
||||
@@ -18,10 +23,6 @@ public abstract class projectFile_ extends DBObject {
|
||||
languageName = src_.languageName;
|
||||
style = src_.style;
|
||||
}
|
||||
public projectFile_(){}
|
||||
public projectFile_(File file_in){
|
||||
AutoDetectProperties(file_in.getName());
|
||||
}
|
||||
public void AutoDetectProperties(String name_in) {
|
||||
//проверка запретных имен.
|
||||
String[] forbiddenNames = new String[]{
|
||||
|
||||
Reference in New Issue
Block a user