Skip to content

Commit 06f1d99

Browse files
committed
removing dead code
1 parent ebb570a commit 06f1d99

1 file changed

Lines changed: 0 additions & 163 deletions

File tree

java/src/processing/mode/java/debug/VariableInspector.java

Lines changed: 0 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -116,107 +116,14 @@ public VariableInspector(final JavaEditor editor) {
116116
// If it'll fit, place it to the right of the editor window
117117
setLocation(x, editor.getY() + VERTICAL_OFFSET);
118118
}
119-
120-
/*
121-
bgColor = mode.getColor("buttons.bgcolor");
122-
statusFont = mode.getFont("buttons.status.font");
123-
statusColor = mode.getColor("buttons.status.color");
124-
// modeTitle = mode.getTitle().toUpperCase();
125-
modeTitle = mode.getTitle();
126-
modeTextFont = mode.getFont("mode.button.font");
127-
modeButtonColor = mode.getColor("mode.button.color");
128-
*/
129119
}
130120

131121

132-
/*
133-
Container createToolbar() {
134-
final Mode mode = editor.getMode();
135-
Box box = Box.createHorizontalBox();
136-
137-
continueButton =
138-
new EditorButton(mode, "theme/debug/continue",
139-
Language.text("toolbar.debug.continue")) {
140-
@Override
141-
public void actionPerformed(ActionEvent e) {
142-
Logger.getLogger(VariableInspector.class.getName()).log(Level.INFO, "Invoked 'Continue' toolbar button");
143-
editor.debugger.continueDebug();
144-
}
145-
};
146-
box.add(continueButton);
147-
box.add(Box.createHorizontalStrut(GAP));
148-
149-
stepButton =
150-
new EditorButton(mode, "theme/debug/step",
151-
Language.text("toolbar.debug.step"),
152-
Language.text("toolbar.debug.step_into")) {
153-
@Override
154-
public void actionPerformed(ActionEvent e) {
155-
if (isShiftDown()) {
156-
Logger.getLogger(VariableInspector.class.getName()).log(Level.INFO, "Invoked 'Step Into' toolbar button");
157-
editor.debugger.stepInto();
158-
} else {
159-
Logger.getLogger(VariableInspector.class.getName()).log(Level.INFO, "Invoked 'Step' toolbar button");
160-
editor.debugger.stepOver();
161-
}
162-
}
163-
};
164-
box.add(stepButton);
165-
box.add(Box.createHorizontalStrut(GAP));
166-
167-
breakpointButton =
168-
new EditorButton(mode, "theme/debug/breakpoint",
169-
Language.text("toolbar.debug.toggle_breakpoints")) {
170-
@Override
171-
public void actionPerformed(ActionEvent e) {
172-
Logger.getLogger(VariableInspector.class.getName()).log(Level.INFO, "Invoked 'Toggle Breakpoint' toolbar button");
173-
editor.debugger.toggleBreakpoint();
174-
}
175-
};
176-
box.add(breakpointButton);
177-
box.add(Box.createHorizontalStrut(GAP));
178-
179-
JLabel label = new JLabel();
180-
box.add(label);
181-
continueButton.setRolloverLabel(label);
182-
stepButton.setRolloverLabel(label);
183-
breakpointButton.setRolloverLabel(label);
184-
185-
// the rest is all gaps
186-
box.add(Box.createHorizontalGlue());
187-
box.setBorder(new EmptyBorder(GAP, GAP, GAP, GAP));
188-
189-
// prevent the toolbar from getting taller than its default
190-
box.setMaximumSize(new Dimension(getMaximumSize().width, getPreferredSize().height));
191-
return box;
192-
}
193-
*/
194-
195-
196122
Container createScrollPane() {
197123
JScrollPane scrollPane = new JScrollPane();
198124
tree = new Outline();
199125
scrollPane.setViewportView(tree);
200126

201-
/*
202-
GroupLayout layout = new GroupLayout(getContentPane());
203-
getContentPane().setLayout(layout);
204-
layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
205-
.addGap(0, 400, Short.MAX_VALUE)
206-
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
207-
.addComponent(scrollPane,
208-
GroupLayout.DEFAULT_SIZE,
209-
400, Short.MAX_VALUE)));
210-
layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
211-
.addGap(0, 300, Short.MAX_VALUE)
212-
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
213-
.addComponent(scrollPane,
214-
GroupLayout.Alignment.TRAILING,
215-
GroupLayout.DEFAULT_SIZE,
216-
300, Short.MAX_VALUE)));
217-
pack();
218-
*/
219-
220127
// setup Outline
221128
rootNode = new DefaultMutableTreeNode("root");
222129
builtins = new DefaultMutableTreeNode("Processing");
@@ -256,76 +163,6 @@ Container createScrollPane() {
256163
}
257164

258165

259-
/*
260-
protected void activateContinue() {
261-
}
262-
263-
264-
protected void deactivateContinue() {
265-
}
266-
267-
268-
protected void activateStep() {
269-
}
270-
271-
272-
protected void deactivateStep() {
273-
}
274-
*/
275-
276-
277-
/*
278-
// Keeps the debug window adjacent the editor at all times.
279-
class EditorFollower implements ComponentListener {
280-
281-
@Override
282-
public void componentShown(ComponentEvent e) {
283-
if (editor.isDebuggerEnabled()) {
284-
// updateBounds();
285-
setVisible(true);
286-
}
287-
}
288-
289-
@Override
290-
public void componentHidden(ComponentEvent e) {
291-
if (isVisible()) {
292-
setVisible(false);
293-
}
294-
}
295-
296-
@Override
297-
public void componentResized(ComponentEvent e) {
298-
if (isVisible()) {
299-
updateBounds();
300-
}
301-
}
302-
303-
@Override
304-
public void componentMoved(ComponentEvent e) {
305-
if (isVisible()) {
306-
updateBounds();
307-
}
308-
}
309-
}
310-
311-
312-
private void updateBounds() {
313-
setBounds(editor.getX() + editor.getWidth(),
314-
editor.getY() + VERTICAL_OFFSET,
315-
getPreferredSize().width,
316-
editor.getHeight() - VERTICAL_OFFSET*2);
317-
}
318-
319-
320-
public void setVisible(boolean visible) {
321-
if (visible) {
322-
updateBounds();
323-
}
324-
super.setVisible(visible);
325-
}
326-
*/
327-
328-
329166
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
330167

331168

0 commit comments

Comments
 (0)