mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-05-06 19:39:42 +00:00
a17fd820b6
This commit introduces a new Python script, `fix_constructors_v2.py`, which automates the process of correcting constructor names in Java files based on Gradle error outputs. The script scans specified Java files, identifies constructors that do not match their class names, and updates them accordingly. It handles various edge cases, ensuring that only relevant constructors are modified. The script also provides feedback on the changes made during execution.
70 lines
2.3 KiB
Java
70 lines
2.3 KiB
Java
package com.efiAnalytics.apps.ts.tuningViews;
|
|
|
|
import java.awt.Component;
|
|
import java.awt.Rectangle;
|
|
import java.awt.event.MouseAdapter;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseMotionListener;
|
|
|
|
class TuningViewMouseAdapter extends MouseAdapter implements MouseMotionListener {
|
|
private Rectangle b = null;
|
|
|
|
TuningViewMouseAdapter(J paramJ) {}
|
|
|
|
public void mousePressed(MouseEvent paramMouseEvent) {
|
|
if (!this.a.isEnabled())
|
|
return;
|
|
Component component = (Component)paramMouseEvent.getSource();
|
|
if (component instanceof TuneViewComponent) {
|
|
if (paramMouseEvent.getButton() != 3 && !this.a.B()) {
|
|
boolean bool = ((paramMouseEvent.getModifiers() & 0x2) != 2 && paramMouseEvent.getButton() == 1) ? true : false;
|
|
this.a.a((TuneViewComponent)component, bool);
|
|
}
|
|
} else if (paramMouseEvent.getButton() != 3 && this.a.B()) {
|
|
this.a.C();
|
|
this.b = new Rectangle();
|
|
this.b.x = paramMouseEvent.getX();
|
|
this.b.y = paramMouseEvent.getY();
|
|
}
|
|
if (paramMouseEvent.getClickCount() == 2) {
|
|
this.a.t();
|
|
} else if (paramMouseEvent.getButton() == 3) {
|
|
this.a.a((Component)paramMouseEvent.getSource(), paramMouseEvent.getX(), paramMouseEvent.getY());
|
|
} else {
|
|
this.a.requestFocus();
|
|
}
|
|
this.a.repaint();
|
|
}
|
|
|
|
public void mouseReleased(MouseEvent paramMouseEvent) {
|
|
if (a() != null) {
|
|
(a()).width = Math.abs(paramMouseEvent.getX() - (a()).x);
|
|
(a()).height = Math.abs(paramMouseEvent.getY() - (a()).y);
|
|
(a()).x = ((a()).x < paramMouseEvent.getX()) ? (a()).x : paramMouseEvent.getX();
|
|
(a()).y = ((a()).y < paramMouseEvent.getY()) ? (a()).y : paramMouseEvent.getY();
|
|
this.a.a(a());
|
|
this.b = null;
|
|
this.a.repaint();
|
|
}
|
|
}
|
|
|
|
public void mouseDragged(MouseEvent paramMouseEvent) {
|
|
if (a() != null) {
|
|
(a()).width = paramMouseEvent.getX() - (a()).x;
|
|
(a()).height = paramMouseEvent.getY() - (a()).y;
|
|
this.a.repaint();
|
|
}
|
|
}
|
|
|
|
public Rectangle a() {
|
|
return this.b;
|
|
}
|
|
|
|
public void mouseMoved(MouseEvent paramMouseEvent) {}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/apps/ts/tuningViews/Q.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |