Skip to content

Commit

Permalink
add comment to a method that is not responsible for changing colors @…
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Nov 3, 2023
1 parent 5b07f13 commit a97b972
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ public static Integer getViewSetupIdFromBDVSource(Source<?> source)
@Override
public void selectedViewDescriptions(List< List< BasicViewDescription< ? extends BasicViewSetup > > > viewDescriptions)
{
// @pietzscht
// the entire code here has nothing to do with changing colors (I uncommented everything and it still changes colors)
final HashSet<ViewId> selectedNew = new HashSet<>();
viewDescriptions.forEach( vdl -> selectedNew.addAll( vdl ) );

Expand All @@ -348,8 +350,8 @@ public void selectedViewDescriptions(List< List< BasicViewDescription< ? extends
// reset and repaint Bdv if necessary
if ( bdvPopup.bdvRunning() )
{
FilteredAndGroupedExplorerPanel.resetBDVManualTransformations( bdvPopup.getBDV() );
bdvPopup.getBDV().getViewer().requestRepaint();
//FilteredAndGroupedExplorerPanel.resetBDVManualTransformations( bdvPopup.getBDV() );
//bdvPopup.getBDV().getViewer().requestRepaint();
}

// update selection
Expand All @@ -360,7 +362,6 @@ public void selectedViewDescriptions(List< List< BasicViewDescription< ? extends

theTransform = new AffineTransform3D();
resetSliders();

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public TranslateGroupManuallyPopup()

public class MyActionListener implements ActionListener
{

@Override
public void actionPerformed( final ActionEvent e )
{
Expand All @@ -71,19 +70,17 @@ public void actionPerformed( final ActionEvent e )
return;
}



if (!SpimData2.class.isInstance( panel.getSpimData() ))
{
IOFunctions.println( "Current dataset is not SpimData2, cannot open " + this.getClass().getSimpleName() );
return;
}

final List< ViewId > viewIds = ApplyTransformationPopup.getSelectedViews( panel );

final JFrame theFrame = new JFrame( "Move Views" );
TranslateGroupManuallyPanel tgmp = new TranslateGroupManuallyPanel( (SpimData2) panel.getSpimData(), viewIds, panel.bdvPopup(), theFrame);

((FilteredAndGroupedExplorerPanel< AbstractSpimData<?>, ? >) panel).addListener( tgmp );

// re-select everything
Expand All @@ -93,7 +90,7 @@ public void actionPerformed( final ActionEvent e )
theFrame.add( tgmp );
theFrame.pack();
theFrame.setVisible( true );

theFrame.addWindowListener( new WindowAdapter()
{
@Override
Expand Down

0 comments on commit a97b972

Please sign in to comment.