bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public BwSystem getSyspars() throws CalFacadeException { return getCal().getSyspars(); } | public BwSystem getSyspars() throws CalFacadeException { return getCal().getSyspars(systemName); } | 1,120,829 |
public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | 1,120,830 |
public void propertyChange(PropertyChangeEvent evt) { if( !evt.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY) ) return; File file = fileChooser.getSelectedFile(); if( file == null || file.isDirectory() ) return; try { LogFile logFile = new LogFile( fileChooser.getSelectedFile(), data... | public void propertyChange(PropertyChangeEvent evt) { if( !evt.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY) ) return; File file = fileChooser.getSelectedFile(); if( file == null || file.isDirectory() ) return; try { LogFile logFile = new LogFile( fileChooser.getSelectedFile(), null... | 1,120,831 |
public void changeAccess(Object o, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); } | public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); } | 1,120,832 |
public void changeAccess(Object o, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); } | public void changeAccess(Object o, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(o, aces); sess.saveOrUpdate(o); } | 1,120,833 |
public Collection getAces(Object o) throws CalFacadeException { checkOpen(); return access.getAces(o); } | public Collection getAces(BwShareableDbentity ent) throws CalFacadeException { checkOpen(); return access.getAces(o); } | 1,120,834 |
public Collection getAces(Object o) throws CalFacadeException { checkOpen(); return access.getAces(o); } | public Collection getAces(Object o) throws CalFacadeException { checkOpen(); return access.getAces(ent); } | 1,120,835 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private boolean emitAce(Ace ace, boolean denials, boolean aceOpen) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()... | 1,120,836 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean tagOpen = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p = ... | 1,120,837 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | 1,120,838 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | 1,120,839 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | 1,120,840 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | 1,120,841 |
private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | private void emitAce(Ace ace, boolean denials) throws Throwable { Collection privs = ace.getPrivs(); boolean emittedWho = false; QName tag; if (denials) { tag = WebdavTags.deny; } else { tag = WebdavTags.grant; } Iterator it = privs.iterator(); while (it.hasNext()) { Privilege p... | 1,120,842 |
private void emitAceWho(Ace ace) throws Throwable { xml.openTag(WebdavTags.ace); boolean invert = ace.getNotWho(); if (ace.getWhoType() == Ace.whoTypeOther) { invert = !invert; } if (invert) { xml.openTag(WebdavTags.invert); } xml.openTag(WebdavTags.principal); int whoType = ace.getW... | private void emitAceWho(Ace ace) throws Throwable { boolean invert = ace.getNotWho(); if (ace.getWhoType() == Ace.whoTypeOther) { invert = !invert; } if (invert) { xml.openTag(WebdavTags.invert); } xml.openTag(WebdavTags.principal); int whoType = ace.getWhoType(); /* <!... | 1,120,844 |
public void emitAces(Collection aces) throws CalFacadeException { try { xml.openTag(WebdavTags.acl); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); emitAce(ace, true); emitAce(ace, false); } } x... | public void emitAces(Collection aces) throws CalFacadeException { try { xml.openTag(WebdavTags.acl); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); emitAce(ace, true); emitAce(ace, false); } } x... | 1,120,845 |
public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis... | public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis... | 1,120,847 |
public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis... | public JPanel getButtonPanel() { JPanel p = new JPanel(new GridLayout(0, 3)); JButton remove = new JButton(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ remove.setToolTipText(Messages.getString("ModuleConfigurationPanel.REMOVE_TOOLTIP")); //$NON-NLS-1$ remove.addActionListener(new ActionLis... | 1,120,848 |
public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { tablePanel.getModel().swap(selected[i]-1, selected[i]); } table.setRowSelectionInterval(selected[0] - 1, selected[selected.... | public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { tablePanel.getModel().swap(selected[i]-1, selected[i]); } table.setRowSelectionInterval(selected[0] - 1, selected[selected.... | 1,120,849 |
public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { tablePanel.getModel().swap(selected[i], selected[i]+1); } table.setRowSelectionInterval(selected[0] + 1, selected[sele... | public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { tablePanel.getModel().swap(selected[i], selected[i]+1); } table.setRowSelectionInterval(selected[0] + 1, selected[sele... | 1,120,850 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)... | 1,120,851 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null)... | 1,120,852 |
public TimeView getCurTimeView() { /* We might be called before any time is set. Set a week view by default */ try { if (curTimeView == null) { /** Figure out the default from the properties */ String vn; try { vn = getEnv().getAppOptProperty("app.default.v... | public TimeView getCurTimeView() { /* We might be called before any time is set. Set a week view by default */ try { if (curTimeView == null) { /** Figure out the default from the properties */ String vn; try { vn = getEnv().getAppOptProperty("default.view"... | 1,120,853 |
public void removeItem(BasketItem item) { System.out.println("item = " + item); System.out.println("basket = " + basket); if (item == null || basket == null) { return; } if (basket.containsKey(item.getItemID())) { basket.remove(item.getItemID()); } } | public void removeItem(BasketItem item) { System.out.println("item = " + item); System.out.println("basket = " + basket); if (item == null || basket == null) { return; } if (basket.containsKey(item.getItemID())) { basket.remove(item.getItemID()); } } | 1,120,854 |
private JPanel createMemoryPanel() { Properties sysProps = System.getProperties(); Enumeration sysKeys = sysProps.keys(); int sysLen = sysProps.size(); String[] keys = new String[sysLen]; for (int i = 0; i < sysLen && sysKeys.hasMoreElements(); i++) { keys[i] = (String)sysKeys.nextElement(); } Arrays.sort(k... | private JPanel createMemoryPanel() { Properties sysProps = System.getProperties(); Enumeration sysKeys = sysProps.keys(); int sysLen = sysProps.size(); String[] keys = new String[sysLen]; for (int i = 0; i < sysLen && sysKeys.hasMoreElements(); i++) { keys[i] = (String)sysKeys.nextElement(); } Arrays.sort(k... | 1,120,855 |
private void generateLayoutAndAddParameters(IWContext iwc, boolean isMethodInvocation) throws IOException, JRException { int columnWidth = 120; int prmLableWidth = 95; int prmValueWidth = 55; DynamicReportDesign designTemplate = new DynamicReportDesign("GeneratedReport"); if (_dynamicFields != null && _dynamicFie... | private void generateLayoutAndAddParameters(IWContext iwc, boolean isMethodInvocation) throws IOException, JRException { int columnWidth = 120; int prmLableWidth = 95; int prmValueWidth = 55; DynamicReportDesign designTemplate = new DynamicReportDesign("GeneratedReport"); if (_dynamicFields != null && _dynamicFie... | 1,120,856 |
public ReferencedMetaclassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); ... | public ReferencedMetaclassFigure() { GridLayout layoutThis = new GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); ... | 1,120,857 |
public ReferencedMetaclassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); ... | public ReferencedMetaclassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); ... | 1,120,858 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMet... | 1,120,859 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,860 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,861 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,862 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,863 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,864 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,865 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,866 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,867 |
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPa... | 1,120,868 |
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureReferencedMetaclassFigure_className() { return fReferencedMetaclassFigure_className; } | public WrapLabel getFigureReferencedMetaclassFigure_className() { return fReferencedMetaclassFigure_className; } | 1,120,869 |
private void setFigureReferencedMetaclassFigure_className(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fReferencedMetaclassFigure_className = fig; } | private void setFigureReferencedMetaclassFigure_className(WrapLabel fig) { fReferencedMetaclassFigure_className = fig; } | 1,120,870 |
public void setHasActualMetaclassImport(boolean hasActualMetaclassImport) { setForegroundColor(hasActualMetaclassImport ? org.eclipse.draw2d.ColorConstants.gray : org.eclipse.draw2d.ColorConstants.red); } | public void setHasActualMetaclassImport(boolean hasActualMetaclassImport) { setForegroundColor(hasActualMetaclassImport ? ColorConstants.gray : ColorConstants.red); } | 1,120,871 |
private void refreshHasImportedMetaclass(ReferencedMetaclassFigure figure) { ElementImport elementImport = (ElementImport) resolveSemanticElement(); //OCL here (#161545) boolean hasMetaclass = false; if (elementImport != null) { PackageableElement imported = elementImport.getImportedElement(); hasMetaclass = i... | private void refreshHasImportedMetaclass(ReferencedMetaclassFigure figure) { ElementImport elementImport = (ElementImport) resolveSemanticElement(); //OCL here (#161545) boolean hasMetaclass = false; if (elementImport != null) { PackageableElement imported = elementImport.getImportedElement(); hasMetaclass = i... | 1,120,872 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** User requested a sponsor from the list. Retrieve it, embed it in ... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** User requested a sponsor from the list. Retrieve it, embed it in ... | 1,120,874 |
public void setUp() { try { boolean success; at_ = new File("/tmp/at"); success = at_.mkdir(); at_test_ = new File("/tmp/at/test"); success &= at_test_.mkdir(); at_test_testfile_at = new File("/tmp/at/test/testfile.at"); success &= at_test_testfile_at.createNewFile(); if (!success) { fail("could no... | public void setUp() { try { boolean success; at_ = new File("/tmp/at"); success = at_.mkdir(); at_test_ = new File("/tmp/at/test"); success &= at_test_.mkdir(); at_test_testfile_at = new File("/tmp/at/test/testfile.at"); success &= at_test_testfile_at.createNewFile(); if (!success) { fail("could no... | 1,120,875 |
public void testNamespaces() { // create a 'root' namespace pointing to /tmp NATNamespace root = new NATNamespace("", "/tmp", OBJDynamicRoot._INSTANCE_); // now, try to select the 'at' slot try { ATObject at = root.meta_select(root, AGSymbol.alloc("at")); // the at slot should equal a namespace object assert... | public void testNamespaces() { // create a 'root' namespace pointing to /tmp // now, try to select the 'at' slot try { ATObject at = root.meta_select(root, AGSymbol.alloc("at")); // the at slot should equal a namespace object assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print()... | 1,120,876 |
EventPeriod(DateTime start, DateTime end) { this.start = start; this.end = end; } | EventPeriod(DateTime start, DateTime end, int type) { this.start = start; this.end = end; } | 1,120,878 |
Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); // Just for the user interactions cali.b... | Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); // Just for the user interactions cali.b... | 1,120,881 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(Collection subs, BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)... | 1,120,882 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | 1,120,883 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | 1,120,884 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | 1,120,885 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | 1,120,886 |
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw ne... | 1,120,887 |
public void testJavaMirrorFieldAccess() { try { AGMessageSend msgSend = new AGMessageSend( success, new AGMethodInvocationCreation( AGSymbol.alloc("at"), new NATTable(new ATObject[] { closures.base_getLength() }))); ATObject msgSendMirror = NATMirrorFactory._INSTANCE_. base_createMirror... | public void testJavaMirrorFieldAccess() { try { AGMessageSend msgSend = new AGMessageSend( success, new AGMethodInvocationCreation( AGSymbol.alloc("at"), new NATTable(new ATObject[] { closures.base_getLength() }))); ATObject msgSendMirror = NATMirrorFactory._INSTANCE_. base_createMirror... | 1,120,889 |
public void testMirrorFieldAccess() { try { evaluateInput( "def msgSendMirror := at.mirrors.Factory.createMirror(" + " `(success.at(3)));" + "def receiver := msgSendMirror.receiver;" + "msgSendMirror.receiver := closures;", new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_)); }... | public void testMirrorFieldAccess() { try { evaluateInput( "def msgSendMirror := at.mirrors.Factory.createMirror(" + " `(success.at(3)));" + "def receiver := msgSendMirror.receiver;" + "msgSendMirror.receiver := at.mirrors.Factory.createMirror(closures);", new NATContext(lexicalRoot, lex... | 1,120,890 |
public void testMirrorInvocation() { try { evaluateInput( "def trueMirror := at.mirrors.Factory.createMirror(true);" + "def responds := trueMirror.respondsTo( symbol(\"ifTrue:\") );" + "responds.getBase().ifTrue: success ifFalse: fail", new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_)... | public void testMirrorInvocation() { try { evaluateInput( "def trueMirror := at.mirrors.Factory.createMirror(true);" + "def responds := trueMirror.respondsTo( symbol(\"ifTrue:\") );" + "responds.getBase().ifTrue: success ifFalse: fail", new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_)... | 1,120,891 |
public InstanceNodeFigure() { this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout()); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents()... | public InstanceNodeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOut... | 1,120,892 |
public void setEditEvent(BwEvent val) { try { editEvent = val; if (val != null) { getEventDates().setFromEvent(val, fetchSvci().getTimezones()); } } catch (Throwable t) { err.emit(t); } } | public void setEditEvent(BwEvent val) { try { editEvent = val; if (val == null) { getEventDates().setNewEvent(val, fetchSvci().getTimezones()); } else { getEventDates().setFromEvent(val, fetchSvci().getTimezones()); } } catch (Throwable t) { err.emit(t); } } | 1,120,894 |
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.StereotypeConstraintsEditPart.VISUAL_ID); view.setType(sema... | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(StereotypeConstraintsEditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerV... | 1,120,895 |
protected PlayerListener getConfigPlayerListener() { return new PlayerListener() { public void playbackStarted() { } public void playbackStopped() { } public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } }; } | protected PlayerListener getConfigPlayerListener() { return new PlayerListener() { public void playbackStarted() { } public void playbackStopped() { } public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } }; } | 1,120,896 |
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } | public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } } | 1,120,897 |
public synchronized void stop() { player.stop(); player = null; } | public synchronized void stop() { player.stop(); player = null; } | 1,120,898 |
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... | private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... | 1,120,899 |
private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... | private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... | 1,120,900 |
public String getDefaultPersonalAccess() { return access.getDefaultPersonalAccess(); } | public String getDefaultPersonalAccess() { return Access.getDefaultPersonalAccess(); } | 1,120,901 |
public String getDefaultPublicAccess() { return access.getDefaultPublicAccess(); } | public String getDefaultPublicAccess() { return Access.getDefaultPublicAccess(); } | 1,120,902 |
public int compare(Object o1, Object o2) { if (o1 == o2) { return 0; } if (!(o1 instanceof BwDateTime)) { return -1; } if (!(o2 instanceof BwDateTime)) { return 1; } BwDateTime dt1 = (BwDateTime)o1; BwDateTime dt2 = (BwDateTime)o2; try { return dt1.getDate().compareTo(dt... | public int compare(Object o1, Object o2) { if (o1 == o2) { return 0; } if (!(o1 instanceof BwDateTime)) { return -1; } if (!(o2 instanceof BwDateTime)) { return 1; } BwDateTime dt1 = (BwDateTime)o1; BwDateTime dt2 = (BwDateTime)o2; try { return dt1.getDate().compareTo(dt... | 1,120,903 |
public String getDate() throws CalFacadeException { return date; } | public String getDate() { return date; } | 1,120,904 |
public void finishTransaction(String properties) throws CreditCardAuthorizationException { HashMap map = parseProperties(properties); String cardnumber = (String) map.get(TPOS3Client.PN_PAN); String expires = (String) map.get(TPOS3Client.PN_EXPIRE); String amount = (String) map.get(TPOS3Client.PN_AMOUNT); ... | public void finishTransaction(String properties) throws CreditCardAuthorizationException { HashMap map = parseProperties(properties); String cardnumber = (String) map.get(TPOS3Client.PN_PAN); String expires = (String) map.get(TPOS3Client.PN_EXPIRE); String amount = (String) map.get(TPOS3Client.PN_AMOUNT); ... | 1,120,905 |
public void writeSimpleExcelFile(JRDataSource reportData, String nameOfReport, String filePathAndName, ReportDescription description) throws IOException{ if(nameOfReport==null || "".equals(nameOfReport)){ nameOfReport = "Report"; } System.out.println(nameOfReport); System.out.println(TextSoap.encodeToValidExcelS... | public void writeSimpleExcelFile(JRDataSource reportData, String nameOfReport, String filePathAndName, ReportDescription description) throws IOException{ if(nameOfReport==null || "".equals(nameOfReport)){ nameOfReport = "Report"; } System.out.println(nameOfReport); System.out.println(TextSoap.encodeToValidExcelS... | 1,120,906 |
public void writeSimpleExcelFile(JRDataSource reportData, String nameOfReport, String filePathAndName, ReportDescription description) throws IOException{ if(nameOfReport==null || "".equals(nameOfReport)){ nameOfReport = "Report"; } System.out.println(nameOfReport); System.out.println(TextSoap.encodeToValidExcelS... | public void writeSimpleExcelFile(JRDataSource reportData, String nameOfReport, String filePathAndName, ReportDescription description) throws IOException{ if(nameOfReport==null || "".equals(nameOfReport)){ nameOfReport = "Report"; } System.out.println(nameOfReport); System.out.println(TextSoap.encodeToValidExcelS... | 1,120,907 |
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.StereotypeEditPart.VISUAL_ID); view.setType(semanticHint); ... | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(StereotypeEditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, view, ... | 1,120,908 |
protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy()); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubvertices2ItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, n... | protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubvertices2ItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragD... | 1,120,909 |
public void playbackCompleted() { firePlaybackCompleted(player); } | public void playbackCompleted() { next(); } | 1,120,910 |
public void playbackFailed() { firePlaybackCompleted(player); } | public void playbackFailed() { next(); } | 1,120,911 |
public void playbackStarted() { firePlaybackStarted(player); } | public void playbackStarted() { } | 1,120,912 |
public void playbackStopped() { firePlaybackStopped(player); } | public void playbackStopped() { } | 1,120,913 |
public Player getPlayer() { return player; } | public Player getPlayer() { return (playerThread != null) ? playerThread.getPlayer() : null; } | 1,120,914 |
public URL getPlayingURL() { return (player != null) ? player.getResource() : null; } | public URL getPlayingURL() { return (getPlayer() != null) ? getPlayer().getResource() : null; } | 1,120,915 |
public synchronized boolean isPlaying() { return player != null && player.isPlaying(); } | public synchronized boolean isPlaying() { return getPlayer() != null && getPlayer().isPlaying(); } | 1,120,916 |
public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | 1,120,917 |
public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | 1,120,918 |
public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | public int compare(Object o1, Object o2) { if (!(o1 instanceof BwPrincipal)) { return -1; } if (!(o2 instanceof BwPrincipal)) { return 1; } BwPrincipal p1 = (BwPrincipal)o1; BwPrincipal p2 = (BwPrincipal)o2; if (p1.account == null) { // Should not happen throw new RuntimeExcep... | 1,120,919 |
public Events(Calintf cal, AccessUtil access, BwUser user, boolean debug) { super(cal, access, user, debug); Properties uidprops = new Properties(); uidprops.setProperty("separator", "-"); uuidGen = new UUIDHexGenerator(); ((Configurable)uuidGen).configure(Hibernate.STRING, uidprops, null); } | public Events(Calintf cal, AccessUtil access, BwUser user, boolean debug) { super(cal, access, user, debug); Properties uidprops = new Properties(); uidprops.setProperty("separator", "-"); uuidGen = new UUIDHexGenerator(); ((Configurable)uuidGen).configure(Hibernate.STRING, uidprops, null); } | 1,120,921 |
public void assignGuid(BwEvent val) throws CalFacadeException { if (val == null) { return; } String guidPrefix = "CAL-" + (String)uuidGen.generate(null, null); if (val.getName() == null) { val.setName(guidPrefix + ".ics"); } if (val.getGuid() != null) { return; } String guid = g... | public void assignGuid(BwEvent val) throws CalFacadeException { if (val == null) { return; } String guidPrefix = "CAL-" + (String)getUuidGen().generate(null, null); if (val.getName() == null) { val.setName(guidPrefix + ".ics"); } if (val.getGuid() != null) { return; } String gui... | 1,120,922 |
public static int openError(Shell parentShell, String title, String message, IStatus status, int displayMask) { ErrorDialog dialog = new ErrorDialog(parentShell, title, message, status, displayMask); return dialog.open();} | public static int openError(Shell parentShell, String title, String message, IStatus status, int displayMask) { ErrorDialog dialog = new ErrorDialog(parentShell, title, message, status, displayMask); return dialog.open();} | 1,120,925 |
public void put(String key,String value); | public void put(String key, String[] value); | 1,120,926 |
public final void sourceChanged(final int sourcePriority, final String sourceName, final Object sourceValue) { updateEvaluationContext(sourceName, sourceValue); sourceChanged(sourcePriority); } | public final void sourceChanged(final int sourcePriority, final String sourceName, final Object sourceValue) { updateEvaluationContext(sourceName, sourceValue); sourceChanged(sourcePriority); } | 1,120,927 |
protected void internalRefresh(Widget widget, Object element, boolean doStruct, boolean updateLabels) { if (widget instanceof Item) { if (doStruct) { updatePlus((Item) widget, element); } if (updateLabels || !equals(element, widget.getData())) { ... | protected void internalRefresh(Widget widget, Object element, boolean doStruct, boolean updateLabels) { if (widget instanceof Item) { if (doStruct) { updatePlus((Item) widget, element); } if (updateLabels || !equals(element, widget.getData())) { ... | 1,120,928 |
public static IEditorPart openEditor(IWorkbenchPage page, IFile input) throws PartInitException { //sanity checks if (page == null) { throw new IllegalArgumentException(); } // open the editor on the file IEditorDescriptor editorDesc = getEditorDescriptor(input); ret... | public static IEditorPart openEditor(IWorkbenchPage page, IFile input) throws PartInitException { //sanity checks if (page == null) { throw new IllegalArgumentException(); } // open the editor on the file IEditorDescriptor editorDesc = getEditorDescriptor(input); ret... | 1,120,929 |
public static IEditorPart openEditor(IWorkbenchPage page, IFile input) throws PartInitException { //sanity checks if (page == null) { throw new IllegalArgumentException(); } // open the editor on the file IEditorDescriptor editorDesc = getEditorDescriptor(input); ret... | public static IEditorPart openEditor(IWorkbenchPage page, IFile input) throws PartInitException { //sanity checks if (page == null) { throw new IllegalArgumentException(); } // open the editor on the file IEditorDescriptor editorDesc = getEditorDescriptor(input); ret... | 1,120,930 |
public CommandEvent(final Command command, final boolean categoryChanged, final boolean definedChanged, final boolean descriptionChanged, final boolean handledChanged, final boolean nameChanged, final boolean parametersChanged, final boolean returnTypeChanged) { super(definedChanged, descriptionChanged, nameCha... | public CommandEvent(final Command command, final boolean categoryChanged, final boolean definedChanged, final boolean descriptionChanged, final boolean handledChanged, final boolean nameChanged, final boolean parametersChanged, final boolean returnTypeChanged) { super(definedChanged, descriptionChanged, nameCha... | 1,120,931 |
public static final KeySequence getInstance(final KeyStroke[] keyStrokes) { return new KeySequence(keyStrokes); } | public static final KeySequence getInstance(final KeyStroke[] keyStrokes) { return new KeySequence(keyStrokes); } | 1,120,932 |
public WritableValue(Object valueType, Object initialValue) { this(Realm.getDefault(), valueType, initialValue); } | public WritableValue(Object valueType, Object initialValue) { this(Realm.getDefault(), valueType, initialValue); } | 1,120,933 |
public void insertAfter(String ID, IContributionItem item) { IContributionItem ci = find(ID); if (ci == null) { throw new IllegalArgumentException("can't find ID");//$NON-NLS-1$ } int ix = contributions.indexOf(ci); if (ix >= 0) { // System.out.println("insert after: " + ix... | public void insertAfter(String ID, IContributionItem item) { IContributionItem ci = find(ID); if (ci == null) { throw new IllegalArgumentException("can't find ID");//$NON-NLS-1$ } int ix = contributions.indexOf(ci); if (ix >= 0) { // System.out.println("insert after: " + ix... | 1,120,934 |
public void add(IPerspectiveDescriptor desc) { // Avoid duplicates if (shortcuts.contains(desc)) return; // If the shortcut list will be too long, remove oldest ones int size = shortcuts.size(); int preferredSize = DEFAULT_DEPTH; while (size >= preferredSize) { size--; shortcuts.remove(size); } // I... | public void add(IPerspectiveDescriptor desc) { // Avoid duplicates if (shortcuts.contains(desc)) return; // If the shortcut list will be too long, remove oldest ones int size = shortcuts.size(); int preferredSize = DEFAULT_DEPTH; while (size >= preferredSize) { size--; shortcuts.remove(size); } // I... | 1,120,936 |
public void closeAllPages(boolean save) { if (save) { boolean ret = saveAllPages(true); if (!ret) return; } closeAllPages(); } | public void closeAllPages(boolean save) { if (save) { boolean ret = saveAllPages(true); if (!ret) return; } closeAllPages(); } | 1,120,937 |
public void closeAllPages(boolean save) { if (save) { boolean ret = saveAllPages(true); if (!ret) return; } closeAllPages(); } | public void closeAllPages(boolean save) { if (save) { boolean ret = saveAllPages(true); if (!ret) return; } if (!closing) showEmptyWindowContents(); } | 1,120,938 |
public TreeFrame(AbstractTreeViewer viewer, Object input) { this(viewer); setInput(input); ILabelProvider provider = (ILabelProvider) viewer.getLabelProvider(); String name = provider.getText(input); if(name == null) { name = "";//$NON-NLS-1$ } setName(name); setT... | public TreeFrame(AbstractTreeViewer viewer, Object input) { this(viewer); setInput(input); ILabelProvider provider = (ILabelProvider) viewer.getLabelProvider(); String name = provider.getText(input); if(name == null) { name = "";//$NON-NLS-1$ } setName(name); setT... | 1,120,939 |
public static int compare(List left, List right) { if (left == null && right == null) return 0; else if (left == null) return -1; else if (right == null) return 1; else { int l = left.size(); int r = right.size(); if (l !=... | public static int compare(List left, List right) { if (left == null && right == null) return 0; else if (left == null) return -1; else if (right == null) return 1; else { int l = left.size(); int r = right.size(); if (l !=... | 1,120,940 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.