bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void initialize(int aType, String aName) throws Exception { this.itsType = aType; this.itsName = aName; props.put($Name, aName); } | public void initialize(int aType, String aName) throws Exception { int itsType = aType; this.itsName = aName; props.put($Name, aName); } | 3,240,284 |
public void setArguments(String args) { this.itsArguments = args; props.put($Arguments, args); } | public void setArguments(String args) { String itsArguments = args; props.put($Arguments, args); } | 3,240,285 |
public void setDescription(String description) { this.itsDescription = description; props.put($Comment, description); } | public void setDescription(String description) { String itsDescription = description; props.put($Comment, description); } | 3,240,286 |
public void setIconLocation(String path, int index) { this.itsIconPath = path; this.itsIconIndex = index; props.put($Icon, path); // } | public void setIconLocation(String path, int index) { this.itsIconPath = path; this.itsIconIndex = index; props.put($Icon, path); // } | 3,240,287 |
public void setLinkType(int aType) throws IllegalArgumentException { this.itsType = aType; } | public void setLinkType(int aType) throws IllegalArgumentException { int itsType = aType; } | 3,240,288 |
public void setShowCommand(int show) { this.itsShow = show; } | public void setShowCommand(int show) { int itsShow = show; } | 3,240,289 |
public void setTargetPath(String aPath) { this.itsTargetPath = aPath; StringTokenizer whiteSpaceTester = new StringTokenizer( aPath ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $E_QUOT,QM ); props.put($Exec, aPath); } | public void setTargetPath(String aPath) { String itsTargetPath = aPath; StringTokenizer whiteSpaceTester = new StringTokenizer( aPath ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $E_QUOT,QM ); props.put($Exec, aPath); } | 3,240,290 |
public void setWorkingDirectory(String aDirectory) { this.itsWorkingDirectory = aDirectory; StringTokenizer whiteSpaceTester = new StringTokenizer( aDirectory ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $P_QUOT,QM ); props.put($Path, aDirectory); ... | public void setWorkingDirectory(String aDirectory) { String itsWorkingDirectory = aDirectory; StringTokenizer whiteSpaceTester = new StringTokenizer( aDirectory ); if( whiteSpaceTester.countTokens() > 1 ) props.put( $P_QUOT,QM ); props.put($Path, aDirectory); ... | 3,240,291 |
private File writeShortCut(String target, String shortCutDef) { File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar))); if (!targetPath.exists()) { targetPath.mkdirs(); this.createdDirectory = targetP... | private File writeShortCut(String target, String shortCutDef) { File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar))); if (!targetPath.exists()) { targetPath.mkdirs(); this.createdDirectory = targetP... | 3,240,292 |
public GenericObjectPool() { this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_TEST_WHILE_IDLE);... | public GenericObjectPool() { this(null,DEFAULT_MAX_ACTIVE,DEFAULT_WHEN_EXHAUSTED_ACTION,DEFAULT_MAX_WAIT,DEFAULT_MAX_IDLE,DEFAULT_MIN_IDLE,DEFAULT_TEST_ON_BORROW,DEFAULT_TEST_ON_RETURN,DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,DEFAULT_NUM_TESTS_PER_EVICTION_RUN,DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,DEFAULT_... | 3,240,293 |
public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), ... | public XInfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We add the components infoLabel = new JLabel(parent.langpack.getString("InfoPanel.info"), ... | 3,240,296 |
private void loadInfo() { try { // We read it info = ResourceManager.getInstance().getTextResource("XInfoPanel.info"); } catch (Exception err) { info = "Error : could not load the info text !"; } } | private void loadInfo() { try { // We read it info = ResourceManager.getInstance().getTextResource("XInfoPanel.info"); } catch (Exception err) { info = "Error : could not load the info text !"; } } | 3,240,297 |
private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | 3,240,298 |
private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor (idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | 3,240,299 |
private void buildGUI() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(buildChannelGraphicsPanel()); add(new JSeparator()); add(buildControlsPane()); add(new JSeparator()); add(buildPane()); } | private void buildGUI() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(buildChannelGraphicsPanel()); add(new JSeparator()); add(buildControlsPane()); add(new JSeparator()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p,BoxLayout.X_AXIS)); p.add(buildPane(... | 3,240,300 |
private JPanel buildPane() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS)); p.add(noiseReduction); p.add(histogramButton); return p; } | private JPanel buildPane() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS)); p.add(noiseReduction); p.add(histogramButton); return p; } | 3,240,301 |
void viewHierarchy(Set images, int index) { HiViewerUIF presentation = HiViewerUIF.getInstance(control); HiViewer hiViewer = presentation.createHiViewer(); HiLoader loader = null; switch (index) { case HiViewerCtrl.VIEW_IN_PDI: loader = new CGCILoader(this, h... | void viewHierarchy(Set images, int index) { HiViewerUIF presentation = HiViewerUIF.getInstance(control); HiViewer hiViewer = presentation.createHiViewer(); HiLoader loader = null; switch (index) { case HiViewerCtrl.VIEW_IN_PDI: loader = new CGCILoader(this, h... | 3,240,302 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,303 |
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new LinkedList(); ... | public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new LinkedList(); ... | 3,240,304 |
public synchronized void evict() throws Exception { Object key = null; if (_recentlyEvictedKeys == null) { _recentlyEvictedKeys = new HashSet(_poolMap.size()); } Set remainingKeys = new HashSet(_poolMap.keySet()); remainingKeys.removeAll(_recentlyEvictedKeys); It... | public synchronized void evict() throws Exception { Object key = null; if (_recentlyEvictedKeys == null) { _recentlyEvictedKeys = new HashSet(_poolMap.size()); } Set remainingKeys = new HashSet(_poolMap.keySet()); remainingKeys.removeAll(_recentlyEvictedKeys); It... | 3,240,305 |
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | 3,240,306 |
private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if ("YES".equals(value)) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | 3,240,307 |
private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if ("TRUE".equals(value)) { return (true); } else if (valu... | 3,240,308 |
private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if ("ON"... | 3,240,309 |
private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | private boolean attributeIsTrue(XMLElement element, String name) { String value = element.getAttribute(name, "").toUpperCase(); if (value.equals("YES")) { return (true); } else if (value.equals("TRUE")) { return (true); } else if (valu... | 3,240,310 |
private void buildAlternateUI() { layout = new GridBagLayout(); constraints = new GridBagConstraints(); setLayout(layout); // ---------------------------------------------------- // static text a the top of the panel, that apologizes // about the fact that we can not cre... | private void buildAlternateUI() { layout = new GridBagLayout(); constraints = new GridBagConstraints(); setLayout(layout); // ---------------------------------------------------- // static text a the top of the panel, that apologizes // about the fact that we can not cre... | 3,240,311 |
private void buildUI(File groups) { itsProgramFolder = groups; constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fi... | private void buildUI(File groups) { File itsProgramFolder = groups; constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constrain... | 3,240,312 |
private void buildUI(File groups) { itsProgramFolder = groups; constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fi... | private void buildUI(File groups) { itsProgramFolder = groups; constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fi... | 3,240,313 |
private void createShortcuts() { if (!create) return; ShortcutData data; String tmpgn; for (int i = 0; i < shortcuts.size(); i++) { data = (ShortcutData) shortcuts.elementAt(i); try { //The cloning guarantees that data.subgroup wi... | private void createShortcuts() { if (!create) return; ShortcutData data; String tmpgn; for (int i = 0; i < shortcuts.size(); i++) { data = (ShortcutData) shortcuts.elementAt(i); try { //The cloning guarantees that data.subgroup wi... | 3,240,314 |
public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); /*if (eventSource != null) { System.out.println("Instance Of : " + eventSource.getClass().getName()); }*/ // ---------------------------------------------------- // create... | public void actionPerformed(ActionEvent event) { Object eventSource = event.getSource(); /*if (eventSource != null) { System.out.println("Instance Of : " + eventSource.getClass().getName()); }*/ // ---------------------------------------------------- // create... | 3,240,315 |
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | 3,240,316 |
private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | private void analyzeShortcutSpec() { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } XMLElement skipper = spec.getFirstChildNamed(SPEC_KEY_SKIP_IFNOT_SUPPORTED); skipIfNotSupported = (skipper != null); // ------------------------------... | 3,240,317 |
private void buildUI(File groups) { itsProgramFolder = groups; // constraints.gridx = 1; // constraints.gridy = line+1; // constraints.gridwidth = 3; // constraints.gridheight = 1; constraints.insets = new Insets(10, 10, 0, 0); // Add a CheckBox which enables the ... | private void buildUI(File groups) { // constraints.gridx = 1; // constraints.gridy = line+1; // constraints.gridwidth = 3; // constraints.gridheight = 1; constraints.insets = new Insets(10, 10, 0, 0); // Add a CheckBox which enables the user to entirely supress s... | 3,240,318 |
private void buildUI(File groups) { itsProgramFolder = groups; // constraints.gridx = 1; // constraints.gridy = line+1; // constraints.gridwidth = 3; // constraints.gridheight = 1; constraints.insets = new Insets(10, 10, 0, 0); // Add a CheckBox which enables the ... | private void buildUI(File groups) { itsProgramFolder = groups; // constraints.gridx = 1; // constraints.gridy = line+1; // constraints.gridwidth = 3; // constraints.gridheight = 1; constraints.insets = new Insets(10, 10, 0, 0); // Add a CheckBox which enables the ... | 3,240,319 |
public void panelActivate() { try { readShortcutSpec(); } catch (Throwable exception) { System.out.println("could not read shortcut spec!"); exception.printStackTrace(); } // Create the UI elements try { sh... | public void panelActivate() { try { readShortcutSpec(); } catch (Throwable exception) { System.out.println("could not read shortcut spec!"); exception.printStackTrace(); } // Create the UI elements try { sh... | 3,240,320 |
public void makeXMLData (XMLElement panelRoot) { // ---------------------------------------------------- // if there are no shortcuts to create, shortcuts are // not supported, or we should simulate that they are // not supported, then we have nothing to add. Just // return // ---------------------... | public void makeXMLData (XMLElement panelRoot) { // ---------------------------------------------------- // if there are no shortcuts to create, shortcuts are // not supported, or we should simulate that they are // not supported, then we have nothing to add. Just // return // ---------------------... | 3,240,322 |
private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor(idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | private void parseText() { try { // Initialize the variable substitutor VariableSubstitutor vs = new VariableSubstitutor(idata.getVariableValueMap()); // Parses the info text info = vs.substitute(info, null); } catch (Exception err) { err.printStackTrace(); } } | 3,240,323 |
public Frontend() throws Exception { super(); // Sets the Kunststoff L&F as the right one KunststoffLookAndFeel klnf = new KunststoffLookAndFeel(); UIManager.setLookAndFeel(klnf); klnf.setCurrentTheme(new IzPackKMetalTheme()); // Shows the splash window splashWindow = new FrontendSplashWindow();... | public Frontend() throws Exception { super(); // Sets the Kunststoff L&F as the right one KunststoffLookAndFeel klnf = new KunststoffLookAndFeel(); UIManager.setLookAndFeel(klnf); klnf.setCurrentTheme(new IzPackKMetalTheme()); // Shows the splash window splashWindow = new FrontendSplashWindow();... | 3,240,324 |
public Frontend() throws Exception { super(); // Sets the Kunststoff L&F as the right one KunststoffLookAndFeel klnf = new KunststoffLookAndFeel(); UIManager.setLookAndFeel(klnf); klnf.setCurrentTheme(new IzPackKMetalTheme()); // Shows the splash window splashWindow = new FrontendSplashWindow();... | public Frontend() throws Exception { super(); // Sets the Kunststoff L&F as the right one KunststoffLookAndFeel klnf = new KunststoffLookAndFeel(); UIManager.setLookAndFeel(klnf); klnf.setCurrentTheme(new IzPackKMetalTheme()); // Shows the splash window splashWindow = new FrontendSplashWindow();... | 3,240,325 |
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new C... | public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new C... | 3,240,326 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | 3,240,327 |
private void paintScaleBar(Graphics2D g2D, int x, int y, int l, String s) { FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight()/3; int size = s.length()*charWidth; g2D.setColor(UNIT_BAR_COLOR); g2D.drawString(s, x+... | private void paintScaleBar(Graphics2D g2D, int x, int y, int l, String s) { FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight()/3; g2D.setColor(UNIT_BAR_COLOR); g2D.drawString(s, x+l/2-size/2+1, y-hFont); g2... | 3,240,328 |
private void paintScaleBar(Graphics2D g2D, int x, int y, int l, String s) { FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight()/3; int size = s.length()*charWidth; g2D.setColor(UNIT_BAR_COLOR); g2D.drawString(s, x+... | private void paintScaleBar(Graphics2D g2D, int x, int y, int l, String s) { FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight()/3; int size = s.length()*charWidth; g2D.setColor(UNIT_BAR_COLOR); g2D.drawString(s, x+... | 3,240,329 |
protected synchronized void startEvictor(long delay) { if(null != _evictor) { _evictor.cancel(); _evictor = null; } if(delay > 0) { _evictor = new Evictor(delay); Thread t = new Thread(_evictor); t.setDaemon(true); t.start(); ... | protected synchronized void startEvictor(long delay) { if(null != _evictor) { _evictor.cancel(); _evictor = null; } if(delay > 0) { _evictor = new Evictor(delay); Thread t = new Thread(_evictor); t.setDaemon(true); t.start(); ... | 3,240,331 |
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == quitButton) System.exit(0); else if (src == destroyButton) { Destroyer destroyer = new Destroyer(installPath, targetDestroyCheckbox.isSelected(), new DestroyerHandler());... | public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == quitButton) System.exit(0); else if (src == destroyButton) { Destroyer destroyer = new Destroyer(installPath, targetDestroyCheckbox.isSelected(), new DestroyerHandler());... | 3,240,332 |
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == quitButton) System.exit(0); else if (src == destroyButton) { Destroyer destroyer = new Destroyer(installPath, targetDestroyCheckbox.isSelected(), new DestroyerHandler());... | public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == quitButton) System.exit(0); else if (src == destroyButton) { Destroyer destroyer = new Destroyer(installPath, targetDestroyCheckbox.isSelected(), new DestroyerHandler());... | 3,240,333 |
public int askQuestion (String title, String question, int choices) { return askQuestion (title, question, choices, -1); } | public int askQuestion (String title, String question, int choices) { return askQuestion (title, question, choices, -1); } | 3,240,334 |
public void emitError(String title, String error) { progressBar.setString(error); JOptionPane.showMessageDialog(null, error, title, JOptionPane.OK_CANCEL_OPTION); } | public void emitError(String title, String error) { progressBar.setString(error); JOptionPane.showMessageDialog( null, error, title, JOptionPane.OK_CANCEL_OPTION); } | 3,240,335 |
public void emitNotification (String text) { } | public void emitNotification(String text) { } | 3,240,336 |
public boolean emitWarning (String title, String text) { return (JOptionPane.showConfirmDialog(null, text, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION); } | public boolean emitWarning(String title, String text) { return (JOptionPane.showConfirmDialog(null, text, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION); } | 3,240,337 |
public boolean emitWarning (String title, String text) { return (JOptionPane.showConfirmDialog(null, text, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION); } | public boolean emitWarning (String title, String text) { return (JOptionPane.showConfirmDialog(null, text, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION); } | 3,240,338 |
public void nextStep (String step_name, int step_no, int no_of_substeps) { } | public void nextStep(String step_name, int step_no, int no_of_substeps) { } | 3,240,339 |
public void startAction (String name, int max) { progressBar.setMinimum(0); progressBar.setMaximum(max); blockGUI(); } | public void startAction(String name, int max) { progressBar.setMinimum(0); progressBar.setMaximum(max); blockGUI(); } | 3,240,340 |
public void stopAction () { progressBar.setString(langpack.getString("InstallPanel.finished")); targetDestroyCheckbox.setEnabled(false); destroyButton.setEnabled(false); releaseGUI(); } | public void stopAction() { progressBar.setString(langpack.getString("InstallPanel.finished")); targetDestroyCheckbox.setEnabled(false); destroyButton.setEnabled(false); releaseGUI(); } | 3,240,341 |
public UninstallerFrame() throws Exception { super("IzPack - Uninstaller"); // Initializations langpack = new LocaleDatabase(getClass().getResourceAsStream("/langpack.xml")); getInstallPath(); icons = new IconsDatabase(); loadIcons(); UIManager.put("OptionPane.yesButtonText", langpack.getString(... | public UninstallerFrame() throws Exception { super("IzPack - Uninstaller"); // Initializations langpack = new LocaleDatabase(getClass().getResourceAsStream("/langpack.xml")); getInstallPath(); icons = new IconsDatabase(); loadIcons(); UIManager.put("OptionPane.yesButtonText", langpack.getString(... | 3,240,342 |
public UninstallerFrame() throws Exception { super("IzPack - Uninstaller"); // Initializations langpack = new LocaleDatabase(getClass().getResourceAsStream("/langpack.xml")); getInstallPath(); icons = new IconsDatabase(); loadIcons(); UIManager.put("OptionPane.yesButtonText", langpack.getString(... | public UninstallerFrame() throws Exception { super("IzPack - Uninstaller"); // Initializations langpack = new LocaleDatabase(getClass().getResourceAsStream("/langpack.xml")); getInstallPath(); icons = new IconsDatabase(); loadIcons(); UIManager.put("OptionPane.yesButtonText", langpack.getString(... | 3,240,343 |
private void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy) { gbc.gridx = gx; gbc.gridy = gy; gbc.gridwidth = gw; gbc.gridheight = gh; gbc.weightx = wx; gbc.weighty = wy; } | private void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy) { gbc.gridx = gx; gbc.gridy = gy; gbc.gridwidth = gw; gbc.gridheight = gh; gbc.weightx = wx; gbc.weighty = wy; } | 3,240,344 |
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | 3,240,345 |
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | 3,240,346 |
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | 3,240,347 |
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | 3,240,348 |
private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | private void buildGUI() { // We initialize our layout JPanel contentPane = (JPanel) getContentPane(); layout = new GridBagLayout(); contentPane.setLayout(layout); gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Insets(5, 5, 5, 5); // We prepare our action handler ActionsH... | 3,240,349 |
private void centerFrame(Window frame) { Dimension frameSize = frame.getSize(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2 - 10); } | private void centerFrame(Window frame) { Dimension frameSize = frame.getSize(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2 - 10); } | 3,240,350 |
private void divideLabel () { int width; int startPos; int currentPos; int lastPos; int endPos; line.clear (); FontMetrics fm = this.getFontMetrics (this.getFont ()); startPos = 0; currentPos = startPos; lastPos = currentPos; endPos = (labelText... | private void divideLabel () { int width; int startPos; int currentPos; int lastPos; int endPos; line.clear (); FontMetrics fm = this.getFontMetrics (this.getFont ()); startPos = 0; currentPos = startPos; lastPos = currentPos; endPos = (labelText... | 3,240,351 |
public InfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the text loadInfo(); // We add the components infoLabel = new JLabel(parent.l... | public InfoPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the text loadInfo(); // We add the components infoLabel = new JLabel(parent.l... | 3,240,352 |
private void loadInfo() { try { String resNamePrifix = "InfoPanel.info"; info = ResourceManager.getInstance().getTextResource(resNamePrifix); } catch (Exception err) { info = "Error : could not load the info text !"; } } | private void loadInfo() { try { String resNamePrifix = "InfoPanel.info"; info = ResourceManager.getInstance().getTextResource(resNamePrifix); } catch (Exception err) { info = "Error : could not load the info text !"; } } | 3,240,353 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | generateThirdBodyReactionList(p_reactionModel, p_beginStatus, p_temperature, p_pressure); generateThirdBodyReactionList(p_reactionModel, p_beginStatus, p_temperature, p_pressure); generateThirdBodyReactionList(p_reactionModel, p_beginStatus, p_temperature, p_pressure); generateThirdBodyReactionList(p_reactionModel, p_b... | 3,240,354 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,355 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,356 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,357 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,358 |
public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged) { //#[ operation solve(boolean,ReactionMo... | 3,240,359 |
private boolean pathMatches (String path) { //System.out.println ("checking path " + path); File file = null; if ((this.filename == null) && (this.searchType == TYPE_DIRECTORY)) { file = new File (path); } else { file = new File (path, this.filename); } if (file.exists ()) ... | private boolean pathMatches (String path) { //System.out.println ("checking path " + path); File file = null; if ((this.filename == null) || (this.searchType == TYPE_DIRECTORY)) { file = new File (path); } else { file = new File (path, this.filename); } if (file.exists ()) ... | 3,240,361 |
private boolean pathMatches (String path) { //System.out.println ("checking path " + path); File file = null; if ((this.filename == null) && (this.searchType == TYPE_DIRECTORY)) { file = new File (path); } else { file = new File (path, this.filename); } if (file.exists ()) ... | private boolean pathMatches (String path) { //System.out.println ("checking path " + path); File file = null; if ((this.filename == null) && (this.searchType == TYPE_DIRECTORY)) { file = new File (path); } else { file = new File (path, this.filename); } if (file.exists ()) ... | 3,240,362 |
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; int search_type = 0; int ... | private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; int search_type = 0; int ... | 3,240,363 |
public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Inse... | public HelloPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = new Inse... | 3,240,364 |
public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) ... | public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) ... | 3,240,365 |
public boolean emitWarning (String title, String message) { return (JOptionPane.showConfirmDialog(this, message, title, JOptionPane.WARNING_MESSAGE, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION); } | public boolean emitWarning(String title, String message) { return (JOptionPane.showConfirmDialog(this, message, title, JOptionPane.WARNING_MESSAGE, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION); } | 3,240,366 |
public boolean emitWarning (String title, String message) { return (JOptionPane.showConfirmDialog(this, message, title, JOptionPane.WARNING_MESSAGE, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION); } | public boolean emitWarning (String title, String message) { return (JOptionPane.showConfirmDialog(this, message, title, JOptionPane.WARNING_MESSAGE, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION); } | 3,240,367 |
private boolean readRadioButton (Object [] field) { String variable = null; String value = null; JRadioButton button = null; try { button = (JRadioButton)field [POS_FIELD]; if (!button.isSelected ()) { return (true); } variable = (String)field [POS_VARIABLE... | private boolean readRadioButton (Object [] field) { String variable = null; String value = null; JRadioButton button = null; try { button = (JRadioButton)field [POS_FIELD]; if (!button.isSelected ()) { return (true); } variable = (String)field [POS_VARIABLE... | 3,240,368 |
private void addCustomListeners(XMLElement data) throws Exception { compilerListeners = new ArrayList(); // We get the listeners XMLElement root = data.getFirstChildNamed("listeners"); if (root == null) return; Iterator iter = root.getChildrenNamed("listener").iterator(); ... | private void addCustomListeners(XMLElement data) throws Exception { compilerListeners = new ArrayList(); // We get the listeners XMLElement root = data.getFirstChildNamed("listeners"); if (root == null) return; Iterator iter = root.getChildrenNamed("listener").iterator(); ... | 3,240,369 |
public FinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new ... | public FinishPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); vs = new VariableSubstitutor(idata.getVariables()); // The 'super' layout GridBagLayout superLayout = new GridBagLayout(); setLayout(superLayout); GridBagConstraints gbConstraints = new ... | 3,240,370 |
public InputStream getResource(String res) throws Exception { InputStream result; String basePath = ""; ResourceManager rm = null; try { rm = ResourceManager.getInstance(); basePath = rm.resourceBasePath; } catch(Exception e) { e.printStackTrace(); } result = this.getClass()... | public InputStream getResource(String res) throws Exception { InputStream result; String basePath = ""; ResourceManager rm = null; try { rm = ResourceManager.getInstance(); basePath = rm.resourceBasePath; } catch(Exception e) { e.printStackTrace(); } result = this.getClass()... | 3,240,371 |
public InputStream getResource(String res) throws Exception { InputStream result; String basePath = ""; ResourceManager rm = null; try { rm = ResourceManager.getInstance(); basePath = rm.resourceBasePath; } catch(Exception e) { e.printStackTrace(); } result = this.getClass()... | public InputStream getResource(String res) throws Exception { InputStream result; String basePath = ""; ResourceManager rm = null; try { rm = ResourceManager.getInstance(); basePath = rm.resourceBasePath; } catch(Exception e) { e.printStackTrace(); } result = this.getClass()... | 3,240,372 |
protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | protected void switchPanel(int last) { try { if (installdata.curPanelNumber < last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(... | 3,240,373 |
protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | 3,240,374 |
protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | 3,240,375 |
protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | 3,240,376 |
protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | protected void switchPanel(int last) { if (installdata.curPanelNumber<last) { isBack = true; } panelsContainer.setVisible(false); IzPanel panel = (IzPanel) installdata.panels.get(installdata.curPanelNumber); IzPanel l_panel = (IzPanel) installdata.panels.get(last); ... | 3,240,377 |
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | 3,240,378 |
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | 3,240,379 |
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | 3,240,380 |
private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | private void writeUninstallData() { try { // We get the data UninstallData udata = UninstallData.getInstance(); List files = udata.getFilesList(); ZipOutputStream outJar = installdata.uninstallOutJar; if (outJar == null) return; // We write the files log outJar.putNext... | 3,240,381 |
public void actionPerformed(ActionEvent e) { // We get the source Object source = e.getSource(); // We act depending of the source if (source == addPackButton) { // We make the new pack element XMLElement pack = new XMLElement("pack"); p... | public void actionPerformed(ActionEvent e) { // We get the source Object source = e.getSource(); // We act depending of the source if (source == addPackButton) { // We make the new pack element XMLElement pack = new XMLElement("pack"); p... | 3,240,382 |
public void addObject() throws Exception { Object obj = _factory.makeObject(); synchronized(this) { _numActive++; // A little slimy - must do this because returnObject decrements it. this.returnObject(obj); } } | public void addObject() throws Exception { Object obj = _factory.makeObject(); synchronized(this) { _numActive++; // A little slimy - must do this because returnObject decrements it. this.returnObject(obj); } } | 3,240,383 |
public void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(_testOnReturn && !(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { ... | public void returnObject(Object obj) throws Exception { assertOpen(); boolean success = true; if(_testOnReturn && !(_factory.validateObject(obj))) { success = false; } else { try { _factory.passivateObject(obj); } catch(Exception e) { ... | 3,240,384 |
public void setVariable(String var, String val) { setProperty(var, val); } | public void setVariable(String var, String val) { if (var != null && val != null) { setProperty(var, val); } } | 3,240,385 |
private int dfs(int[] status) { for (int i = 0; i < packs.size(); i++) { Pack pack = (Pack) packs.get(i); int check = checkValues[getPos(pack.name)]; boolean wipe = false; if(Math.abs(check) !=1) { wipe = true; } if(pack.color == Pack.WHITE) { if(dfsVisit(p... | private int dfs(int[] status) { for (int i = 0; i < packs.size(); i++) { Pack pack = (Pack) packs.get(i); boolean wipe = false; if(Math.abs(check) !=1) { wipe = true; } if(pack.color == Pack.WHITE) { if(dfsVisit(pack,status,wipe)!=0) return -1; ... | 3,240,386 |
private int dfs(int[] status) { for (int i = 0; i < packs.size(); i++) { Pack pack = (Pack) packs.get(i); int check = checkValues[getPos(pack.name)]; boolean wipe = false; if(Math.abs(check) !=1) { wipe = true; } if(pack.color == Pack.WHITE) { if(dfsVisit(p... | private int dfs(int[] status) { for (int i = 0; i < packs.size(); i++) { Pack pack = (Pack) packs.get(i); int check = checkValues[getPos(pack.name)]; boolean wipe = false; if(Math.abs(check) !=1) { wipe = true; } if(pack.color == Pack.WHITE) { if(dfsVisit(p... | 3,240,387 |
private int dfsVisit(Pack u,int[] status,boolean wipe) { u.color = Pack.GREY; List deps = u.revDependencies; if (deps != null) { for (int i = 0; i < deps.size(); i++) { String name = (String) deps.get(i); Pack v = (Pack)namesObj.get(name); if(wipe) { status[... | private int dfsVisit(Pack u,int[] status,boolean wipe) { u.color = Pack.GREY; List deps = u.revDependencies; if (deps != null) { for (int i = 0; i < deps.size(); i++) { String name = (String) deps.get(i); Pack v = (Pack)namesObj.get(name); if(wipe) { status[... | 3,240,388 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.