mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+23
-19
@@ -61,25 +61,7 @@ public class JavaEditBreakpointAction extends EditBreakpointAction {
|
||||
final JComponent mainPanel = propertiesPanel.getPanel();
|
||||
final String displayName = myBreakpointWithHighlighter.getDisplayName();
|
||||
|
||||
|
||||
final Runnable showMoreOptions = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
propertiesPanel.setMoreOptionsVisible(true);
|
||||
DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, null);
|
||||
}
|
||||
};
|
||||
final Balloon balloon =
|
||||
DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, showMoreOptions);
|
||||
propertiesPanel.setDelegate(new BreakpointPropertiesPanel.Delegate() {
|
||||
@Override
|
||||
public void showActionsPanel() {
|
||||
propertiesPanel.setActionsPanelVisible(true);
|
||||
balloon.hide();
|
||||
DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, showMoreOptions);
|
||||
}
|
||||
});
|
||||
balloon.addListener(new JBPopupListener() {
|
||||
final JBPopupListener saveOnClose = new JBPopupListener() {
|
||||
@Override
|
||||
public void beforeShown(LightweightWindowEvent event) {
|
||||
}
|
||||
@@ -92,7 +74,29 @@ public class JavaEditBreakpointAction extends EditBreakpointAction {
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
final Runnable showMoreOptions = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
propertiesPanel.setMoreOptionsVisible(true);
|
||||
final Balloon newBalloon = DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, null);
|
||||
newBalloon.addListener(saveOnClose);
|
||||
}
|
||||
};
|
||||
final Balloon balloon = DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, showMoreOptions);
|
||||
balloon.addListener(saveOnClose);
|
||||
|
||||
propertiesPanel.setDelegate(new BreakpointPropertiesPanel.Delegate() {
|
||||
@Override
|
||||
public void showActionsPanel() {
|
||||
propertiesPanel.setActionsPanelVisible(true);
|
||||
balloon.hide();
|
||||
final Balloon newBalloon = DebuggerUIUtil.showBreakpointEditor(mainPanel, displayName, whereToShow, gutterComponent, showMoreOptions);
|
||||
newBalloon.addListener(saveOnClose);
|
||||
}
|
||||
});
|
||||
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -171,8 +171,7 @@ public class LightweightHint extends UserDataHolderBase implements Hint {
|
||||
.setFont(hintHint.getTextFont())
|
||||
.setCalloutShift(hintHint.getCalloutShift())
|
||||
.setPositionChangeShift(hintHint.getPositionChangeX(), hintHint.getPositionChangeY())
|
||||
.setExplicitClose(hintHint.isExplicitClose())
|
||||
.setHint(true);
|
||||
.setExplicitClose(hintHint.isExplicitClose());
|
||||
myComponent.validate();
|
||||
myCurrentIdeTooltip = IdeTooltipManager.getInstance().show(tooltip, hintHint.isShowImmediately());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user