34 |
|
|
35 |
private PPView2 ppv; |
private PPView2 ppv; |
36 |
PPActions ppactions; |
PPActions ppactions; |
|
Space space; |
|
37 |
|
|
38 |
private PPMouseEvents m_ev; |
private PPMouseEvents m_ev; |
39 |
|
|
42 |
public VobScene vs; |
public VobScene vs; |
43 |
public AbstractViewContext context; |
public AbstractViewContext context; |
44 |
|
|
45 |
public PPMouseEvents(PPView2 pv, PPActions pa, Space s) { |
public PPMouseEvents(PPView2 pv, PPActions pa) { |
46 |
this.ppv = pv; |
this.ppv = pv; |
47 |
this.ppactions = pa; |
this.ppactions = pa; |
|
this.space = s; |
|
48 |
this.m_ev = this; |
this.m_ev = this; |
49 |
|
|
50 |
// press state saving |
// press state saving |
181 |
try { |
try { |
182 |
pa("Deleting paper!"); |
pa("Deleting paper!"); |
183 |
Cell c = context.getAccursed(); |
Cell c = context.getAccursed(); |
184 |
if (space.getHomeCell() != c) { |
if (ppv.space.getHomeCell() != c) { |
185 |
ppactions.deletePaper(c.getId() ); |
ppactions.deletePaper(c.getId() ); |
186 |
context.setAccursed(space.getHomeCell()); |
context.setAccursed(ppv.space.getHomeCell()); |
187 |
} |
} |
188 |
} catch (Exception e) { pa(e.getMessage()); } |
} catch (Exception e) { pa(e.getMessage()); } |
189 |
AbstractUpdateManager.chg(); |
AbstractUpdateManager.chg(); |