bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void errorUnpack(String error) { this.packOpLabel.setText(error); idata.installSuccess = false; JOptionPane.showMessageDialog(this, error.toString(), parent.langpack.getString("installer.error"), JOptionPane.ERROR_MESSAGE); } | public void errorUnpack(String error) { this.packOpLabel.setText(error); idata.installSuccess = false; JOptionPane.showMessageDialog( this, error.toString(), parent.langpack.getString("installer.error"), JOptionPane.ERROR_MESSAGE); } | 3,241,872 |
public void nextStep(String packName, int stepno, int max) { this.packProgressBar.setValue(0); this.packProgressBar.setMinimum(0); this.packProgressBar.setMaximum(max); this.packProgressBar.setString(packName); this.overallProgressBar.setValue(stepno - 1); this.overallProgressBar.setString(Integer.... | public void nextStep(String packName, int stepno, int max) { this.packProgressBar.setValue(0); this.packProgressBar.setMinimum(0); this.packProgressBar.setMaximum(max); this.packProgressBar.setString(packName); this.overallProgressBar.setValue(stepno - 1); this.overallProgressBar.setString( Integer... | 3,241,873 |
public void startAction (String name, int noOfJobs) { parent.blockGUI(); // figure out how many packs there are to install this.noOfPacks = noOfJobs; this.overallProgressBar.setMinimum (0); this.overallProgressBar.setMaximum (this.noOfPacks); this.overallProgressBar.setString ("0 / " + Integer.toSt... | public void startAction(String name, int noOfJobs) { parent.blockGUI(); // figure out how many packs there are to install this.noOfPacks = noOfJobs; this.overallProgressBar.setMinimum (0); this.overallProgressBar.setMaximum (this.noOfPacks); this.overallProgressBar.setString ("0 / " + Integer.toStr... | 3,241,874 |
public void startAction (String name, int noOfJobs) { parent.blockGUI(); // figure out how many packs there are to install this.noOfPacks = noOfJobs; this.overallProgressBar.setMinimum (0); this.overallProgressBar.setMaximum (this.noOfPacks); this.overallProgressBar.setString ("0 / " + Integer.toSt... | public void startAction (String name, int noOfJobs) { parent.blockGUI(); // figure out how many packs there are to install this.noOfPacks = noOfJobs; this.overallProgressBar.setMinimum (0); this.overallProgressBar.setMaximum (this.noOfPacks); this.overallProgressBar.setString ("0 / " + Integer.toSt... | 3,241,875 |
public void stopAction() { parent.releaseGUI(); parent.lockPrevButton(); this.overallProgressBar.setValue(this.overallProgressBar.getValue() + 1); this.packProgressBar.setString(parent.langpack.getString("InstallPanel.finished")); this.packProgressBar.setEnabled(false); String no_of_packs = Integer... | public void stopAction() { parent.releaseGUI(); parent.lockPrevButton(); this.overallProgressBar.setValue(this.overallProgressBar.getValue() + 1); this.packProgressBar.setString( parent.langpack.getString("InstallPanel.finished")); this.packProgressBar.setEnabled(false); String no_of_packs = Intege... | 3,241,876 |
public void stopAction() { parent.releaseGUI(); parent.lockPrevButton(); this.overallProgressBar.setValue(this.overallProgressBar.getValue() + 1); this.packProgressBar.setString(parent.langpack.getString("InstallPanel.finished")); this.packProgressBar.setEnabled(false); String no_of_packs = Integer... | public void stopAction() { parent.releaseGUI(); parent.lockPrevButton(); this.overallProgressBar.setValue(this.overallProgressBar.getValue() + 1); this.packProgressBar.setString(parent.langpack.getString("InstallPanel.finished")); this.packProgressBar.setEnabled(false); String no_of_packs = Integer... | 3,241,877 |
protected void addFile(File file, String relPath, String targetOs, boolean override, ArrayList list) throws Exception { // We check if 'file' is correct if (!file.exists()) throw new Exception(file.toString() + " does not exist"); // Recursive part if (file.isDirectory()) ... | protected void addFile(File file, String relPath, String targetOs, boolean override, ArrayList list) throws Exception { // We check if 'file' is correct if (!file.exists()) throw new Exception(file.toString() + " does not exist"); // Recursive part if (file.isDirectory()) ... | 3,241,879 |
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | 3,241,880 |
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | 3,241,881 |
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | 3,241,882 |
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitiv... | 3,241,883 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | 3,241,884 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | 3,241,885 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | 3,241,886 |
protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | protected ArrayList getPacks(XMLElement data) throws Exception { // Initialisation ArrayList packs = new ArrayList(); Vector v; XMLElement root = data.getFirstChildNamed("packs"); // We process each pack markup int npacks = root.getChildrenCount(); for (int i = 0; i < npacks; i++) { XMLE... | 3,241,887 |
private void setUniqueUninstallKey() throws Exception { // Let us play a little bit with the regstry again... // Now we search for an unique uninstall key. // First we need a handler. There is no overhead at a // secound call of getInstance, therefore we do not buffer // the ha... | private void setUniqueUninstallKey() throws Exception { // Let us play a little bit with the regstry again... // Now we search for an unique uninstall key. // First we need a handler. There is no overhead at a // secound call of getInstance, therefore we do not buffer // the ha... | 3,241,889 |
protected void aboutToLaunch(final String message) { String msg = ResourceUtil.getFormattedString("TestRunnerViewPart.message.launching", message); //$NON-NLS-1$// setInfoMessage(msg); firePropertyChange(IWorkbenchPart.PROP_TITLE); } | protectedvoidaboutToLaunch(finalStringmessage){Stringmsg=ResourceUtil.getFormattedString("TestRunnerViewPart.message.launching",message);//$NON-NLS-1$//setInfoMessage(msg);firePropertyChange(IWorkbenchPart.PROP_TITLE);} | 3,241,890 |
private SashForm createSashForm(Composite parent) { m_sashForm = new SashForm(parent, SWT.VERTICAL); ViewForm top = new ViewForm(m_sashForm, SWT.NONE); m_tabFolder = createTestRunTabs(top); m_tabFolder.setLayoutData(new Layout() { protected Point computeSize (Composite composite, int wHint, int hHi... | private SashForm createSashForm(Composite parent) { m_sashForm = new SashForm(parent, SWT.VERTICAL); ViewForm top = new ViewForm(m_sashForm, SWT.NONE); m_tabFolder = createTestRunTabs(top); m_tabFolder.setLayoutData(new Layout() { protected Point computeSize (Composite composite, int wHint, int hHi... | 3,241,891 |
private SashForm createSashForm(Composite parent) { m_sashForm = new SashForm(parent, SWT.VERTICAL); ViewForm top = new ViewForm(m_sashForm, SWT.NONE); m_tabFolder = createTestRunTabs(top); m_tabFolder.setLayoutData(new Layout() { protected Point computeSize (Composite composite, int wHint, int hHi... | privateSashFormcreateSashForm(Compositeparent){m_sashForm=newSashForm(parent,SWT.VERTICAL);ViewFormtop=newViewForm(m_sashForm,SWT.NONE);m_tabFolder=createTestRunTabs(top);m_tabFolder.setLayoutData(newLayout(){protectedPointcomputeSize(Compositecomposite,intwHint,inthHint,booleanflushCache){if(wHint!=SWT.DEFAULT&&hHint!... | 3,241,892 |
protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) { if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT) return new Point(wHint, hHint); Control [] children = composite.getChildren (); int count = children.len... | protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) { if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT) return new Point(wHint, hHint); Control [] children = composite.getChildren (); int count = children.len... | 3,241,893 |
protected void layout (Composite composite, boolean flushCache) { Rectangle rect= composite.getClientArea(); Control[] children = composite.getChildren(); for (int i = 0; i < children.length; i++) { children[i].setBounds(rect); } } | protectedvoidlayout(Compositecomposite,booleanflushCache){Rectanglerect=composite.getClientArea();Control[]children=composite.getChildren();for(inti=0;i<children.length;i++){children[i].setBounds(rect);}} | 3,241,894 |
protected CTabFolder createTestRunTabs(Composite parent) { CTabFolder tabFolder = new CTabFolder(parent, SWT.TOP); tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL)); loadTestRunTabs(tabFolder); tabFolder.setSelection(0); m_activeRunTab = (TestRunTab) m_tabsList.firstEle... | protectedCTabFoldercreateTestRunTabs(Compositeparent){CTabFoldertabFolder=newCTabFolder(parent,SWT.TOP);tabFolder.setLayoutData(newGridData(GridData.FILL_BOTH|GridData.GRAB_VERTICAL));loadTestRunTabs(tabFolder);tabFolder.setSelection(0);m_activeRunTab=(TestRunTab)m_tabsList.firstElement();tabFolder.addSelectionListener... | 3,241,895 |
public void widgetSelected(SelectionEvent event) {// ppp("widgetSelected"); testTabChanged(event); } | publicvoidwidgetSelected(SelectionEventevent){//ppp("widgetSelected");testTabChanged(event);} | 3,241,896 |
private void handleStopped() { postSyncRunnable(new Runnable() { public void run() { if(isDisposed()) { return; } fProgressBar.stopped();// updateProgressBar(m_progressBar.getMaximum(), false); } }); stopUpdateJobs(); } | privatevoidhandleStopped(){postSyncRunnable(newRunnable(){publicvoidrun(){if(isDisposed()){return;}fProgressBar.stopped();//updateProgressBar(m_progressBar.getMaximum(),false);}});stopUpdateJobs();} | 3,241,897 |
public void run() { if(isDisposed()) { return; } fProgressBar.stopped();// updateProgressBar(m_progressBar.getMaximum(), false); } | publicvoidrun(){if(isDisposed()){return;}fProgressBar.stopped();//updateProgressBar(m_progressBar.getMaximum(),false);} | 3,241,898 |
private void postEndTest(final String testId, final String testName) { postSyncRunnable(new Runnable() { public void run() { if(isDisposed()) { return; } m_testIsRunning = false;// updateProgressBar(m_progressBar.getSelection() + 1, false); if(hasErrors()) { ... | privatevoidpostEndTest(finalStringtestId,finalStringtestName){postSyncRunnable(newRunnable(){publicvoidrun(){if(isDisposed()){return;}m_testIsRunning=false;//updateProgressBar(m_progressBar.getSelection()+1,false);if(hasErrors()){fNextAction.setEnabled(true);fPrevAction.setEnabled(true);}}});} | 3,241,899 |
public void run() { if(isDisposed()) { return; } m_testIsRunning = false;// updateProgressBar(m_progressBar.getSelection() + 1, false); if(hasErrors()) { fNextAction.setEnabled(true); fPrevAction.setEnabled(true); } } | publicvoidrun(){if(isDisposed()){return;}m_testIsRunning=false;//updateProgressBar(m_progressBar.getSelection()+1,false);if(hasErrors()){fNextAction.setEnabled(true);fPrevAction.setEnabled(true);}} | 3,241,900 |
private void refreshCounters() {// m_counterPanel.setSuiteCount(m_suiteCount);// m_counterPanel.setTestCount(m_testCount);// m_counterPanel.setMethodTotalCount(m_methodTotalCount); m_counterPanel.setMethodCount(m_methodCount); m_counterPanel.setPassedCount(m_passedCount); m_counterPanel.setFailedCou... | private void refreshCounters() {// m_counterPanel.setSuiteCount(m_suiteCount);// m_counterPanel.setTestCount(m_testCount);// m_counterPanel.setMethodTotalCount(m_methodTotalCount); m_counterPanel.setMethodCount(m_methodCount); m_counterPanel.setPassedCount(m_passedCount); m_counterPanel.setFailedCount(m_failedCount);... | 3,241,901 |
public void run() { if(isDisposed()) { return; } m_counterPanel.reset(); m_failureTraceComponent.clear(); fProgressBar.reset(testCount);// m_progressBar.setSelection(0);// m_progressBar.setMaximum(0); clearStatus(); for(Enumer... | public void run() {if(isDisposed()) {return;}m_counterPanel.reset();m_failureTraceComponent.clear();fProgressBar.reset(testCount);//m_progressBar.setSelection(0);//m_progressBar.setMaximum(0);clearStatus();for(Enumeration e = m_tabsList.elements(); e.hasMoreElements();) {TestRunTab v = (TestRunTab) e.nextElement();v.ab... | 3,241,902 |
private void resetProgressBar(final int total) { fProgressBar.reset(total); fProgressBar.setMaximum(total, total);// m_progressBar.setForeground(fOKColor);// m_progressBar.setMinimum(0);// m_progressBar.setMaximum(total);// m_progressBar.setSelection(0); } | private void resetProgressBar(final int total) { fProgressBar.reset(total); fProgressBar.setMaximum(total, total);// m_progressBar.setForeground(fOKColor);// m_progressBar.setMinimum(0);// m_progressBar.setMaximum(total);// m_progressBar.setSelection(0); } | 3,241,903 |
protected void selectFirstFailure() {// OldTestRunInfo firstFailure = (OldTestRunInfo) fFailures.get(0);// if((firstFailure != null) && (m_activeRunTab.getSelectedTestId() == null)) {// m_activeRunTab.setSelectedTest(firstFailure.getTestId());// handleTestSelected(firstFailure.getTestId());// } } | protected void selectFirstFailure() {// OldTestRunInfo firstFailure = (OldTestRunInfo) fFailures.get(0);// if((firstFailure != null) && (m_activeRunTab.getSelectedTestId() == null)) {// m_activeRunTab.setSelectedTest(firstFailure.getTestId());// handleTestSelected(firstFailure.getTestId());// } } | 3,241,904 |
public void startTestRunListening(IJavaProject project, String subName, int port, ILaunch launch) { m_LastLaunch = launch; m_workingProject = project; m_hasFailures= false; aboutToLaunch(subName... | public void startTestRunListening(IJavaProject project, String subName, int port, ILaunch launch) {m_LastLaunch = launch;m_workingProject = project;m_hasFailures= false;aboutToLaunch(subName);if(null != fTestRunnerClient) {stopTest();}fTestRunnerClient = new EclipseTestRunnerClient();fTestRunnerClient.startListening(th... | 3,241,905 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,906 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,907 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,908 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,909 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,910 |
public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | public String getDefaultInstallPath (String appName) { String path = null; InputStream input = null; String keyFragment = "/res/" + INSTALL_PATH_RESOURCE_KEY [GENERIC][STANDARD]; // ---------------------------------------------------- // attempt to get an input stream through a ... | 3,241,911 |
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil... | private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil... | 3,241,912 |
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil... | privatevoidreadFiles() { Filefile=newFile(_graphmlFileName); if(file.isFile()) { _graph=parseFile(_graphmlFileName); } elseif(file.isDirectory()) { //Onlyaccpetsfileswhichsuffixis.graphml FilenameFilterfilter=newFilenameFilter() { publicbooleanaccept(Filedir,Stringname) { returnname.endsWith(".graphml");... | 3,241,913 |
private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil... | private void readFiles() { File file = new File( _graphmlFileName ); if ( file.isFile() ) { _graph = parseFile( _graphmlFileName ); } else if ( file.isDirectory() ) { // Only accpets files which suffix is .graphml FilenameFilter filter = new FilenameFilter() { public boolean accept( Fil... | 3,241,914 |
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 Insets(0, 0, 0, 0); gbConstra... | 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 Insets(0, 0, 0, 0); gbConstra... | 3,241,916 |
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 Insets(0, 0, 0, 0); gbConstra... | 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 Insets(0, 0, 0, 0); gbConstra... | 3,241,917 |
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | 3,241,918 |
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | 3,241,919 |
public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | public void run() { instances.add(this); try { // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); ArrayList updatechecks = new ArrayList(); List packs = idata.selectedPacks; int npacks = p... | 3,241,920 |
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | 3,241,921 |
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | setForeground(list.getForeground()); setBackground(list.getBackground()); } setForeground(list.getForeground()); setBackground(list.getBackground()); } setForeground(list.getForeground()); setBackground(list.getBackground()); } setForeground(list.getForeground()); setBackground(list.getBackground()); } publicsetForegro... | 3,241,922 |
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | 3,241,923 |
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // We avoid that the icon is gray while the combo isn't deployed if (index == -1) isSelected = true; // We put the label String iso3 ... | 3,241,924 |
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... | publicsynchronizedObjectborrowObject(Objectkey)throwsException{longstarttime=System.currentTimeMillis();booleannewlyCreated=false;for(;;){CursorableLinkedListpool=(CursorableLinkedList)(_poolMap.get(key));if(null==pool){pool=newCursorableLinkedList();_poolMap.put(key,pool);_poolList.add(key);}ObjectTimestampPairpair=nu... | 3,241,925 |
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,241,926 |
public Object clone () throws OutOfMemoryError { try { super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } ShortcutData result = new ShortcutData (); result.type = type; result.iconIndex = iconIndex; result.initialState = in... | public Object clone () throws OutOfMemoryError { try { super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } ShortcutData result = new ShortcutData (); result.type = type; result.iconIndex = iconIndex; result.initialState = in... | 3,241,927 |
public boolean validateObject(Object obj) { return true; } | public boolean validateObject(Object obj) { return true; } | 3,241,928 |
public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ... | public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ... | 3,241,929 |
public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ... | public String getLinkPath(int userType) { String result = null; if (userType == CURRENT_USER) { try { result = new String( currentUserLinkPath, "UTF-16" ); } catch (UnsupportedEncodingException e) { // TODO ... | 3,241,930 |
public String getallUsersLinkPath() { String result = null; try { result = new String(allUsersLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } return r... | public String getallUsersLinkPath() { String result = null; try { result = new String(allUsersLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } return r... | 3,241,931 |
public String getcurrentUserLinkPath() { String result =null; try { result = new String( currentUserLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } r... | public String getcurrentUserLinkPath() { String result =null; try { result = new String( currentUserLinkPath, "UTF-16"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } r... | 3,241,932 |
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | private void setAllLinkPaths() throws IllegalArgumentException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not. if (userType == CURREN... | 3,241,933 |
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | 3,241,934 |
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | 3,241,935 |
private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | private void setAllLinkPaths() throws IllegalArgumentException, UnsupportedEncodingException { // sets currentUsersLinkPath and allUsersLinkPath GetFullLinkPath(CURRENT_USER, linkType); GetFullLinkPath(ALL_USERS, linkType); // be sure userType is valid. Override initial choice if not.... | 3,241,936 |
public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; try { obj = _pool.pop(); } catch(EmptyStackException e) { if(null == _factory) { throw new NoSuchElementException(); } else { obj =... | public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; if (!_pool.empty()) { obj = _pool.pop(); } catch(EmptyStackException e) { if(null == _factory) { throw new NoSuchElementException(); } else { ... | 3,241,937 |
public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; try { obj = _pool.pop(); } catch(EmptyStackException e) { if(null == _factory) { throw new NoSuchElementException(); } else { obj =... | public synchronized Object borrowObject() throws Exception { assertOpen(); Object obj = null; try { obj = _pool.pop(); } else { if(null == _factory) { throw new NoSuchElementException(); } else { obj = _factory.makeObject(); ... | 3,241,938 |
private void analyzeShortcutSpec () { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } // ---------------------------------------------------- // find out if we should simulate a not supported // scenario // ---------------------------------------------------- XMLEl... | private void analyzeShortcutSpec () { if (!haveShortcutSpec) { shortcutsToCreate = false; return; } // ---------------------------------------------------- // find out if we should simulate a not supported // scenario // ---------------------------------------------------- XMLEl... | 3,241,939 |
public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); if (d instanceof ImageNode) { if ((me.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) model.setSelectedDisplay(d, true); ... | public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); if (d instanceof ImageNode) { if ((me.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) model.setSelectedDisplay(d, true); ... | 3,241,940 |
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables... | public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables... | 3,241,941 |
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables... | public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base); // Usefull variables... | 3,241,942 |
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator... | protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator... | 3,241,943 |
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator... | protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator... | 3,241,944 |
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i... | protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i... | 3,241,945 |
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i... | protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; Iterator iter = root.getChildrenNamed... | 3,241,946 |
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i... | protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl(); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Iterator i... | 3,241,947 |
public void run() { while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { Thread.sleep(sleeptime); } cat... | public void run() { while(!_cancelled) { long sleeptime = 0L; synchronized(GenericKeyedObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { Thread.sleep(sleeptime); } cat... | 3,241,949 |
private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim... | private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim... | 3,241,950 |
private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim... | private int calculateDefecit(Object key) { int objectDefecit = 0; //Calculate no of objects needed to be created, in order to have //the number of pooled objects < maxActive(); objectDefecit = getMinIdle() - getNumIdle(key); if (getMaxActive() > 0) { int growLim... | 3,241,951 |
public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f... | public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f... | 3,241,952 |
public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f... | public synchronized void clearOldest() { // build sorted map of idle objects TreeMap map = new TreeMap(); for (Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext();) { Object key = keyiter.next(); LinkedList list = (LinkedList) _poolMap.get(key); f... | 3,241,953 |
private synchronized void ensureMinIdle() throws Exception { Iterator iterator = _poolMap.keySet().iterator(); //Check if should sustain the pool if (_minIdle > 0) { // Loop through all elements in _poolList // Find out the total number of max active and max idle for th... | private synchronized void ensureMinIdle() throws Exception { Iterator iterator = _poolMap.keySet().iterator(); //Check if should sustain the pool if (_minIdle > 0) { // Loop through all elements in _poolList // Find out the total number of max active and max idle for th... | 3,241,954 |
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,241,955 |
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,241,956 |
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,241,957 |
public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR... | public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR... | 3,241,958 |
public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR... | public char read() throws IOException { int ch = this.currentPbReader.read(); while (ch < 0) { if (this.pbreaders.empty()) { throw new IOException("Unexpected EOF"); } this.currentPbReader.close(); this.currentPbR... | 3,241,959 |
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append("OS_NAME=").append(OS_NAME).append(NL); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else ... | 3,241,961 |
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append(getLinuxDistribution()).append(NL); } else { ... | 3,241,962 |
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | 3,241,963 |
public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | public static String getOsDetails() { StringBuffer result = new StringBuffer(); result.append( "OS_NAME=" + OS_NAME + NL ); if( IS_UNIX ) { if( IS_LINUX ) { result.append( getLinuxDistribution() + NL ); } else { ... | 3,241,964 |
private static String getReleaseFileName() { String result = new String(); File[] etcList = new File("/etc").listFiles(); if( etcList != null ) for (int idx = 0; idx < etcList.length; idx++) { File etcEntry = etcList[idx]; if (etcEntry.isFile()) ... | private static String getReleaseFileName() { String result = ""; File[] etcList = new File("/etc").listFiles(); if( etcList != null ) for (int idx = 0; idx < etcList.length; idx++) { File etcEntry = etcList[idx]; if (etcEntry.isFile()) {... | 3,241,965 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.