- make plugin windows not open on start when tehy were left open on close

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8118 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 00b29bf4c5
commit fdd0253aac
  1. 3
      sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerTopComponent.java
  2. 4
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/TerrainEditorTopComponent.java
  3. 2
      sdk/jme3-vehicle-creator/src/com/jme3/gde/vehiclecreator/VehicleCreatorTopComponent.form
  4. 5
      sdk/jme3-vehicle-creator/src/com/jme3/gde/vehiclecreator/VehicleCreatorTopComponent.java

@ -614,6 +614,9 @@ private void emitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FI
tb.setVisible(true);
}
}
if (currentRequest == null) {
close();
}
}
@Override

@ -929,7 +929,9 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
@Override
public void componentOpened() {
super.componentOpened();
if (currentRequest == null) {
close();
}
}
@Override

@ -753,7 +753,7 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="52" max="32767" attributes="0"/>
<EmptySpace min="0" pref="56" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">

@ -788,12 +788,13 @@ public final class VehicleCreatorTopComponent extends TopComponent implements Sc
@Override
public void componentOpened() {
// TODO add custom code on component opening
if (currentRequest == null) {
close();
}
}
@Override
public void componentClosed() {
// TODO add custom code on component closing
if (currentRequest != null) {
SceneApplication.getApplication().closeScene(currentRequest);
}

Loading…
Cancel
Save