постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
@@ -24,9 +24,10 @@ public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
//--
|
||||
|
||||
@Override
|
||||
protected Current CurrentName() {
|
||||
return Current.ProjectArray;
|
||||
protected boolean needsCurrent() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
|
||||
@@ -13,7 +13,7 @@ public class RulesTree extends StyledTree {
|
||||
setRootVisible(false);
|
||||
expandRow(0);
|
||||
ExpandAll();
|
||||
Global.mainModule.set(Current.ParallelRegion, null);
|
||||
Global.mainModule.getProject().parallelRegions.getUI().dropCurrent();
|
||||
}
|
||||
@Override
|
||||
protected GraphMenu createMenu() {
|
||||
@@ -36,6 +36,7 @@ public class RulesTree extends StyledTree {
|
||||
region = (ParallelRegion) o;
|
||||
}
|
||||
}
|
||||
Global.mainModule.set(Current.ParallelRegion, region);
|
||||
//todo(?)
|
||||
Global.mainModule.getProject().parallelRegions.getUI().SetCurrentByPK(region.getPK());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Regions.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Tables.StyledCellLabel;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
||||
import _VisualDVM.ProjectData.SapforData.Regions.ParallelRegion;
|
||||
import javafx.util.Pair;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -46,9 +48,10 @@ public class ArrayAlignmentBar extends JToolBar {
|
||||
//это массивы из объявлений. прежде чем их трогать проверим а есть ли они в текущей области.
|
||||
// по адресам принадлежность смотреть нельзя.
|
||||
// на момент поиска массивов у них их еще нет. а вот ид совпадают.
|
||||
if (Global.mainModule.getParallelRegion().ArrayBelongsToRegion(d_link.id)) {
|
||||
ParallelRegion currentRegion = MainModule_.instance.getDb().getTable(ParallelRegion.class).getUI().getCurrent();
|
||||
if (currentRegion.ArrayBelongsToRegion(d_link.id)) {
|
||||
//инфа о массиве уже из области. имеющая адрес и бар.
|
||||
ProjectArray r_link = Global.mainModule.getParallelRegion().getArrayById(d_link.id);
|
||||
ProjectArray r_link = currentRegion.getArrayById(d_link.id);
|
||||
Pair<JSpinner, JSpinner> pair = r_link.bar.dimensions.get(dim);
|
||||
pair.getKey().setValue(K.getValue());
|
||||
pair.getValue().setValue(B.getValue());
|
||||
|
||||
@@ -12,8 +12,8 @@ public class ParallelRegionsForm extends DataSetControlForm<ParallelRegion> {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
@Override
|
||||
protected Current CurrentName() {
|
||||
return Current.ParallelRegionInfo;
|
||||
protected boolean needsCurrent() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
|
||||
@@ -14,9 +14,10 @@ public class ParallelVariantsForm extends DataSetControlForm<ParallelVariant> {
|
||||
public ParallelVariantsForm(DataSet<?, ParallelVariant> dataSource_in, JPanel mountPanel_in) {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Current CurrentName() {
|
||||
return Current.ParallelVariant;
|
||||
protected boolean needsCurrent() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
protected boolean hasCheckBox() {
|
||||
|
||||
Reference in New Issue
Block a user