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 (adminGroups != null) { adminGroups.init(getGroupsCallBack()); } try { env = new CalEnv(pars.getEnvPrefix(), debug); if (pars.getPublicAdmin()) { //adminAutoDeleteSponsors = env.getAppBoolProperty("app.autodeletesponsors"); //adminAutoDeleteLocations = env.getAppBoolProperty("app.autodeletelocations"); adminCanEditAllPublicCategories = env.getAppBoolProperty("allowEditAllCategories"); adminCanEditAllPublicLocations = env.getAppBoolProperty("allowEditAllLocations"); adminCanEditAllPublicSponsors = env.getAppBoolProperty("allowEditAllSponsors"); } timezones = getCal().getTimezonesHandler(); /* Nominate our timezone registry */ System.setProperty("net.fortuna.ical4j.timezone.registry", "org.bedework.icalendar.TimeZoneRegistryFactoryImpl"); } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } }
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 (adminGroups != null) { adminGroups.init(getGroupsCallBack()); } try { if (pars.getPublicAdmin()) { //adminAutoDeleteSponsors = env.getAppBoolProperty("app.autodeletesponsors"); //adminAutoDeleteLocations = env.getAppBoolProperty("app.autodeletelocations"); adminCanEditAllPublicCategories = env.getAppBoolProperty("allowEditAllCategories"); adminCanEditAllPublicLocations = env.getAppBoolProperty("allowEditAllLocations"); adminCanEditAllPublicSponsors = env.getAppBoolProperty("allowEditAllSponsors"); } timezones = getCal().getTimezonesHandler(); /* Nominate our timezone registry */ System.setProperty("net.fortuna.ical4j.timezone.registry", "org.bedework.icalendar.TimeZoneRegistryFactoryImpl"); } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } }
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(), dataDictionary ); startTime = logFile.getStartTime(); roundDate( startTime, true ); if( startTime != null ) startTimeControl.setValue( startTime ); endTime = logFile.getEndTime(); roundDate( endTime, false ); if( endTime != null ) endTimeControl.setValue( endTime ); } catch (FileNotFoundException e1) { } }
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 ); startTime = logFile.getStartTime(); roundDate( startTime, true ); if( startTime != null ) startTimeControl.setValue( startTime ); endTime = logFile.getEndTime(); roundDate( endTime, false ); if( endTime != null ) endTimeControl.setValue( endTime ); } catch (FileNotFoundException e1) { } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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()) { Privilege p = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!aceOpen) { xml.openTag(WebdavTags.ace); emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); aceOpen = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } if (!tagOpen) { xml.openTag(tag); tagOpen = true; } xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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 = (Privilege)it.next(); if (denials == p.getDenial()) { if (!emittedWho) { emitAceWho(ace); emittedWho = true; } xml.openTag(tag); xml.emptyTag(privTags[p.getIndex()]); xml.closeTag(tag); } } if (emittedWho) { xml.closeTag(WebdavTags.ace); } }
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.getWhoType(); /* <!ELEMENT principal (href) | all | authenticated | unauthenticated | property | self)> */ if (whoType == Ace.whoTypeUser) { xml.property(WebdavTags.href, makeUserHref(ace.getWho())); } else if (whoType == Ace.whoTypeGroup) { xml.property(WebdavTags.href, makeGroupHref(ace.getWho())); } else if ((whoType == Ace.whoTypeOwner) || (whoType == Ace.whoTypeOther)) { // Other is !owner xml.openTag(WebdavTags.property); xml.emptyTag(WebdavTags.owner); xml.closeTag(WebdavTags.property); } else if (whoType == Ace.whoTypeUnauthenticated) { xml.emptyTag(WebdavTags.unauthenticated); } else if (whoType == Ace.whoTypeAuthenticated) { xml.emptyTag(WebdavTags.authenticated); } else if (whoType == Ace.whoTypeAll) { xml.emptyTag(WebdavTags.all); } else { throw new CalFacadeException("access.unknown.who"); } xml.closeTag(WebdavTags.principal); if (invert) { xml.closeTag(WebdavTags.invert); } }
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(); /* <!ELEMENT principal (href) | all | authenticated | unauthenticated | property | self)> */ if (whoType == Ace.whoTypeUser) { xml.property(WebdavTags.href, makeUserHref(ace.getWho())); } else if (whoType == Ace.whoTypeGroup) { xml.property(WebdavTags.href, makeGroupHref(ace.getWho())); } else if ((whoType == Ace.whoTypeOwner) || (whoType == Ace.whoTypeOther)) { // Other is !owner xml.openTag(WebdavTags.property); xml.emptyTag(WebdavTags.owner); xml.closeTag(WebdavTags.property); } else if (whoType == Ace.whoTypeUnauthenticated) { xml.emptyTag(WebdavTags.unauthenticated); } else if (whoType == Ace.whoTypeAuthenticated) { xml.emptyTag(WebdavTags.authenticated); } else if (whoType == Ace.whoTypeAll) { xml.emptyTag(WebdavTags.all); } else { throw new CalFacadeException("access.unknown.who"); } xml.closeTag(WebdavTags.principal); if (invert) { xml.closeTag(WebdavTags.invert); } }
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); } } xml.closeTag(WebdavTags.acl); } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } }
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); } } xml.closeTag(WebdavTags.acl); } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } }
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 ActionListener() { public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleLoader.unload(id); } } }); JButton shiftUp = new JButton(Messages.getString("ModuleConfigurationPanel.UP")); //$NON-NLS-1$ shiftUp.setToolTipText(Messages.getString("ModuleConfigurationPanel.UP_TOOLTIP")); //$NON-NLS-1$ shiftUp.addActionListener(new ActionListener() { 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.length-1] - 1); } }); JButton shiftDown = new JButton(Messages.getString("ModuleConfigurationPanel.DOWN")); //$NON-NLS-1$ shiftDown.setToolTipText(Messages.getString("ModuleConfigurationPanel.DOWN_TOOLTIP")); //$NON-NLS-1$ shiftDown.addActionListener(new ActionListener() { 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[selected.length-1] + 1); } }); p.add(remove); p.add(shiftUp); p.add(shiftDown); return p; }
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 ActionListener() { public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleLoader.unload(id); } } }); JButton shiftUp = new JButton(Messages.getString("ModuleConfigurationPanel.UP")); //$NON-NLS-1$ shiftUp.setToolTipText(Messages.getString("ModuleConfigurationPanel.UP_TOOLTIP")); //$NON-NLS-1$ shiftUp.addActionListener(new ActionListener() { 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.length-1] - 1); } }); JButton shiftDown = new JButton(Messages.getString("ModuleConfigurationPanel.DOWN")); //$NON-NLS-1$ shiftDown.setToolTipText(Messages.getString("ModuleConfigurationPanel.DOWN_TOOLTIP")); //$NON-NLS-1$ shiftDown.addActionListener(new ActionListener() { 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[selected.length-1] + 1); } }); p.add(remove); p.add(shiftUp); p.add(shiftDown); return p; }
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 ActionListener() { public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleLoader.unload(id); } } }); JButton shiftUp = new JButton(Messages.getString("ModuleConfigurationPanel.UP")); //$NON-NLS-1$ shiftUp.setToolTipText(Messages.getString("ModuleConfigurationPanel.UP_TOOLTIP")); //$NON-NLS-1$ shiftUp.addActionListener(new ActionListener() { 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.length-1] - 1); } }); JButton shiftDown = new JButton(Messages.getString("ModuleConfigurationPanel.DOWN")); //$NON-NLS-1$ shiftDown.setToolTipText(Messages.getString("ModuleConfigurationPanel.DOWN_TOOLTIP")); //$NON-NLS-1$ shiftDown.addActionListener(new ActionListener() { 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[selected.length-1] + 1); } }); p.add(remove); p.add(shiftUp); p.add(shiftDown); return p; }
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 ActionListener() { public void actionPerformed(ActionEvent e) { JTable table = tablePanel.getTable(); int[] selected = table.getSelectedRows(); for (int i = selected.length - 1; i >= 0; i--) { String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleLoader.unload(id); } } }); JButton shiftUp = new JButton(Messages.getString("ModuleConfigurationPanel.UP")); //$NON-NLS-1$ shiftUp.setToolTipText(Messages.getString("ModuleConfigurationPanel.UP_TOOLTIP")); //$NON-NLS-1$ shiftUp.addActionListener(new ActionListener() { 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.length-1] - 1); } }); JButton shiftDown = new JButton(Messages.getString("ModuleConfigurationPanel.DOWN")); //$NON-NLS-1$ shiftDown.setToolTipText(Messages.getString("ModuleConfigurationPanel.DOWN_TOOLTIP")); //$NON-NLS-1$ shiftDown.addActionListener(new ActionListener() { 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[selected.length-1] + 1); } }); p.add(remove); p.add(shiftUp); p.add(shiftDown); return p; }
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.length-1] - 1); }
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.length-1] - 1); }
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[selected.length-1] + 1); }
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[selected.length-1] + 1); }
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) { return "delete"; } CalSvcI svci = form.getCalSvcI(); boolean add = form.getAddingCategory(); /** We are just updating from the current form values. */ if (!form.validateCategory()) { return "retry"; } /* if a category with the same name and creator exist in categories table then retrieve its categoryid, otherwise add this category to the database and then retrieve its categoryid. */ BwCategory k = form.getCategory(); if (add) { k.setPublick(true); svci.ensureCategoryExists(k); } else { svci.replaceCategory(k); }// form.updatePrefs(null, null, null, null); if (add) { form.getMsg().emit("org.bedework.pubevents.message.category.added"); } else { form.getMsg().emit("org.bedework.pubevents.message.category.updated"); } return "continue"; }
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) { return "delete"; } CalSvcI svci = form.getCalSvcI(); boolean add = form.getAddingCategory(); /** We are just updating from the current form values. */ if (!form.validateCategory()) { return "retry"; } /* if a category with the same name and creator exist in categories table then retrieve its categoryid, otherwise add this category to the database and then retrieve its categoryid. */ BwCategory k = form.getCategory(); if (add) { k.setPublick(true); svci.ensureCategoryExists(k); } else { svci.replaceCategory(k); }// form.updatePrefs(null, null, null, null); if (add) { form.getMsg().emit("org.bedework.client.message.category.added"); } else { form.getMsg().emit("org.bedework.pubevents.message.category.updated"); } return "continue"; }
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) { return "delete"; } CalSvcI svci = form.getCalSvcI(); boolean add = form.getAddingCategory(); /** We are just updating from the current form values. */ if (!form.validateCategory()) { return "retry"; } /* if a category with the same name and creator exist in categories table then retrieve its categoryid, otherwise add this category to the database and then retrieve its categoryid. */ BwCategory k = form.getCategory(); if (add) { k.setPublick(true); svci.ensureCategoryExists(k); } else { svci.replaceCategory(k); }// form.updatePrefs(null, null, null, null); if (add) { form.getMsg().emit("org.bedework.pubevents.message.category.added"); } else { form.getMsg().emit("org.bedework.pubevents.message.category.updated"); } return "continue"; }
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) { return "delete"; } CalSvcI svci = form.getCalSvcI(); boolean add = form.getAddingCategory(); /** We are just updating from the current form values. */ if (!form.validateCategory()) { return "retry"; } /* if a category with the same name and creator exist in categories table then retrieve its categoryid, otherwise add this category to the database and then retrieve its categoryid. */ BwCategory k = form.getCategory(); if (add) { k.setPublick(true); svci.ensureCategoryExists(k); } else { svci.replaceCategory(k); }// form.updatePrefs(null, null, null, null); if (add) { form.getMsg().emit("org.bedework.pubevents.message.category.added"); } else { form.getMsg().emit("org.bedework.client.message.category.updated"); } return "continue"; }
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.view"); if (vn == null) { vn = "week"; } } catch (Throwable t) { System.out.println("Exception setting current view"); vn = "week"; } curViewPeriod = -1; for (int i = 1; i < BedeworkDefs.viewPeriodNames.length; i++) { if (BedeworkDefs.viewPeriodNames[i].startsWith(vn)) { curViewPeriod = i; break; } } if (curViewPeriod < 0) { curViewPeriod = BedeworkDefs.weekView; } Locale loc = Locale.getDefault(); // XXX Locale setViewMcDate(new MyCalendarVO(new Date(System.currentTimeMillis()), loc)); refreshView(); } } catch (Throwable t) { getLog().error("Exception in getCurTimeView", t); } if (curTimeView == null) { getLog().warn("Null time view!!!!!!!!!!!");// } else if (debug) {// getLog().debug("Return a time view"); } return curTimeView; }
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"); if (vn == null) { vn = "week"; } } catch (Throwable t) { System.out.println("Exception setting current view"); vn = "week"; } curViewPeriod = -1; for (int i = 1; i < BedeworkDefs.viewPeriodNames.length; i++) { if (BedeworkDefs.viewPeriodNames[i].startsWith(vn)) { curViewPeriod = i; break; } } if (curViewPeriod < 0) { curViewPeriod = BedeworkDefs.weekView; } Locale loc = Locale.getDefault(); // XXX Locale setViewMcDate(new MyCalendarVO(new Date(System.currentTimeMillis()), loc)); refreshView(); } } catch (Throwable t) { getLog().error("Exception in getCurTimeView", t); } if (curTimeView == null) { getLog().warn("Null time view!!!!!!!!!!!");// } else if (debug) {// getLog().debug("Return a time view"); } return curTimeView; }
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(keys); String[][] vars = new String[sysLen+2][2]; vars[0][0] = "Program name"; vars[0][1] = EVI.TITLE; vars[1][0] = "Program version"; vars[1][1] = String.valueOf(EVI.VERSION); for (int i = 2; i < sysLen; i++) { vars[i][0] = keys[i]; vars[i][1] = sysProps.getProperty(keys[i]); } JTable table = new JTable(vars, new String[] { Messages.getString("EnvironmentPanel.VARIABLE"), Messages.getString("EnvironmentPanel.VALUE") }) { //$NON-NLS-1$ //$NON-NLS-2$ private static final long serialVersionUID = 2298937007677219773L; public boolean isCellEditable(int x, int y) { return false; } }; JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); JPanel panel = new JPanel(new GridLayout(1, 0)); panel.add(scrollPane); return panel; }
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(keys); String[][] vars = new String[sysLen+2][2]; vars[0][0] = "Program name"; vars[0][1] = EVI.TITLE; vars[1][0] = "Program version"; vars[1][1] = String.valueOf(EVI.VERSION); for (int i = 2; i < sysLen; i++) { vars[i][0] = keys[i]; vars[i][1] = sysProps.getProperty(keys[i]); } JTable table = new JTable(vars, new String[] { Messages.getString("EnvironmentPanel.VARIABLE"), Messages.getString("EnvironmentPanel.VALUE") }) { //$NON-NLS-1$ //$NON-NLS-2$ private static final long serialVersionUID = 2298937007677219773L; public boolean isCellEditable(int x, int y) { return false; } }; JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); JPanel panel = new JPanel(new GridLayout(1, 0)); panel.add(scrollPane); return panel; }
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 && _dynamicFields.size() > 0) { if (_queryPK != null) { Iterator iter = _dynamicFields.iterator(); while (iter.hasNext()) { ReportableField element = (ReportableField) iter.next(); String prmName = element.getName(); String tmpPrmLabel = (String) _parameterMap.get(_prmLablePrefix + prmName); String tmpPrmValue = (String) _parameterMap.get(prmName); int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmValueWidth; designTemplate.addHeaderParameter(_prmLablePrefix + prmName, tmpPrmLabelWidth, prmName, String.class, tmpPrmValueWidth); } } else { Iterator iter = _dynamicFields.iterator(); while (iter.hasNext()) { ClassDescription element = (ClassDescription) iter.next(); String prmName = element.getName(); String tmpPrmLabel = (String) _parameterMap.get(_prmLablePrefix + prmName); String tmpPrmValue = (String) _parameterMap.get(prmName); int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth; designTemplate.addHeaderParameter(_prmLablePrefix + prmName, tmpPrmLabelWidth, prmName, String.class, tmpPrmValueWidth); } } } if (_extraHeaderParameters != null) { Iterator keyIter = _extraHeaderParameters.keySet().iterator(); Iterator valueIter = _extraHeaderParameters.values().iterator(); while (keyIter.hasNext()) { String keyLabel = (String) keyIter.next(); String valueLabel = (String) valueIter.next(); if (keyIter.hasNext()) { String keyValue = (String) keyIter.next(); String valueValue = (String) valueIter.next(); String tmpPrmLabel = valueLabel; String tmpPrmValue = valueValue; int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth; designTemplate.addHeaderParameter(keyLabel, tmpPrmLabelWidth, keyValue, String.class, tmpPrmValueWidth); } } } if (_allFields != null && _allFields.size() > 0) { //System.out.println("ReportGenerator."); //TMP //TODO get columnspacing (15) and it to columnsWidth; int columnsWidth = columnWidth * _allFields.size() + 15 * (_allFields.size() - 1); //TMP //TODO get page Margins (20) and add them to pageWidth; designTemplate.setPageWidth(columnsWidth + 20 + 20); designTemplate.setColumnWidth(columnsWidth); // Locale currentLocale = iwc.getCurrentLocale(); Iterator iter = _allFields.iterator(); if (isMethodInvocation) { while (iter.hasNext()) { ReportableField field = (ReportableField) iter.next(); String name = field.getName(); _parameterMap.put(name, field.getLocalizedName(currentLocale)); designTemplate.addField(name, field.getValueClass(), columnWidth); } } else { while (iter.hasNext()) { try { QueryFieldPart element = (QueryFieldPart) iter.next(); ReportableField field = new ReportableField(element.getIDOEntityField()); String name = field.getName(); _parameterMap.put(name, field.getLocalizedName(currentLocale)); designTemplate.addField(name, field.getValueClass(), columnWidth); } catch (IDOLookupException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } } } } designTemplate.close(); _design = designTemplate.getJasperDesign(iwc); }
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 && _dynamicFields.size() > 0) { if (_queryPK != null) { Iterator iter = _dynamicFields.iterator(); while (iter.hasNext()) { ReportableField element = (ReportableField) iter.next(); String prmName = element.getName(); String tmpPrmLabel = (String) _parameterMap.get(_prmLablePrefix + prmName); String tmpPrmValue = (String) _parameterMap.get(prmName); int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth; designTemplate.addHeaderParameter(_prmLablePrefix + prmName, tmpPrmLabelWidth, prmName, String.class, tmpPrmValueWidth); } } else { Iterator iter = _dynamicFields.iterator(); while (iter.hasNext()) { ClassDescription element = (ClassDescription) iter.next(); String prmName = element.getName(); String tmpPrmLabel = (String) _parameterMap.get(_prmLablePrefix + prmName); String tmpPrmValue = (String) _parameterMap.get(prmName); int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth; designTemplate.addHeaderParameter(_prmLablePrefix + prmName, tmpPrmLabelWidth, prmName, String.class, tmpPrmValueWidth); } } } if (_extraHeaderParameters != null) { Iterator keyIter = _extraHeaderParameters.keySet().iterator(); Iterator valueIter = _extraHeaderParameters.values().iterator(); while (keyIter.hasNext()) { String keyLabel = (String) keyIter.next(); String valueLabel = (String) valueIter.next(); if (keyIter.hasNext()) { String keyValue = (String) keyIter.next(); String valueValue = (String) valueIter.next(); String tmpPrmLabel = valueLabel; String tmpPrmValue = valueValue; int tmpPrmLabelWidth = (tmpPrmLabel != null) ? calculateTextFieldWidthForString(tmpPrmLabel) : prmLableWidth; int tmpPrmValueWidth = (tmpPrmValue != null) ? calculateTextFieldWidthForString(tmpPrmValue) : prmValueWidth; designTemplate.addHeaderParameter(keyLabel, tmpPrmLabelWidth, keyValue, String.class, tmpPrmValueWidth); } } } if (_allFields != null && _allFields.size() > 0) { //System.out.println("ReportGenerator."); //TMP //TODO get columnspacing (15) and it to columnsWidth; int columnsWidth = columnWidth * _allFields.size() + 15 * (_allFields.size() - 1); //TMP //TODO get page Margins (20) and add them to pageWidth; designTemplate.setPageWidth(columnsWidth + 20 + 20); designTemplate.setColumnWidth(columnsWidth); // Locale currentLocale = iwc.getCurrentLocale(); Iterator iter = _allFields.iterator(); if (isMethodInvocation) { while (iter.hasNext()) { ReportableField field = (ReportableField) iter.next(); String name = field.getName(); _parameterMap.put(name, field.getLocalizedName(currentLocale)); designTemplate.addField(name, field.getValueClass(), columnWidth); } } else { while (iter.hasNext()) { try { QueryFieldPart element = (QueryFieldPart) iter.next(); ReportableField field = new ReportableField(element.getIDOEntityField()); String name = field.getName(); _parameterMap.put(name, field.getLocalizedName(currentLocale)); designTemplate.addField(name, field.getValueClass(), columnWidth); } catch (IDOLookupException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } } } } designTemplate.close(); _design = designTemplate.getJasperDesign(iwc); }
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); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.gray); createContents(); }
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); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.gray); createContents(); }
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); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.gray); createContents(); }
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); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.gray); createContents(); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); RectangleFigure referencedMetaclassFigure_LabelPane0 = new RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_className1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
private void createContents() { org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_FixedLabelPane0.setFill(false); referencedMetaclassFigure_FixedLabelPane0.setFillXOR(false); referencedMetaclassFigure_FixedLabelPane0.setOutline(false); referencedMetaclassFigure_FixedLabelPane0.setOutlineXOR(false); referencedMetaclassFigure_FixedLabelPane0.setLineWidth(1); referencedMetaclassFigure_FixedLabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_FixedLabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_FixedLabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_FixedLabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_FixedLabelPane0, constraintReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_FixedLabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_FixedLabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_FixedLabelPane0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel referencedMetaclassFigure_fixed_metaclass1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); referencedMetaclassFigure_fixed_metaclass1.setText("\u00ABmetaclass\u00BB"); referencedMetaclassFigure_FixedLabelPane0.add(referencedMetaclassFigure_fixed_metaclass1); org.eclipse.draw2d.RectangleFigure referencedMetaclassFigure_LabelPane0 = new org.eclipse.draw2d.RectangleFigure(); referencedMetaclassFigure_LabelPane0.setFill(false); referencedMetaclassFigure_LabelPane0.setFillXOR(false); referencedMetaclassFigure_LabelPane0.setOutline(false); referencedMetaclassFigure_LabelPane0.setOutlineXOR(false); referencedMetaclassFigure_LabelPane0.setLineWidth(1); referencedMetaclassFigure_LabelPane0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintReferencedMetaclassFigure_LabelPane0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintReferencedMetaclassFigure_LabelPane0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.CENTER; constraintReferencedMetaclassFigure_LabelPane0.horizontalIndent = 0; constraintReferencedMetaclassFigure_LabelPane0.horizontalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.verticalSpan = 1; constraintReferencedMetaclassFigure_LabelPane0.grabExcessHorizontalSpace = true; constraintReferencedMetaclassFigure_LabelPane0.grabExcessVerticalSpace = true; this.add(referencedMetaclassFigure_LabelPane0, constraintReferencedMetaclassFigure_LabelPane0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutReferencedMetaclassFigure_LabelPane0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); referencedMetaclassFigure_LabelPane0.setLayoutManager(layoutReferencedMetaclassFigure_LabelPane0); WrapLabel referencedMetaclassFigure_className1 = new WrapLabel(); referencedMetaclassFigure_className1.setText(""); referencedMetaclassFigure_LabelPane0.add(referencedMetaclassFigure_className1); setFigureReferencedMetaclassFigure_className(referencedMetaclassFigure_className1); }
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 = imported instanceof org.eclipse.uml2.uml.Class && ((org.eclipse.uml2.uml.Class) imported).isMetaclass(); } figure.setHasActualMetaclassImport(hasMetaclass); }
private void refreshHasImportedMetaclass(ReferencedMetaclassFigure figure) { ElementImport elementImport = (ElementImport) resolveSemanticElement(); //OCL here (#161545) boolean hasMetaclass = false; if (elementImport != null) { PackageableElement imported = elementImport.getImportedElement(); hasMetaclass = imported instanceof Class && ((Class) imported).isMetaclass(); } figure.setHasActualMetaclassImport(hasMetaclass); }
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 * the form so we can display the page */ int id = getIntReqPar(request, "spid", -1); BwSponsor sponsor = null; if (id >= 0) { sponsor = form.getCalSvcI().getSponsor(id); } if (debug) { if (sponsor == null) { logIt("No sponsor with id " + id); } else { logIt("Retrieved sponsor " + sponsor.getId()); } } form.assignAddingSponsor(false); form.setSponsor(sponsor); if (sponsor == null) { form.getErr().emit("org.bedework.pubevents.error.nosuchsponsor", id); return "notFound"; } return "continue"; }
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 * the form so we can display the page */ int id = getIntReqPar(request, "spid", -1); BwSponsor sponsor = null; if (id >= 0) { sponsor = form.getCalSvcI().getSponsor(id); } if (debug) { if (sponsor == null) { logIt("No sponsor with id " + id); } else { logIt("Retrieved sponsor " + sponsor.getId()); } } form.assignAddingSponsor(false); form.setSponsor(sponsor); if (sponsor == null) { form.getErr().emit("org.bedework.client.error.nosuchsponsor", id); return "notFound"; } return "continue"; }
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 not create test directories and files"); } FileWriter fw = new FileWriter(at_test_testfile_at); fw.write("def x := 1; \n self.x"); fw.close(); } catch (IOException e) { fail(e.getMessage()); } }
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 not create test directories and files"); } FileWriter fw = new FileWriter(at_test_testfile_at); fw.write("def x := 1; \n def y := /.tmp; \n ~.x"); fw.close(); } catch (IOException e) { fail(e.getMessage()); } }
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 assertTrue(at instanceof NATNamespace); assertEquals("<ns:/at>", at.meta_print().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.test which should load test.at and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("testfile")); assertEquals(NATNumber.ONE, result); } catch (NATException e) { fail(e.getMessage()); } }
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().javaValue); ATObject test = at.meta_select(at, AGSymbol.alloc("test")); // the test slot should equal a namespace object assertTrue(test instanceof NATNamespace); assertEquals("<ns:/at/test>", test.meta_print().javaValue); // select at.test.test which should load test.at and return 1 ATObject result = test.meta_select(test, AGSymbol.alloc("testfile")); assertEquals(NATNumber.ONE, result); } catch (NATException e) { fail(e.getMessage()); } }
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.beginTransaction(); boolean userCreated = cali.init(pars.getAuthUser(), pars.getUser(), pars.getPublicAdmin(), getGroups(), pars.getSynchId(), debug); // Prepare for call below. publicUserAccount = cali.getSyspars().getPublicUser(); BwUser auth;// XXX if (isPublicAdmin() || isGuest()) { if (isGuest()) { auth = getPublicUser(); } else { auth = cali.getUser(pars.getAuthUser()); } if (debug) { trace("Got auth user object " + auth); } dbi = new CalSvcDb(this, auth); if (userCreated) { initUser(auth, cali); } if (debug) { trace("PublicAdmin: " + pars.getPublicAdmin() + " user: " + pars.getUser()); } if (pars.getPublicAdmin()) { /* We may be running as a different user. The preferences we want to see * are those of the user we are running as - i.e. the 'run.as' user for * not those of the authenticated user. */ dbi.close(); BwUser user = cali.getUser(pars.getUser()); dbi = new CalSvcDb(this, user); } return cali; } finally { cali.endTransaction(); cali.close(); } }
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.beginTransaction(); boolean userCreated = cali.init(pars.getAuthUser(), pars.getUser(), pars.getPublicAdmin(), getGroups(), pars.getSynchId(), debug); // Prepare for call below. publicUserAccount = cali.getSyspars().getPublicUser(); BwUser auth;// XXX if (isPublicAdmin() || isGuest()) { if (isGuest()) { auth = getPublicUser(); } else { auth = cali.getUser(pars.getAuthUser()); } if (debug) { trace("Got auth user object " + auth); } dbi = new CalSvcDb(this, auth); if (userCreated) { initUser(auth, cali); } if (debug) { trace("PublicAdmin: " + pars.getPublicAdmin() + " user: " + pars.getUser()); } if (pars.getPublicAdmin()) { /* We may be running as a different user. The preferences we want to see * are those of the user we are running as - i.e. the 'run.as' user for * not those of the authenticated user. */ dbi.close(); BwUser user = cali.getUser(pars.getUser()); dbi = new CalSvcDb(this, user); } return cali; } finally { cali.endTransaction(); cali.close(); } }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(Collection subs, BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); int type = BwFreeBusyComponent.typeBusy; if (BwEvent.statusTentative.equals(ev.getStatus())) { type = BwFreeBusyComponent.typeBusyTentative; } eventPeriods.add(new EventPeriod(psdt, pedt, type)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); lastType = ep.type; } else if ((lastType != ep.type) || ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if ((fbc == null) || (lastType != fbc.getType())) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if ((fbc == null) || (lastType != fbc.getType())) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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 new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; /* See if the calendar is a user root. */ if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; // First element is empty string if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } } if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
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(msgSend); ATMirror receiver = (ATMirror)msgSendMirror.meta_select( msgSendMirror, AGSymbol.alloc("receiver")); receiver.base_getBase().asClosure().meta_apply(NATTable.EMPTY); msgSendMirror.meta_assignField(AGSymbol.alloc("receiver"), closures); ATMirror result = (ATMirror)msgSendMirror.meta_invoke( msgSendMirror, AGSymbol.alloc("eval"), new NATTable(new ATObject[] { new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_) })); result.base_getBase().asClosure().meta_apply(NATTable.EMPTY); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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(msgSend); ATMirror receiver = (ATMirror)msgSendMirror.meta_select( msgSendMirror, AGSymbol.alloc("receiver")); receiver.base_getBase().asClosure().meta_apply(NATTable.EMPTY); msgSendMirror.meta_assignField(AGSymbol.alloc("receiver"), NATMirrorFactory._INSTANCE_.base_createMirror(closures)); ATMirror result = (ATMirror)msgSendMirror.meta_invoke( msgSendMirror, AGSymbol.alloc("eval"), new NATTable(new ATObject[] { new NATContext(lexicalRoot, lexicalRoot, NATNil._INSTANCE_) })); result.base_getBase().asClosure().meta_apply(NATTable.EMPTY); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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_)); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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, lexicalRoot, NATNil._INSTANCE_)); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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_)); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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_)); } catch (NATException e) { e.printStackTrace(); fail("exception: "+ e); } }
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.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
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(semanticHint); } super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted); setupCompartmentTitle(view); setupCompartmentCollapsed(view); if (!ProfileEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) { EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation(); shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$ shortcutAnnotation.getDetails().put("modelID", ProfileEditPart.MODEL_ID); //$NON-NLS-1$ view.getEAnnotations().add(shortcutAnnotation); } }
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(containerView, view, semanticAdapter, semanticHint, index, persisted); setupCompartmentTitle(view); setupCompartmentCollapsed(view); if (!ProfileEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) { EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation(); shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$ shortcutAnnotation.getDetails().put("modelID", ProfileEditPart.MODEL_ID); //$NON-NLS-1$ view.getEAnnotations().add(shortcutAnnotation); } }
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(); } String path = container.getPath(); PathInfo pi = pathInfoMap.getInfo(path); if (pi == null) { pi = getPathInfo(container); pathInfoMap.putInfo(path, pi); } char[] aclChars = pi.encoded; if (ent instanceof BwCalendar) { return aclChars; } /* Create a merged access string from the entity access and the * container access */ String entAccess = ent.getAccess(); /* if (entAccess == null) { // Nomerge needed return aclChars; } */ try { Acl acl = new Acl(); if (entAccess != null) { acl.decode(entAccess.toCharArray()); } acl.merge(aclChars); return acl.encodeAll(); } catch (Throwable t) { throw new CalFacadeException(t); } } /* This is a way of making other objects sort of shareable. * The objects are locations, sponsors and categories. * * We store the default access in the owner principal and manipulate that to give * us some degree of sharing. * * In effect, the owner becomes the container for the object. */ String aclString = null; String entAccess = ent.getAccess(); BwUser owner = ent.getOwner(); if (ent instanceof BwCategory) { aclString = owner.getCategoryAccess(); } else if (ent instanceof BwLocation) { aclString = owner.getLocationAccess(); } else if (ent instanceof BwSponsor) { aclString = owner.getSponsorAccess(); } if (aclString == null) { if (entAccess == null) { if (ent.getPublick()) { return access.getDefaultPublicAccess().toCharArray(); } return access.getDefaultPersonalAccess().toCharArray(); } return entAccess.toCharArray(); } if (entAccess == null) { return aclString.toCharArray(); } try { Acl acl = new Acl(); acl.decode(entAccess.toCharArray()); acl.merge(aclString.toCharArray()); return acl.getEncoded(); } catch (Throwable t) { throw new CalFacadeException(t); } }
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(); } String path = container.getPath(); PathInfo pi = pathInfoMap.getInfo(path); if (pi == null) { pi = getPathInfo(container); pathInfoMap.putInfo(path, pi); } char[] aclChars = pi.encoded; if (ent instanceof BwCalendar) { return aclChars; } /* Create a merged access string from the entity access and the * container access */ String entAccess = ent.getAccess(); /* if (entAccess == null) { // Nomerge needed return aclChars; } */ try { Acl acl = new Acl(); if (entAccess != null) { acl.decode(entAccess.toCharArray()); } acl.merge(aclChars); return acl.encodeAll(); } catch (Throwable t) { throw new CalFacadeException(t); } } /* This is a way of making other objects sort of shareable. * The objects are locations, sponsors and categories. * * We store the default access in the owner principal and manipulate that to give * us some degree of sharing. * * In effect, the owner becomes the container for the object. */ String aclString = null; String entAccess = ent.getAccess(); BwUser owner = ent.getOwner(); if (ent instanceof BwCategory) { aclString = owner.getCategoryAccess(); } else if (ent instanceof BwLocation) { aclString = owner.getLocationAccess(); } else if (ent instanceof BwSponsor) { aclString = owner.getSponsorAccess(); } if (aclString == null) { if (entAccess == null) { if (ent.getPublick()) { return Access.getDefaultPublicAccess().toCharArray(); } return access.getDefaultPersonalAccess().toCharArray(); } return entAccess.toCharArray(); } if (entAccess == null) { return aclString.toCharArray(); } try { Acl acl = new Acl(); acl.decode(entAccess.toCharArray()); acl.merge(aclString.toCharArray()); return acl.getEncoded(); } catch (Throwable t) { throw new CalFacadeException(t); } }
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(); } String path = container.getPath(); PathInfo pi = pathInfoMap.getInfo(path); if (pi == null) { pi = getPathInfo(container); pathInfoMap.putInfo(path, pi); } char[] aclChars = pi.encoded; if (ent instanceof BwCalendar) { return aclChars; } /* Create a merged access string from the entity access and the * container access */ String entAccess = ent.getAccess(); /* if (entAccess == null) { // Nomerge needed return aclChars; } */ try { Acl acl = new Acl(); if (entAccess != null) { acl.decode(entAccess.toCharArray()); } acl.merge(aclChars); return acl.encodeAll(); } catch (Throwable t) { throw new CalFacadeException(t); } } /* This is a way of making other objects sort of shareable. * The objects are locations, sponsors and categories. * * We store the default access in the owner principal and manipulate that to give * us some degree of sharing. * * In effect, the owner becomes the container for the object. */ String aclString = null; String entAccess = ent.getAccess(); BwUser owner = ent.getOwner(); if (ent instanceof BwCategory) { aclString = owner.getCategoryAccess(); } else if (ent instanceof BwLocation) { aclString = owner.getLocationAccess(); } else if (ent instanceof BwSponsor) { aclString = owner.getSponsorAccess(); } if (aclString == null) { if (entAccess == null) { if (ent.getPublick()) { return access.getDefaultPublicAccess().toCharArray(); } return access.getDefaultPersonalAccess().toCharArray(); } return entAccess.toCharArray(); } if (entAccess == null) { return aclString.toCharArray(); } try { Acl acl = new Acl(); acl.decode(entAccess.toCharArray()); acl.merge(aclString.toCharArray()); return acl.getEncoded(); } catch (Throwable t) { throw new CalFacadeException(t); } }
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(); } String path = container.getPath(); PathInfo pi = pathInfoMap.getInfo(path); if (pi == null) { pi = getPathInfo(container); pathInfoMap.putInfo(path, pi); } char[] aclChars = pi.encoded; if (ent instanceof BwCalendar) { return aclChars; } /* Create a merged access string from the entity access and the * container access */ String entAccess = ent.getAccess(); /* if (entAccess == null) { // Nomerge needed return aclChars; } */ try { Acl acl = new Acl(); if (entAccess != null) { acl.decode(entAccess.toCharArray()); } acl.merge(aclChars); return acl.encodeAll(); } catch (Throwable t) { throw new CalFacadeException(t); } } /* This is a way of making other objects sort of shareable. * The objects are locations, sponsors and categories. * * We store the default access in the owner principal and manipulate that to give * us some degree of sharing. * * In effect, the owner becomes the container for the object. */ String aclString = null; String entAccess = ent.getAccess(); BwUser owner = ent.getOwner(); if (ent instanceof BwCategory) { aclString = owner.getCategoryAccess(); } else if (ent instanceof BwLocation) { aclString = owner.getLocationAccess(); } else if (ent instanceof BwSponsor) { aclString = owner.getSponsorAccess(); } if (aclString == null) { if (entAccess == null) { if (ent.getPublick()) { return access.getDefaultPublicAccess().toCharArray(); } return Access.getDefaultPersonalAccess().toCharArray(); } return entAccess.toCharArray(); } if (entAccess == null) { return aclString.toCharArray(); } try { Acl acl = new Acl(); acl.decode(entAccess.toCharArray()); acl.merge(aclString.toCharArray()); return acl.getEncoded(); } catch (Throwable t) { throw new CalFacadeException(t); } }
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(dt2.getDate()); } catch (CalFacadeException cfe) { throw new RuntimeException(cfe); } }
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(dt2.getDate()); } catch (CalFacadeException cfe) { throw new RuntimeException(cfe); } }
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); String currency = (String) map.get(TPOS3Client.PN_CURRENCY); String monthExpires = expires.substring(0, 2); String yearExpires = expires.substring(2, 4); String authIDRsp = (String) map.get(TPOS3Client.PN_AUTHORIDENTIFYRSP); doAuth(cardnumber, monthExpires, yearExpires, Double.parseDouble(amount) / (double) amountMultiplier, currency, "5", null, authIDRsp); }
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); String currency = (String) map.get(TPOS3Client.PN_CURRENCY); String monthExpires = expires.substring(0, 2); String yearExpires = expires.substring(2, 4); String authIDRsp = (String) map.get(TPOS3Client.PN_AUTHORIDENTIFYRSP); doAuth(cardnumber, monthExpires, yearExpires, Double.parseDouble(amount) / (double) amountMultiplier, currency, "1", null, authIDRsp); }
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.encodeToValidExcelSheetName(nameOfReport)); System.out.println(nameOfReport); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport)); int rowIndex = 0; //-- Report Name --// // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow((short)rowIndex++); // Create a cell and put a value in it. HSSFCell cell = row.createCell((short)0); // Create a new font and alter it. HSSFFont font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // Fonts are set into a style so create a new one to use. HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // Create a cell and put a value in it. cell.setCellValue(nameOfReport); cell.setCellStyle(style); //-- Report Parameters --// rowIndex++; HSSFRow row1 = null; String parameterString = ""; List labels = description.getListOfHeaderParameterLabelKeys(); List parameters = description.getListOfHeaderParameterKeys(); Iterator labelIter = labels.iterator(); Iterator parameterIter = parameters.iterator(); boolean newLineForeEachParameter = description.doCreateNewLineForEachParameter(); while (labelIter.hasNext() && parameterIter.hasNext()) { String label = description.getParameterOrLabelName((String)labelIter.next()); String parameter = description.getParameterOrLabelName((String)parameterIter.next()); if(newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(label + " "+parameter); } else { parameterString += label + " "+parameter+" "; } } if(!newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(parameterString); } rowIndex++; //-- Report ColumnHeader --// List fields = description.getListOfFields(); HSSFRow headerRow = sheet.createRow((short)rowIndex++); HSSFCellStyle headerCellStyle = wb.createCellStyle(); headerCellStyle.setWrapText( true ); headerCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); headerCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); HSSFFont headerCellFont = wb.createFont(); //headerCellFont.setFontHeightInPoints((short)12); headerCellFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); headerCellStyle.setFont(headerCellFont); int colIndex = 0; int columnWithUnit = 256; // the unit is 1/256 of a character int numberOfCharactersPerLineInLongTextFields = 60; int numberOfCharactersPerLineInRatherLongTextFields = 35; int numberOfCharactersPerLineInUndifinedTextFields = 20; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell headerCell = headerRow.createCell((short)colIndex); headerCell.setCellValue((String)description.getColumnName(field)); headerCell.setCellStyle(headerCellStyle); //column width int fieldsMaxChar = field.getMaxNumberOfCharacters(); int colWith = numberOfCharactersPerLineInRatherLongTextFields*columnWithUnit; //default, can be rather long text if(fieldsMaxChar > 0 && fieldsMaxChar < numberOfCharactersPerLineInRatherLongTextFields){ colWith = (fieldsMaxChar+1)*columnWithUnit; // short fields } else if(fieldsMaxChar > 500){ // when the field is set to be able to contain very long text colWith = numberOfCharactersPerLineInLongTextFields*columnWithUnit; //can be very long text } else if(fieldsMaxChar < 0){ colWith = numberOfCharactersPerLineInUndifinedTextFields*columnWithUnit; } sheet.setColumnWidth((short)colIndex,(short)colWith); } //-- Report ColumnDetail --// try { HSSFCellStyle dataCellStyle = wb.createCellStyle(); dataCellStyle.setWrapText( true ); dataCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); sheet.createFreezePane( 0, rowIndex ); while(reportData.next()){ HSSFRow dataRow = sheet.createRow((short)rowIndex++); colIndex = 0; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell dataCell = dataRow.createCell((short)colIndex); Object fieldValue = reportData.getFieldValue(field); if(fieldValue != null){ dataCell.setCellValue(String.valueOf(fieldValue)); } dataCell.setCellStyle(dataCellStyle); } } } catch (JRException e) { //-- Exception fetching data --// HSSFRow exceptionRow = sheet.createRow((short)rowIndex++); HSSFCell exceptionCell = exceptionRow.createCell((short)0); // Create a new font and alter it. HSSFFont exceptionFont = wb.createFont(); exceptionFont.setFontName("Courier New"); exceptionFont.setItalic(true); // Fonts are set into a style so create a new one to use. HSSFCellStyle exceptionStyle = wb.createCellStyle(); exceptionStyle.setFont(exceptionFont); // Create a cell and put a value in it. exceptionCell.setCellValue("Error occurred while getting data. Check log for more details."); exceptionCell.setCellStyle(exceptionStyle); e.printStackTrace(); } // Write the output to a file FileOutputStream fileOut = new FileOutputStream(filePathAndName); wb.write(fileOut); fileOut.close(); }
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.encodeToValidExcelSheetName(nameOfReport)); System.out.println(nameOfReport); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport)); int rowIndex = 0; //-- Report Name --// // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow((short)rowIndex++); // Create a cell and put a value in it. HSSFCell cell = row.createCell((short)0); // Create a new font and alter it. HSSFFont font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // Fonts are set into a style so create a new one to use. HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // Create a cell and put a value in it. cell.setCellValue(nameOfReport); cell.setCellStyle(style); //-- Report Parameters --// rowIndex++; HSSFRow row1 = null; String parameterString = ""; List labels = description.getListOfHeaderParameterLabelKeys(); List parameters = description.getListOfHeaderParameterKeys(); Iterator labelIter = labels.iterator(); Iterator parameterIter = parameters.iterator(); boolean newLineForeEachParameter = description.doCreateNewLineForEachParameter(); while (labelIter.hasNext() && parameterIter.hasNext()) { String label = description.getParameterOrLabelName((String)labelIter.next()); String parameter = description.getParameterOrLabelName((String)parameterIter.next()); if(newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(label + " "+parameter); } else { parameterString += label + " "+parameter+" "; } } if(!newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(parameterString); } rowIndex++; //-- Report ColumnHeader --// List fields = description.getListOfFields(); HSSFRow headerRow = sheet.createRow((short)rowIndex++); HSSFCellStyle headerCellStyle = wb.createCellStyle(); headerCellStyle.setWrapText( true ); headerCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); headerCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); HSSFFont headerCellFont = wb.createFont(); //headerCellFont.setFontHeightInPoints((short)12); headerCellFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); headerCellStyle.setFont(headerCellFont); int colIndex = 0; int columnWithUnit = 256; // the unit is 1/256 of a character int numberOfCharactersPerLineInLongTextFields = 60; int numberOfCharactersPerLineInRatherLongTextFields = 35; int numberOfCharactersPerLineInUndifinedTextFields = 20; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell headerCell = headerRow.createCell((short)colIndex); headerCell.setCellValue((String)description.getColumnName(field)); headerCell.setCellStyle(headerCellStyle); //column width int fieldsMaxChar = field.getMaxNumberOfCharacters(); int colWith = numberOfCharactersPerLineInRatherLongTextFields*columnWithUnit; //default, can be rather long text if(fieldsMaxChar > 0 && fieldsMaxChar < numberOfCharactersPerLineInRatherLongTextFields){ colWith = (fieldsMaxChar+1)*columnWithUnit; // short fields } else if(fieldsMaxChar > 500){ // when the field is set to be able to contain very long text colWith = numberOfCharactersPerLineInLongTextFields*columnWithUnit; //can be very long text } else if(fieldsMaxChar < 0){ colWith = numberOfCharactersPerLineInUndifinedTextFields*columnWithUnit; } sheet.setColumnWidth((short)colIndex,(short)colWith); } //-- Report ColumnDetail --// try { HSSFCellStyle dataCellStyle = wb.createCellStyle(); dataCellStyle.setWrapText( true ); dataCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); sheet.createFreezePane( 0, rowIndex ); while(reportData.next()){ HSSFRow dataRow = sheet.createRow((short)rowIndex++); colIndex = 0; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell dataCell = dataRow.createCell((short)colIndex); Object fieldValue = reportData.getFieldValue(field); if(fieldValue != null){ dataCell.setCellValue(String.valueOf(fieldValue)); } dataCell.setCellStyle(dataCellStyle); } } } catch (JRException e) { //-- Exception fetching data --// HSSFRow exceptionRow = sheet.createRow((short)rowIndex++); HSSFCell exceptionCell = exceptionRow.createCell((short)0); // Create a new font and alter it. HSSFFont exceptionFont = wb.createFont(); exceptionFont.setFontName("Courier New"); exceptionFont.setItalic(true); // Fonts are set into a style so create a new one to use. HSSFCellStyle exceptionStyle = wb.createCellStyle(); exceptionStyle.setFont(exceptionFont); // Create a cell and put a value in it. exceptionCell.setCellValue("Error occurred while getting data. Check log for more details."); exceptionCell.setCellStyle(exceptionStyle); e.printStackTrace(); } // Write the output to a file FileOutputStream fileOut = new FileOutputStream(filePathAndName); wb.write(fileOut); fileOut.close(); }
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.encodeToValidExcelSheetName(nameOfReport)); System.out.println(nameOfReport); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport)); int rowIndex = 0; //-- Report Name --// // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow((short)rowIndex++); // Create a cell and put a value in it. HSSFCell cell = row.createCell((short)0); // Create a new font and alter it. HSSFFont font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // Fonts are set into a style so create a new one to use. HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // Create a cell and put a value in it. cell.setCellValue(nameOfReport); cell.setCellStyle(style); //-- Report Parameters --// rowIndex++; HSSFRow row1 = null; String parameterString = ""; List labels = description.getListOfHeaderParameterLabelKeys(); List parameters = description.getListOfHeaderParameterKeys(); Iterator labelIter = labels.iterator(); Iterator parameterIter = parameters.iterator(); boolean newLineForeEachParameter = description.doCreateNewLineForEachParameter(); while (labelIter.hasNext() && parameterIter.hasNext()) { String label = description.getParameterOrLabelName((String)labelIter.next()); String parameter = description.getParameterOrLabelName((String)parameterIter.next()); if(newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(label + " "+parameter); } else { parameterString += label + " "+parameter+" "; } } if(!newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(parameterString); } rowIndex++; //-- Report ColumnHeader --// List fields = description.getListOfFields(); HSSFRow headerRow = sheet.createRow((short)rowIndex++); HSSFCellStyle headerCellStyle = wb.createCellStyle(); headerCellStyle.setWrapText( true ); headerCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); headerCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); HSSFFont headerCellFont = wb.createFont(); //headerCellFont.setFontHeightInPoints((short)12); headerCellFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); headerCellStyle.setFont(headerCellFont); int colIndex = 0; int columnWithUnit = 256; // the unit is 1/256 of a character int numberOfCharactersPerLineInLongTextFields = 60; int numberOfCharactersPerLineInRatherLongTextFields = 35; int numberOfCharactersPerLineInUndifinedTextFields = 20; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell headerCell = headerRow.createCell((short)colIndex); headerCell.setCellValue((String)description.getColumnName(field)); headerCell.setCellStyle(headerCellStyle); //column width int fieldsMaxChar = field.getMaxNumberOfCharacters(); int colWith = numberOfCharactersPerLineInRatherLongTextFields*columnWithUnit; //default, can be rather long text if(fieldsMaxChar > 0 && fieldsMaxChar < numberOfCharactersPerLineInRatherLongTextFields){ colWith = (fieldsMaxChar+1)*columnWithUnit; // short fields } else if(fieldsMaxChar > 500){ // when the field is set to be able to contain very long text colWith = numberOfCharactersPerLineInLongTextFields*columnWithUnit; //can be very long text } else if(fieldsMaxChar < 0){ colWith = numberOfCharactersPerLineInUndifinedTextFields*columnWithUnit; } sheet.setColumnWidth((short)colIndex,(short)colWith); } //-- Report ColumnDetail --// try { HSSFCellStyle dataCellStyle = wb.createCellStyle(); dataCellStyle.setWrapText( true ); dataCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); sheet.createFreezePane( 0, rowIndex ); while(reportData.next()){ HSSFRow dataRow = sheet.createRow((short)rowIndex++); colIndex = 0; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell dataCell = dataRow.createCell((short)colIndex); Object fieldValue = reportData.getFieldValue(field); if(fieldValue != null){ dataCell.setCellValue(String.valueOf(fieldValue)); } dataCell.setCellStyle(dataCellStyle); } } } catch (JRException e) { //-- Exception fetching data --// HSSFRow exceptionRow = sheet.createRow((short)rowIndex++); HSSFCell exceptionCell = exceptionRow.createCell((short)0); // Create a new font and alter it. HSSFFont exceptionFont = wb.createFont(); exceptionFont.setFontName("Courier New"); exceptionFont.setItalic(true); // Fonts are set into a style so create a new one to use. HSSFCellStyle exceptionStyle = wb.createCellStyle(); exceptionStyle.setFont(exceptionFont); // Create a cell and put a value in it. exceptionCell.setCellValue("Error occurred while getting data. Check log for more details."); exceptionCell.setCellStyle(exceptionStyle); e.printStackTrace(); } // Write the output to a file FileOutputStream fileOut = new FileOutputStream(filePathAndName); wb.write(fileOut); fileOut.close(); }
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.encodeToValidExcelSheetName(nameOfReport)); System.out.println(nameOfReport); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport)); int rowIndex = 0; //-- Report Name --// // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow((short)rowIndex++); // Create a cell and put a value in it. HSSFCell cell = row.createCell((short)0); // Create a new font and alter it. HSSFFont font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // Fonts are set into a style so create a new one to use. HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // Create a cell and put a value in it. cell.setCellValue(nameOfReport); cell.setCellStyle(style); //-- Report Parameters --// rowIndex++; HSSFRow row1 = null; String parameterString = ""; List labels = description.getListOfHeaderParameterLabelKeys(); List parameters = description.getListOfHeaderParameterKeys(); Iterator labelIter = labels.iterator(); Iterator parameterIter = parameters.iterator(); boolean newLineForeEachParameter = description.doCreateNewLineForEachParameter(); while (labelIter.hasNext() && parameterIter.hasNext()) { String label = description.getParameterOrLabelName((String)labelIter.next()); String parameter = description.getParameterOrLabelName((String)parameterIter.next()); if(newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(label + " "+parameter); } else { parameterString += label + " "+parameter+" "; } } if(!newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(parameterString); } rowIndex++; //-- Report ColumnHeader --// List fields = description.getListOfFields(); HSSFRow headerRow = sheet.createRow((short)rowIndex++); HSSFCellStyle headerCellStyle = wb.createCellStyle(); headerCellStyle.setWrapText( true ); headerCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); headerCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); HSSFFont headerCellFont = wb.createFont(); //headerCellFont.setFontHeightInPoints((short)12); headerCellFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); headerCellStyle.setFont(headerCellFont); int colIndex = 0; int columnWithUnit = 256; // the unit is 1/256 of a character int numberOfCharactersPerLineInLongTextFields = 60; int numberOfCharactersPerLineInRatherLongTextFields = 35; int numberOfCharactersPerLineInUndifinedTextFields = 20; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell headerCell = headerRow.createCell((short)colIndex); headerCell.setCellValue((String)description.getColumnName(field)); headerCell.setCellStyle(headerCellStyle); //column width int fieldsMaxChar = field.getMaxNumberOfCharacters(); int colWith = numberOfCharactersPerLineInRatherLongTextFields*columnWithUnit; //default, can be rather long text if(fieldsMaxChar > 0 && fieldsMaxChar < numberOfCharactersPerLineInRatherLongTextFields){ colWith = (fieldsMaxChar+1)*columnWithUnit; // short fields } else if(fieldsMaxChar > 500){ // when the field is set to be able to contain very long text colWith = numberOfCharactersPerLineInLongTextFields*columnWithUnit; //can be very long text } else if(fieldsMaxChar < 0){ colWith = numberOfCharactersPerLineInUndifinedTextFields*columnWithUnit; } sheet.setColumnWidth((short)colIndex,(short)colWith); } //-- Report ColumnDetail --// try { HSSFCellStyle dataCellStyle = wb.createCellStyle(); dataCellStyle.setWrapText( true ); dataCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); sheet.createFreezePane( 0, rowIndex ); while(reportData.next()){ HSSFRow dataRow = sheet.createRow((short)rowIndex++); colIndex = 0; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell dataCell = dataRow.createCell((short)colIndex); Object fieldValue = reportData.getFieldValue(field); if(fieldValue != null){ dataCell.setCellValue(String.valueOf(fieldValue)); } dataCell.setCellStyle(dataCellStyle); } } } catch (JRException e) { //-- Exception fetching data --// HSSFRow exceptionRow = sheet.createRow((short)rowIndex++); HSSFCell exceptionCell = exceptionRow.createCell((short)0); // Create a new font and alter it. HSSFFont exceptionFont = wb.createFont(); exceptionFont.setFontName("Courier New"); exceptionFont.setItalic(true); // Fonts are set into a style so create a new one to use. HSSFCellStyle exceptionStyle = wb.createCellStyle(); exceptionStyle.setFont(exceptionFont); // Create a cell and put a value in it. exceptionCell.setCellValue("Error occurred while getting data. Check log for more details."); exceptionCell.setCellStyle(exceptionStyle); e.printStackTrace(); } // Write the output to a file FileOutputStream fileOut = new FileOutputStream(filePathAndName); wb.write(fileOut); fileOut.close(); }
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); } super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted); if (!ProfileEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) { EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation(); shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$ shortcutAnnotation.getDetails().put("modelID", ProfileEditPart.MODEL_ID); //$NON-NLS-1$ view.getEAnnotations().add(shortcutAnnotation); } getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeAttributesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeConstraintsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); }
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, semanticAdapter, semanticHint, index, persisted); if (!ProfileEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) { EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation(); shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$ shortcutAnnotation.getDetails().put("modelID", ProfileEditPart.MODEL_ID); //$NON-NLS-1$ view.getEAnnotations().add(shortcutAnnotation); } getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeAttributesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); getViewService().createNode(semanticAdapter, view, UMLVisualIDRegistry.getType(StereotypeConstraintsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint()); }
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, new CreationEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy()); installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new RegionSubvertices2CanonicalEditPolicy()); }
protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubvertices2ItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy()); installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new RegionSubvertices2CanonicalEditPolicy()); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return p1.account.compareTo(p2.account); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return p1.account.compareTo(p2.account); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return p1.account.compareTo(p2.account); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return p1.account.compareTo(p2.account); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return p1.account.compareTo(p2.account); }
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 RuntimeException("Null account for UserVO object id=" + p1.getId()); } if (p2.account == null) { // Should not happen throw new RuntimeException("Null account for UserVO object id=" + p2.getId()); } return CalFacadeUtil.compareStrings(p1.getAccount(), p2.getAccount()); }
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 = guidPrefix + cal.getSysid(); val.setGuid(guid); }
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 guid = guidPrefix + cal.getSysid(); val.setGuid(guid); }
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())) { doUpdateItem(widget, element, true); } else { associate(element, (Item) widget); } } if (doStruct) { internalRefreshStruct(widget, element, updateLabels); } else { Item[] children = getChildren(widget); if (children != null) { for (int i = 0; i < children.length; i++) { Widget item = children[i]; Object data = item.getData(); if (data != null) internalRefresh(item, data, doStruct, updateLabels); } } } }
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())) { doUpdateItem(widget, element, true); } else { associate(element, (Item) widget); } } if (doStruct) { internalRefreshStruct(widget, element, updateLabels); } else { Item[] children = getChildren(widget); if (children != null) { for (int i = 0; i < children.length; i++) { Widget item = children[i]; Object data = item.getData(); if (data != null) internalRefresh(item, data, doStruct, updateLabels); } } } }
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); return page.openEditor(new FileEditorInput(input), editorDesc.getId()); }
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); return page.openEditor(new FileEditorInput(input), editorDesc.getId()); }
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); return page.openEditor(new FileEditorInput(input), editorDesc.getId()); }
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); return page.openEditor(new FileEditorInput(input), editorDesc.getId()); }
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, nameChanged); if (command == null) throw new NullPointerException(); this.command = command; if (categoryChanged) { changedValues |= CHANGED_CATEGORY; } if (handledChanged) { changedValues |= CHANGED_HANDLED; } if (parametersChanged) { changedValues |= CHANGED_PARAMETERS; } if (returnTypeChanged) { changedValues |= CHANGED_RETURN_TYPE; } }
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, nameChanged); if (command == null) throw new NullPointerException(); this.command = command; if (categoryChanged) { changedValues |= CHANGED_CATEGORY; } if (handledChanged) { changedValues |= CHANGED_HANDLED; } if (parametersChanged) { changedValues |= CHANGED_PARAMETERS; } if (returnTypeChanged) { changedValues |= CHANGED_RETURN_TYPE; } }
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); if (allowItem(item)) { contributions.add(ix + 1, item); itemAdded(item); } } }
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); if (allowItem(item)) { contributions.add(ix + 1, item); itemAdded(item); } } }
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); } // Insert at top as most recent shortcuts.add(0, desc); fireChange(); }
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); } // Insert at top as most recent shortcuts.add(0, desc); fireChange(); }
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); setToolTipText(name); }
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); setToolTipText(name); }
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 != r) return l - r; else { for (int i = 0; i < l; i++) { int compareTo = compare((Comparable) left.get(i), (Comparable) right.get(i)); if (compareTo != 0) return compareTo; } return 0; } } }
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 != r) return l - r; else { for (int i = 0; i < l; i++) { int compareTo = compare((Comparable) left.get(i), (Comparable) right.get(i)); if (compareTo != 0) return compareTo; } return 0; } } }
1,120,940