rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
projectVersion = projectVersion.replace('*','%');
private UMLClassMetadata populateClassFromForm(DynaActionForm dynaForm) { UMLClassMetadata umlClass = null; Project project = null; String className = ((String) dynaForm.get("className")).trim(); if (className != null && className.length() >0) { umlClass = new UMLClassMetadata(); umlClass.setName(className); } String projectId = ((String) dynaForm.get(UMLBrowserFormConstants.PROJECT_IDSEQ)).trim(); if (projectId != null && projectId.length() >0) { if (umlClass == null) umlClass = new UMLClassMetadata(); project = new Project(); project.setId(projectId); umlClass.setProject(project); } String projectVersion = ((String) dynaForm.get(UMLBrowserFormConstants.PROJECT_VERSION)).trim(); if (projectVersion != null && projectVersion.length() >0) { if (umlClass == null) umlClass = new UMLClassMetadata(); if (project == null) { project = new Project(); umlClass.setProject(project); } project.setVersion(projectVersion); } UMLPackageMetadata packageMetadata = null; String subprojectId = ((String) dynaForm.get(UMLBrowserFormConstants.SUB_PROJECT_IDSEQ)).trim(); if (projectId != null && subprojectId.length() >0) { if (umlClass == null) umlClass = new UMLClassMetadata(); SubProject subproject = new SubProject(); subproject.setId(subprojectId); packageMetadata = new UMLPackageMetadata(); packageMetadata.setSubProject(subproject); } String packageId = ((String) dynaForm.get(UMLBrowserFormConstants.PACKAGE_IDSEQ)).trim(); if (packageId != null && packageId.length() >0) { if (umlClass == null) umlClass = new UMLClassMetadata(); if (packageMetadata == null) packageMetadata = new UMLPackageMetadata(); packageMetadata.setId(packageId); } if (packageMetadata != null) umlClass.setUMLPackageMetadata(packageMetadata); return umlClass; }
Object[] attArr = umlAttributes.toArray(); anAttribute=(UMLAttributeMetadata)attArr[0];
anAttribute=(UMLAttributeMetadata)umlAttributes.iterator().next();
private void setupSessionForAttributeResults(Collection<UMLAttributeMetadata> umlAttributes, HttpServletRequest request){ setSessionObject(request, UMLBrowserFormConstants.CLASS_VIEW, false, true); setSessionObject(request, UMLBrowserFormConstants.CLASS_ATTRIBUTES, umlAttributes,true); PaginationBean pb = new PaginationBean(); if (umlAttributes != null) { pb.setListSize(umlAttributes.size()); } UMLAttributeMetadata anAttribute = null; if(umlAttributes.size()>0) { Object[] attArr = umlAttributes.toArray(); anAttribute=(UMLAttributeMetadata)attArr[0]; BeanPropertyComparator comparator = new BeanPropertyComparator(anAttribute.getClass()); comparator.setPrimary("name"); comparator.setOrder(comparator.ASCENDING); Collections.sort((List)umlAttributes,comparator); setSessionObject(request,UMLBrowserFormConstants.ATTRIBUTE_SEARCH_RESULT_COMPARATOR,comparator); } setSessionObject(request, UMLBrowserFormConstants.ATTRIBUTE_SEARCH_RESULTS_PAGINATION, pb,true); }
if ((tzinfo != null) && (tzinfo.vtz != null)) { return tzinfo.vtz;
if ((tzinfo != null) && (tzinfo.getVtz() != null)) { return tzinfo.getVtz();
public VTimeZone findTimeZone(final String id, BwUser owner) throws CalFacadeException { if (debug) { trace("find timezone with id " + id + " for owner " + owner); } TimezoneInfo tzinfo = lookup(id); if ((tzinfo != null) && (tzinfo.vtz != null)) { return tzinfo.vtz; } VTimeZone vTimeZone = cal.getTimeZone(id, owner); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); return vTimeZone; }
tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone);
tzinfo = new TimezoneInfo(new TimeZone(vTimeZone), vTimeZone);
public VTimeZone findTimeZone(final String id, BwUser owner) throws CalFacadeException { if (debug) { trace("find timezone with id " + id + " for owner " + owner); } TimezoneInfo tzinfo = lookup(id); if ((tzinfo != null) && (tzinfo.vtz != null)) { return tzinfo.vtz; } VTimeZone vTimeZone = cal.getTimeZone(id, owner); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); return vTimeZone; }
tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone);
tzinfo = new TimezoneInfo(new TimeZone(vTimeZone), vTimeZone);
public TimeZone getTimeZone(final String id) throws CalFacadeException { if ((defaultTimeZone != null) && id.equals(defaultTimeZoneId)) { return defaultTimeZone; } stats.incTzFetches(); TimezoneInfo tzinfo = lookup(id); if (tzinfo == null) { VTimeZone vTimeZone = cal.getTimeZone(id, null); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); } if (tzinfo.publick) { stats.incSystemTzFetches(); } if ((defaultTimeZone == null) && id.equals(defaultTimeZoneId)) { defaultTimeZone = tzinfo.tz; } return tzinfo.tz; }
if (tzinfo.publick) {
if (tzinfo.getPublick()) {
public TimeZone getTimeZone(final String id) throws CalFacadeException { if ((defaultTimeZone != null) && id.equals(defaultTimeZoneId)) { return defaultTimeZone; } stats.incTzFetches(); TimezoneInfo tzinfo = lookup(id); if (tzinfo == null) { VTimeZone vTimeZone = cal.getTimeZone(id, null); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); } if (tzinfo.publick) { stats.incSystemTzFetches(); } if ((defaultTimeZone == null) && id.equals(defaultTimeZoneId)) { defaultTimeZone = tzinfo.tz; } return tzinfo.tz; }
defaultTimeZone = tzinfo.tz;
defaultTimeZone = tzinfo.getTz();
public TimeZone getTimeZone(final String id) throws CalFacadeException { if ((defaultTimeZone != null) && id.equals(defaultTimeZoneId)) { return defaultTimeZone; } stats.incTzFetches(); TimezoneInfo tzinfo = lookup(id); if (tzinfo == null) { VTimeZone vTimeZone = cal.getTimeZone(id, null); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); } if (tzinfo.publick) { stats.incSystemTzFetches(); } if ((defaultTimeZone == null) && id.equals(defaultTimeZoneId)) { defaultTimeZone = tzinfo.tz; } return tzinfo.tz; }
return tzinfo.tz;
return tzinfo.getTz();
public TimeZone getTimeZone(final String id) throws CalFacadeException { if ((defaultTimeZone != null) && id.equals(defaultTimeZoneId)) { return defaultTimeZone; } stats.incTzFetches(); TimezoneInfo tzinfo = lookup(id); if (tzinfo == null) { VTimeZone vTimeZone = cal.getTimeZone(id, null); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); tzinfo.vtz = vTimeZone; tzinfo.tz = new TimeZone(vTimeZone); timezones.put(id, tzinfo); } if (tzinfo.publick) { stats.incSystemTzFetches(); } if ((defaultTimeZone == null) && id.equals(defaultTimeZoneId)) { defaultTimeZone = tzinfo.tz; } return tzinfo.tz; }
tzinfo = new TimezoneInfo(); tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz);
tzinfo = new TimezoneInfo(new TimeZone(vtz), vtz, true);
private TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; if (!systemTimezonesInitialised) { // First call (after reinit) synchronized (this) { if (!systemTimezonesInitialised) { Collection tzs = cal.getPublicTimeZones(); Iterator it = tzs.iterator(); while (it.hasNext()) { BwTimeZone btz = (BwTimeZone)it.next(); Calendar cal = IcalTranslator.getCalendar(btz.getVtimezone()); VTimeZone vtz = (VTimeZone)cal.getComponents().getComponent(Component.VTIMEZONE); if (vtz == null) { throw new CalFacadeException("Incorrectly stored timezone"); } tzinfo = new TimezoneInfo(); tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); systemTimezones.put(btz.getTzid(), tzinfo); } systemTimezonesInitialised = true; } } } tzinfo = (TimezoneInfo)systemTimezones.get(id); if (tzinfo != null) { tzinfo.publick = true; } else { tzinfo = (TimezoneInfo)timezones.get(id); } return tzinfo; }
if (tzinfo != null) { tzinfo.publick = true; } else {
if (tzinfo == null) {
private TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; if (!systemTimezonesInitialised) { // First call (after reinit) synchronized (this) { if (!systemTimezonesInitialised) { Collection tzs = cal.getPublicTimeZones(); Iterator it = tzs.iterator(); while (it.hasNext()) { BwTimeZone btz = (BwTimeZone)it.next(); Calendar cal = IcalTranslator.getCalendar(btz.getVtimezone()); VTimeZone vtz = (VTimeZone)cal.getComponents().getComponent(Component.VTIMEZONE); if (vtz == null) { throw new CalFacadeException("Incorrectly stored timezone"); } tzinfo = new TimezoneInfo(); tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); systemTimezones.put(btz.getTzid(), tzinfo); } systemTimezonesInitialised = true; } } } tzinfo = (TimezoneInfo)systemTimezones.get(id); if (tzinfo != null) { tzinfo.publick = true; } else { tzinfo = (TimezoneInfo)timezones.get(id); } return tzinfo; }
tzinfo = new TimezoneInfo();
tzinfo = new TimezoneInfo(tz, vtz); timezones.put(tzid, tzinfo); } else { tzinfo.init(tz, vtz);
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { cal.saveTimeZone(tzid, vtz); stats.incTzStores(); /* For a user update the map to avoid a refetch. For system timezones we will force a refresh when we're done. */ if (publicAdmin) { return; } TimezoneInfo tzinfo = (TimezoneInfo)timezones.get(tzid); if (tzinfo == null) { tzinfo = new TimezoneInfo(); } tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); timezones.put(tzid, tzinfo); }
tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); timezones.put(tzid, tzinfo);
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { cal.saveTimeZone(tzid, vtz); stats.incTzStores(); /* For a user update the map to avoid a refetch. For system timezones we will force a refresh when we're done. */ if (publicAdmin) { return; } TimezoneInfo tzinfo = (TimezoneInfo)timezones.get(tzid); if (tzinfo == null) { tzinfo = new TimezoneInfo(); } tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); timezones.put(tzid, tzinfo); }
if (!form.getNewSession()) {
if (form.getNewSession()) {
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm; String adminUserId = null; CalEnv env = getEnv(request, form); setSessionAttr(request, "org.bedework.logprefix", env.getAppProperty("logprefix")); boolean guestMode = env.getAppBoolProperty("guestmode"); if (guestMode) { form.assignCurrentUser(null); } else { adminUserId = form.getCurrentAdminUser(); if (adminUserId == null) { adminUserId = form.getCurrentUser(); } } if (getPublicAdmin(form)) { /** We may want to masquerade as a different user */ String temp = getReqPar(request, "adminUserId"); if (temp != null) { adminUserId = temp; } } /* UWCalCallback cb = new Callback(form); HttpSession sess = request.getSession(); sess.setAttribute(UWCalCallback.cbAttrName, cb); */ BwSession s = getState(request, form, messages, adminUserId, getPublicAdmin(form)); if (s == null) { /* An error should have been emitted. The superclass will return an error forward.*/ return forward; } form.setSession(s); form.setGuest(s.isGuest()); if (form.getGuest()) { // force public view on - off by default form.setPublicView(true); } String appBase = form.getAppBase(); if (appBase != null) { // Embed in request for pages that cannot access the form (loggedOut) request.setAttribute("org.bedework.action.appbase", appBase); } if (!form.getNewSession()) { // First time through here for this session // Set to default view setView(null, form); } /* Set up ready for the action */ if (getPublicAdmin(form)) { /* Set some options from the environment */ form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } /** Show the owner we are administering */ form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getUserAuth().isSuperUser()); } if (!form.getAuthorisedUser()) { return "noAccess"; } String temp = checkGroup(request, form, true); if (temp != null) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } /** Ensure we have prefs and other values for the AuthUser */ setAuthUser(form); } else { form.setAutoCreateSponsors(true); form.setAutoCreateLocations(true); form.setAutoDeleteSponsors(true); form.setAutoDeleteLocations(true); String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, form.getEnv().getAppIntProperty("refresh.interval"), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); } } /* see if we got cancelled */ String reqpar = request.getParameter("cancelled"); if (reqpar != null) { /** Set the objects to null so we get new ones. */ initFields(form); form.getMsg().emit("org.bedework.client.message.cancelled"); return "cancelled"; } try { forward = doAction(request, response, s, form); if (getPublicAdmin(form)) { } else { /* See if we need to refresh */ checkRefresh(form); } } catch (CalFacadeAccessException cfae) { form.getErr().emit("org.bedework.client.error.noaccess", "for that action"); forward="noaccess"; } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); } return forward; }
for (priv = 0; priv < AccessUtil.privTags.length; priv++) { if (MethodBase.nodeMatches(el, AccessUtil.privTags[priv])) {
for (priv = 0; priv < AccessAppUtil.privTags.length; priv++) { if (MethodBase.nodeMatches(el, AccessAppUtil.privTags[priv])) {
public void parsePrivilege(AclInfo ainfo, Node nd, boolean grant) throws WebdavIntfException { CdAclInfo info = (CdAclInfo)ainfo; if (!grant) { // There's probably a way to block this throw WebdavIntfException.badRequest(); } Element el = getOnlyChild(nd); int priv; findPriv: { // ENUM for (priv = 0; priv < AccessUtil.privTags.length; priv++) { if (MethodBase.nodeMatches(el, AccessUtil.privTags[priv])) { break findPriv; } } throw WebdavIntfException.badRequest(); } info.aces.add(new Ace(info.who, info.notWho, info.whoType, Privileges.makePriv(priv))); }
String id = (String)table.getModel().getValueAt(selected[i], 1);
String id = (String)table.getModel().getValueAt(selected[i], 2);
public TablePanel() { super(new GridLayout(1, 0)); table.getColumnModel().getColumn(0).setPreferredWidth(10); table.getColumnModel().getColumn(1).setPreferredWidth(150); table.getColumnModel().getColumn(2).setPreferredWidth(150); table.getColumnModel().getColumn(3).setPreferredWidth(10); table.getColumnModel().getColumn(4).setPreferredWidth(150); table.getColumnModel().getColumn(5).setPreferredWidth(50); table.sizeColumnsToFit(-1); final JPopupMenu rightClickMenu = new JPopupMenu(); JMenuItem removeItem = new JMenuItem(Messages.getString("ModuleConfigurationPanel.REMOVE")); //$NON-NLS-1$ removeItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { 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); } } }); JMenuItem shiftUp = new JMenuItem(Messages.getString("ModuleConfigurationPanel.UP")); //$NON-NLS-1$ shiftUp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { shiftSelectedUp(); } }); JMenuItem shiftDown = new JMenuItem(Messages.getString("ModuleConfigurationPanel.DOWN")); //$NON-NLS-1$ shiftDown.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { shiftSelectedDown(); } }); rightClickMenu.add(removeItem); rightClickMenu.addSeparator(); rightClickMenu.add(shiftUp); rightClickMenu.add(shiftDown); table.addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON3 && table.getSelectedRow() != -1) { rightClickMenu.show(table, e.getX(), e.getY()); } } public void mouseReleased(MouseEvent e) { } }); JScrollPane scrollPane = new JScrollPane(table); add(scrollPane); }
String id = (String)table.getModel().getValueAt(selected[i], 1);
String id = (String)table.getModel().getValueAt(selected[i], 2);
public void actionPerformed(ActionEvent e) { 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); } }
String id = (String)table.getModel().getValueAt(selected[i], 1);
String id = (String)table.getModel().getValueAt(selected[i], 2);
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) { tablePanel.shiftSelectedUp(); } }); 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) { tablePanel.shiftSelectedDown(); } }); p.add(remove); p.add(shiftUp); p.add(shiftDown); return p; }
String id = (String)table.getModel().getValueAt(selected[i], 1);
String id = (String)table.getModel().getValueAt(selected[i], 2);
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); } }
Graphics2D g2 = (Graphics2D)g; Iterator e = plotters.iterator(); Rectangle2D.Float stringBounds = new Rectangle2D.Float(); stringBounds.setRect(g2.getFontMetrics().getStringBounds("test", g2)); int i = 0; while(e.hasNext()){ Plotter current = (Plotter)e.next(); current.draw(g2, displaySize, currentTimeEvent, currentAmpEvent); if(current instanceof NamedPlotter){ if(((NamedPlotter)current).drawName(g2, 5, (int)(displaySize.height - 3 - i * stringBounds.height))) i++;
Graphics2D g2 = (Graphics2D)g; Iterator e = plotters.iterator(); Rectangle2D.Float stringBounds = new Rectangle2D.Float(); stringBounds.setRect(g2.getFontMetrics().getStringBounds("test", g2)); int i = 0; while(e.hasNext()){ Plotter current = (Plotter)e.next(); current.draw(g2, displaySize, currentTimeEvent, currentAmpEvent); if(current instanceof NamedPlotter){ if(((NamedPlotter)current).drawName(g2, 5, (int)(displaySize.height - 3 - i * stringBounds.height))) i++; } }
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D)g; Iterator e = plotters.iterator(); Rectangle2D.Float stringBounds = new Rectangle2D.Float(); stringBounds.setRect(g2.getFontMetrics().getStringBounds("test", g2)); int i = 0; while(e.hasNext()){ Plotter current = (Plotter)e.next(); current.draw(g2, displaySize, currentTimeEvent, currentAmpEvent); if(current instanceof NamedPlotter){ if(((NamedPlotter)current).drawName(g2, 5, (int)(displaySize.height - 3 - i * stringBounds.height))) i++; } } }
} }
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D)g; Iterator e = plotters.iterator(); Rectangle2D.Float stringBounds = new Rectangle2D.Float(); stringBounds.setRect(g2.getFontMetrics().getStringBounds("test", g2)); int i = 0; while(e.hasNext()){ Plotter current = (Plotter)e.next(); current.draw(g2, displaySize, currentTimeEvent, currentAmpEvent); if(current instanceof NamedPlotter){ if(((NamedPlotter)current).drawName(g2, 5, (int)(displaySize.height - 3 - i * stringBounds.height))) i++; } } }
registrar.add(seismos); for(int i = 0; i < seismos.length; i++){ if(seismos[i] != null){ seismograms.add(seismos[i]); SeismogramShape newPlotter; if (autoColor) { newPlotter = new SeismogramShape(seismos[i], seisColors[(seismograms.size() -1) % seisColors.length]); }else { newPlotter = new SeismogramShape(seismos[i], Color.blue); } if(parent != null){ newPlotter.setVisibility(parent.getOriginalVisibility());
registrar.add(seismos); for(int i = 0; i < seismos.length; i++){ if(seismos[i] != null){ seismograms.add(seismos[i]); SeismogramShape newPlotter; if (autoColor) { newPlotter = new SeismogramShape(seismos[i], seisColors[(seismograms.size() -1) % seisColors.length]); }else { newPlotter = new SeismogramShape(seismos[i], Color.blue); } if(parent != null){ newPlotter.setVisibility(parent.getOriginalVisibility()); } plotters.add(newPlotter); }
public void add(DataSetSeismogram[] seismos){ registrar.add(seismos); for(int i = 0; i < seismos.length; i++){ if(seismos[i] != null){ seismograms.add(seismos[i]); SeismogramShape newPlotter; if (autoColor) { newPlotter = new SeismogramShape(seismos[i], seisColors[(seismograms.size() -1) % seisColors.length]); }else { newPlotter = new SeismogramShape(seismos[i], Color.blue); } // end of else if(parent != null){ newPlotter.setVisibility(parent.getOriginalVisibility()); } plotters.add(newPlotter); } } Iterator e = globalFilters.iterator(); while(e.hasNext()){ applyFilter((ColoredFilter)e.next()); } seismogramArray = null; }
plotters.add(newPlotter); } } Iterator e = globalFilters.iterator(); while(e.hasNext()){ applyFilter((ColoredFilter)e.next()); } seismogramArray = null;
Iterator e = globalFilters.iterator(); while(e.hasNext()){ applyFilter((ColoredFilter)e.next()); } seismogramArray = null;
public void add(DataSetSeismogram[] seismos){ registrar.add(seismos); for(int i = 0; i < seismos.length; i++){ if(seismos[i] != null){ seismograms.add(seismos[i]); SeismogramShape newPlotter; if (autoColor) { newPlotter = new SeismogramShape(seismos[i], seisColors[(seismograms.size() -1) % seisColors.length]); }else { newPlotter = new SeismogramShape(seismos[i], Color.blue); } // end of else if(parent != null){ newPlotter.setVisibility(parent.getOriginalVisibility()); } plotters.add(newPlotter); } } Iterator e = globalFilters.iterator(); while(e.hasNext()){ applyFilter((ColoredFilter)e.next()); } seismogramArray = null; }
DataSetSeismogram[] seismos = new DataSetSeismogram[seismograms.size()]; int i = 0; if(filters.contains(filter)){ LinkedList filterShapes = new LinkedList(); Iterator e = new PlotterIterator(FilteredSeismogramShape.class); while(e.hasNext()){ logger.debug("contains filter"); FilteredSeismogramShape current = ((FilteredSeismogramShape)e.next()); if(current.getFilter() == filter){ current.setVisibility(filter.getVisibility()); e.remove(); filterShapes.addLast(current); seismos[i] = current.getFilteredSeismogram(); i++;
DataSetSeismogram[] seismos = new DataSetSeismogram[seismograms.size()]; int i = 0; if(filters.contains(filter)){ LinkedList filterShapes = new LinkedList(); Iterator e = new PlotterIterator(FilteredSeismogramShape.class); while(e.hasNext()){ logger.debug("contains filter"); FilteredSeismogramShape current = ((FilteredSeismogramShape)e.next()); if(current.getFilter() == filter){ current.setVisibility(filter.getVisibility()); e.remove(); filterShapes.addLast(current); seismos[i] = current.getFilteredSeismogram(); i++; } } plotters.addAll(filterShapes); }else{ filters.add(filter); Iterator e = seismograms.iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); FilteredSeismogramShape filteredShape = new FilteredSeismogramShape(filter, current); seismos[i] = filteredShape.getFilteredSeismogram(); plotters.add(filteredShape); i++; }
public void applyFilter(ColoredFilter filter){ DataSetSeismogram[] seismos = new DataSetSeismogram[seismograms.size()]; int i = 0; if(filters.contains(filter)){ LinkedList filterShapes = new LinkedList(); Iterator e = new PlotterIterator(FilteredSeismogramShape.class); while(e.hasNext()){ logger.debug("contains filter"); FilteredSeismogramShape current = ((FilteredSeismogramShape)e.next()); if(current.getFilter() == filter){ current.setVisibility(filter.getVisibility()); e.remove(); filterShapes.addLast(current); seismos[i] = current.getFilteredSeismogram(); i++; } } plotters.addAll(filterShapes); }else{ filters.add(filter); Iterator e = seismograms.iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); FilteredSeismogramShape filteredShape = new FilteredSeismogramShape(filter, current); seismos[i] = filteredShape.getFilteredSeismogram(); plotters.add(filteredShape); i++; } } if (filter.getVisibility()) { registrar.add(seismos); }else { registrar.remove(seismos); } repaint(); }
} plotters.addAll(filterShapes); }else{ filters.add(filter); Iterator e = seismograms.iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); FilteredSeismogramShape filteredShape = new FilteredSeismogramShape(filter, current); seismos[i] = filteredShape.getFilteredSeismogram(); plotters.add(filteredShape); i++; } } if (filter.getVisibility()) { registrar.add(seismos); }else { registrar.remove(seismos); } repaint();
if (filter.getVisibility()) { registrar.add(seismos); }else { registrar.remove(seismos); } repaint();
public void applyFilter(ColoredFilter filter){ DataSetSeismogram[] seismos = new DataSetSeismogram[seismograms.size()]; int i = 0; if(filters.contains(filter)){ LinkedList filterShapes = new LinkedList(); Iterator e = new PlotterIterator(FilteredSeismogramShape.class); while(e.hasNext()){ logger.debug("contains filter"); FilteredSeismogramShape current = ((FilteredSeismogramShape)e.next()); if(current.getFilter() == filter){ current.setVisibility(filter.getVisibility()); e.remove(); filterShapes.addLast(current); seismos[i] = current.getFilteredSeismogram(); i++; } } plotters.addAll(filterShapes); }else{ filters.add(filter); Iterator e = seismograms.iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); FilteredSeismogramShape filteredShape = new FilteredSeismogramShape(filter, current); seismos[i] = filteredShape.getFilteredSeismogram(); plotters.add(filteredShape); i++; } } if (filter.getVisibility()) { registrar.add(seismos); }else { registrar.remove(seismos); } repaint(); }
public String[] getNames(){ if(seismogramNames == null || seismogramArray == null){ getSeismograms(); seismogramNames = new String[seismogramArray.length]; for(int i = 0; i < seismogramArray.length; i++){ Iterator e = new PlotterIterator(SeismogramShape.class); while(e.hasNext()){ SeismogramShape current = (SeismogramShape)e.next(); if(current.getSeismogram() == seismogramArray[i]){ seismogramNames[i] = current.getName(); }
public String[] getNames(){ if(seismogramNames == null || seismogramArray == null){ getSeismograms(); seismogramNames = new String[seismogramArray.length]; for(int i = 0; i < seismogramArray.length; i++){ Iterator e = new PlotterIterator(SeismogramShape.class); while(e.hasNext()){ SeismogramShape current = (SeismogramShape)e.next(); if(current.getSeismogram() == seismogramArray[i]){ seismogramNames[i] = current.getName(); } } }
public String[] getNames(){ if(seismogramNames == null || seismogramArray == null){ getSeismograms(); seismogramNames = new String[seismogramArray.length]; for(int i = 0; i < seismogramArray.length; i++){ Iterator e = new PlotterIterator(SeismogramShape.class); while(e.hasNext()){ SeismogramShape current = (SeismogramShape)e.next(); if(current.getSeismogram() == seismogramArray[i]){ seismogramNames[i] = current.getName(); } } } } return seismogramNames; }
} } return seismogramNames;
return seismogramNames;
public String[] getNames(){ if(seismogramNames == null || seismogramArray == null){ getSeismograms(); seismogramNames = new String[seismogramArray.length]; for(int i = 0; i < seismogramArray.length; i++){ Iterator e = new PlotterIterator(SeismogramShape.class); while(e.hasNext()){ SeismogramShape current = (SeismogramShape)e.next(); if(current.getSeismogram() == seismogramArray[i]){ seismogramNames[i] = current.getName(); } } } } return seismogramNames; }
for(int i = 0; i < seismos.length; i++){ if(seismograms.contains(seismos[i])){ seismograms.remove(seismos[i]); PlotterIterator it = new PlotterIterator(SeismogramShape.class); while(it.hasNext()){ SeismogramShape current = (SeismogramShape)it.next(); if(current.getSeismogram() == seismos[i]){ plotters.remove(current); }
for(int i = 0; i < seismos.length; i++){ if(seismograms.contains(seismos[i])){ seismograms.remove(seismos[i]); PlotterIterator it = new PlotterIterator(SeismogramShape.class); while(it.hasNext()){ SeismogramShape current = (SeismogramShape)it.next(); if(current.getSeismogram() == seismos[i]){ plotters.remove(current); } } }
public void remove(DataSetSeismogram[] seismos){ for(int i = 0; i < seismos.length; i++){ if(seismograms.contains(seismos[i])){ seismograms.remove(seismos[i]); PlotterIterator it = new PlotterIterator(SeismogramShape.class); while(it.hasNext()){ SeismogramShape current = (SeismogramShape)it.next(); if(current.getSeismogram() == seismos[i]){ plotters.remove(current); } } } } registrar.remove(seismos); }
} } registrar.remove(seismos);
registrar.remove(seismos);
public void remove(DataSetSeismogram[] seismos){ for(int i = 0; i < seismos.length; i++){ if(seismograms.contains(seismos[i])){ seismograms.remove(seismos[i]); PlotterIterator it = new PlotterIterator(SeismogramShape.class); while(it.hasNext()){ SeismogramShape current = (SeismogramShape)it.next(); if(current.getSeismogram() == seismos[i]){ plotters.remove(current); } } } } registrar.remove(seismos); }
if (!form.validateEvent()) {
if (!validateEvent(form)) {
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.getUserAuth().isAlertUser()) { return "noAccess"; } } else { if (!form.getAuthorisedUser()) { return "noAccess"; } } String reqpar = request.getParameter("delete"); if (reqpar != null) { return "delete"; } reqpar = request.getParameter("copy"); if (reqpar != null) { BwEvent evcopy = new BwEventObj(); form.getEvent().copyTo(evcopy); evcopy.setId(CalFacadeDefs.unsavedItemKey); form.setEvent(evcopy); form.assignAddingEvent(true); return "copy"; } CalSvcI svci = form.getCalSvcI(); if (!form.validateEvent()) { return "retry"; } /* Validation set up the form so that any selected contact, location * and or categories are available. */ BwEvent ev = form.getEvent(); ev.setPublick(true); if (form.getAddingEvent()) { svci.addEvent(ev, null); } else { svci.updateEvent(ev); } if (!alerts) { updateAuthPrefs(form, ev.getCategories(), ev.getSponsor(), ev.getLocation(), ev.getCalendar()); } form.resetEvent(); form.assignAddingEvent(false); if (form.getAddingEvent()) { form.getMsg().emit("org.bedework.client.message.event.added"); } else { form.getMsg().emit("org.bedework.client.message.event.updated"); } return "continue"; }
if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); config.setHost(host, port); client = (CaldavClient)httpManager.getClient(config); this.debug = debug;
this(host, port, false, debug);
public CaldavClientIo(String host, int port, boolean debug) throws Throwable { if (httpManager == null) { httpManager = new HttpManager("org.bedework.http.client.caldav.CaldavClient"); } HostConfiguration config = new HostConfiguration(); config.setHost(host, port); client = (CaldavClient)httpManager.getClient(config); this.debug = debug; }
ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.jAlloc("Factory"), NATMirrorFactory._INSTANCE_);
protected void setUp() throws Exception { lexicalRoot = new NATObject(OBJLexicalRoot._INSTANCE_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("success"), success); lexicalRoot.meta_defineField(AGSymbol.jAlloc("fail"), fail); lexicalRoot.meta_defineField(AGSymbol.jAlloc("echo:"), echo_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symbol"), symbol); lexicalRoot.meta_defineField(AGSymbol.jAlloc("true"), True); lexicalRoot.meta_defineField(AGSymbol.jAlloc("false"), False); lexicalRoot.meta_defineField(AGSymbol.jAlloc("closures"), closures); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symIfTrue"), AGSymbol.jAlloc("ifTrue:")); ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.jAlloc("Factory"), NATMirrorFactory._INSTANCE_); ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.jAlloc("Context"), NATMirrorFactory._INSTANCE_); ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.jAlloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.jAlloc("natives"), natives); lexicalRoot.meta_defineField(AGSymbol.jAlloc("at"), at); lexicalRoot.meta_defineField(AGSymbol.jAlloc("root"), lexicalRoot); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unittest:"), unittest_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_); }
ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.jAlloc("Context"), NATMirrorFactory._INSTANCE_);
protected void setUp() throws Exception { lexicalRoot = new NATObject(OBJLexicalRoot._INSTANCE_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("success"), success); lexicalRoot.meta_defineField(AGSymbol.jAlloc("fail"), fail); lexicalRoot.meta_defineField(AGSymbol.jAlloc("echo:"), echo_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symbol"), symbol); lexicalRoot.meta_defineField(AGSymbol.jAlloc("true"), True); lexicalRoot.meta_defineField(AGSymbol.jAlloc("false"), False); lexicalRoot.meta_defineField(AGSymbol.jAlloc("closures"), closures); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symIfTrue"), AGSymbol.jAlloc("ifTrue:")); ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.jAlloc("Factory"), NATMirrorFactory._INSTANCE_); ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.jAlloc("Context"), NATMirrorFactory._INSTANCE_); ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.jAlloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.jAlloc("natives"), natives); lexicalRoot.meta_defineField(AGSymbol.jAlloc("at"), at); lexicalRoot.meta_defineField(AGSymbol.jAlloc("root"), lexicalRoot); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unittest:"), unittest_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_); }
ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.jAlloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.jAlloc("natives"), natives);
protected void setUp() throws Exception { lexicalRoot = new NATObject(OBJLexicalRoot._INSTANCE_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("success"), success); lexicalRoot.meta_defineField(AGSymbol.jAlloc("fail"), fail); lexicalRoot.meta_defineField(AGSymbol.jAlloc("echo:"), echo_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symbol"), symbol); lexicalRoot.meta_defineField(AGSymbol.jAlloc("true"), True); lexicalRoot.meta_defineField(AGSymbol.jAlloc("false"), False); lexicalRoot.meta_defineField(AGSymbol.jAlloc("closures"), closures); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symIfTrue"), AGSymbol.jAlloc("ifTrue:")); ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.jAlloc("Factory"), NATMirrorFactory._INSTANCE_); ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.jAlloc("Context"), NATMirrorFactory._INSTANCE_); ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.jAlloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.jAlloc("natives"), natives); lexicalRoot.meta_defineField(AGSymbol.jAlloc("at"), at); lexicalRoot.meta_defineField(AGSymbol.jAlloc("root"), lexicalRoot); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unittest:"), unittest_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_); }
lexicalRoot.meta_defineField(AGSymbol.jAlloc("at"), at);
protected void setUp() throws Exception { lexicalRoot = new NATObject(OBJLexicalRoot._INSTANCE_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("success"), success); lexicalRoot.meta_defineField(AGSymbol.jAlloc("fail"), fail); lexicalRoot.meta_defineField(AGSymbol.jAlloc("echo:"), echo_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symbol"), symbol); lexicalRoot.meta_defineField(AGSymbol.jAlloc("true"), True); lexicalRoot.meta_defineField(AGSymbol.jAlloc("false"), False); lexicalRoot.meta_defineField(AGSymbol.jAlloc("closures"), closures); lexicalRoot.meta_defineField(AGSymbol.jAlloc("symIfTrue"), AGSymbol.jAlloc("ifTrue:")); ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.jAlloc("Factory"), NATMirrorFactory._INSTANCE_); ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.jAlloc("Context"), NATMirrorFactory._INSTANCE_); ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.jAlloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.jAlloc("natives"), natives); lexicalRoot.meta_defineField(AGSymbol.jAlloc("at"), at); lexicalRoot.meta_defineField(AGSymbol.jAlloc("root"), lexicalRoot); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unittest:"), unittest_); lexicalRoot.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_); }
((Element)children.item(i)).getElementsByTagName("value").item(0));
((Element)children.item(i)).getElementsByTagName("value").item(0).getFirstChild());
public static URLDataSetSeismogram getURLDataSetSeismogram(URL base, Element element) throws UnsupportedFileTypeException { String name = XMLUtil.getText(XMLUtil.getElement(element, "name")); RequestFilter request = XMLRequestFilter.getRequestFilter(XMLUtil.getElement(element, "requestFilter")); NodeList children = element.getElementsByTagName("url"); LinkedList fileTypeList = new LinkedList(); LinkedList urlList = new LinkedList(); for (int i = 0; i < children.getLength(); i++) { NamedNodeMap attrList = children.item(i).getAttributes(); Node urlNode = attrList.getNamedItem("xlink:href"); Node fileTypeNode = attrList.getNamedItem("xlink:role"); if (urlNode != null && fileTypeNode != null) { try { urlList.add(new URL(base, urlNode.getNodeValue())); fileTypeList.add(SeismogramFileTypes.fromString(fileTypeNode.getNodeValue())); } catch (MalformedURLException e) { // should never happen in a valid dataset xml doc GlobalExceptionHandler.handle("MalformedURLException should never happen", e); } } else { GlobalExceptionHandler.handle(new UnsupportedFileTypeException("File type for "+urlNode.getNodeValue()+" is null, skipping.")); } } URL[] urls = new URL[children.getLength()]; urls = (URL[])urlList.toArray(urls); SeismogramFileTypes[] seisTypes = (SeismogramFileTypes[])fileTypeList.toArray(new SeismogramFileTypes[0]); URLDataSetSeismogram urlDSS = new URLDataSetSeismogram(urls, seisTypes, name, request); children = element.getElementsByTagName(NAMED_VALUE); for (int i = 0; i < children.getLength(); i++) { Element nameElement = (Element)((Element)children.item(i)).getElementsByTagName("name").item(0); String auxName = XMLUtil.getText(nameElement); urlDSS.addAuxillaryData(auxName, ((Element)children.item(i)).getElementsByTagName("value").item(0)); } children = element.getElementsByTagName(PROPERTY); for (int i = 0; i < children.getLength(); i++) { Property p = XMLProperty.getProperty((Element)children.item(i)); urlDSS.addAuxillaryData(p.name, p.value); } return urlDSS; }
public void setStartTime(String v) { byte[] startTimeBytes = new byte[10]; try{ byte[] vBytes = v.getBytes("ASCII"); if(vBytes.length < 10) { startTimeBytes = Utility.pad(v.getBytes("ASCII"),10, (byte)0); } }catch( java.io.UnsupportedEncodingException e) { e.printStackTrace(); } this.startTime = startTimeBytes;
public void setStartTime(MicroSecondDate date) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.setTime(date); Btime btime = new Btime(); btime.tenthMilli = (int)Math.round(((date.getTime()*1000+date.getMicroSeconds()) % 1000000) / 100.0); btime.year = cal.get(cal.YEAR); btime.jday = cal.get(cal.DAY_OF_YEAR); btime.hour = cal.get(cal.HOUR); System.out.println("Hour "+cal.get(cal.HOUR)+" btime="+btime.hour+" date="+date.getFissuresTime().date_time); btime.min = cal.get(cal.MINUTE); btime.sec = cal.get(cal.SECOND); this.startTime = btime.getAsBytes();
public void setStartTime(String v) { byte[] startTimeBytes = new byte[10]; try{ byte[] vBytes = v.getBytes("ASCII"); if(vBytes.length < 10) { startTimeBytes = Utility.pad(v.getBytes("ASCII"),10, (byte)0); } }catch( java.io.UnsupportedEncodingException e) { e.printStackTrace(); } this.startTime = startTimeBytes; }
setDocument(new IdeaDocument()); selectIdea(this.getSelectedView().getIdea());
public IdeaMap() { text = new JTextField(""); setLayout(new BorderLayout()); add(text, BorderLayout.NORTH); controller = new IdeaMapController(this); setBackground(DEFAULT_BACKGROUND); JLayeredPane mapArea = new JLayeredPane(); mapArea.setBackground(new Color(0, 0, 0, 0)); add(mapArea, BorderLayout.CENTER); setPropertiesPanel(new FloatingPanel()); getPropertiesPanel().setCaption("Properties"); getPropertiesPanel().setBounds(50, 50, 200, 200); JLabel labTest = new JLabel("Test"); labTest.setForeground(null); getPropertiesPanel().getContentPane().add(labTest); mapArea.add(getPropertiesPanel()); this.setPropertiesVisible(false); viewport.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { repaint(); } }); setDocument(new IdeaDocument()); selectIdea(this.getSelectedView().getIdea()); }
selectIdea(newIdea);
public void setDocument(IdeaDocument newDocument) { if (this.document != null) { this.document.removePropertyChangeListener(this.controller); } this.document = newDocument; if (this.document != null) { this.document.addPropertyChangeListener(this.controller); } Idea newIdea = this.document.getIdea(); Idea oldIdea = getIdea(); if ((newIdea != null) && (!newIdea.equals(oldIdea))) { this.rootView = new CentreView(newIdea); this.rootView.setParent(this); this.document.setSelected(newIdea); text.setText(newIdea.getText()); text.setEnabled(false); } this.getViewport().resetView(); }
form.getErr().emit("org.bedework.error.mail.norecipient", 1);
form.getErr().emit("org.bedework.client.error.mail.norecipient", 1);
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } CalSvcI svci = form.getCalSvcI(); BwEventAlarm alarm = new BwEventAlarm(); Trigger tr; //boolean trDuration = false; if (form.getAlarmTriggerByDate()) { /*XXX this needs changing */ throw new Exception("Unimplemented");// tr = new Trigger(form.getTriggerDateTime().getDateTime()); } else { //trDuration = true; Related rel; if (form.getAlarmRelStart()) { rel = Related.START; } else { rel = Related.END; } ParameterList plist = new ParameterList(); plist.add(rel); tr = new Trigger(plist, form.getTriggerDuration().toString()); tr.setValue(form.getTriggerDuration().toString()); } String recipient = form.getLastEmail(); if (!Util.present(recipient)) { form.getErr().emit("org.bedework.error.mail.norecipient", 1); return "retry"; } String subject = form.getLastSubject(); if (!Util.present(subject)) { subject = ev.getSummary(); } /* temporarily just fix the alarm time as 5 mins before the associated event. * start. We need to add options for start or end time, period, how often etc. */ alarm.setAlarmType(BwAlarm.alarmTypeEmail); alarm.setTrigger(tr.getValue()); alarm.setTriggerStart(true); alarm.setSummary(subject); alarm.setDescription(ev.getDescription()); alarm.addAttendeeEmail("MAILTO:" + recipient); svci.setAlarm(ev, alarm); form.getMsg().emit("org.bedework.message.eventalarmset"); return "success"; }
form.getMsg().emit("org.bedework.message.eventalarmset");
form.getMsg().emit("org.bedework.client.message.eventalarmset");
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { BwEvent ev = form.retrieveCurrentEvent(); if (ev == null) { return "noevent"; } CalSvcI svci = form.getCalSvcI(); BwEventAlarm alarm = new BwEventAlarm(); Trigger tr; //boolean trDuration = false; if (form.getAlarmTriggerByDate()) { /*XXX this needs changing */ throw new Exception("Unimplemented");// tr = new Trigger(form.getTriggerDateTime().getDateTime()); } else { //trDuration = true; Related rel; if (form.getAlarmRelStart()) { rel = Related.START; } else { rel = Related.END; } ParameterList plist = new ParameterList(); plist.add(rel); tr = new Trigger(plist, form.getTriggerDuration().toString()); tr.setValue(form.getTriggerDuration().toString()); } String recipient = form.getLastEmail(); if (!Util.present(recipient)) { form.getErr().emit("org.bedework.error.mail.norecipient", 1); return "retry"; } String subject = form.getLastSubject(); if (!Util.present(subject)) { subject = ev.getSummary(); } /* temporarily just fix the alarm time as 5 mins before the associated event. * start. We need to add options for start or end time, period, how often etc. */ alarm.setAlarmType(BwAlarm.alarmTypeEmail); alarm.setTrigger(tr.getValue()); alarm.setTriggerStart(true); alarm.setSummary(subject); alarm.setDescription(ev.getDescription()); alarm.addAttendeeEmail("MAILTO:" + recipient); svci.setAlarm(ev, alarm); form.getMsg().emit("org.bedework.message.eventalarmset"); return "success"; }
assertEquals("New idea should give length of 15 * text length + 10", 15.0 * 4 + 10,
assertEquals("New idea should give length of 10 * text length + 20", 10.0 * 4 + 20,
public void testGetSetLength() { IdeaView ideaView = new IdeaView(); assertEquals("Length should be zero if no idea", 0.0, ideaView.getLength(), 0.0000001); ideaView.setLength(100.0); assertEquals("Should allow me to set length", 100.0, ideaView.getLength(), 0.0000001); ideaView.setIdea(null); assertEquals("New null idea should give length of 0.0", 0.0, ideaView.getLength(), 0.0000001); ideaView.setIdea(new Idea("fred")); assertEquals("New idea should give length of 15 * text length + 10", 15.0 * 4 + 10, ideaView.getLength(), 0.0000001); }
assertTrue("bad cols", result.contains(" cols=\"10\""));
assertTrue("bad cols", result.contains(" cols=\"80\""));
public void testDoEndTag() throws Exception { tag.setRows("10"); tag.setCols("80"); tag.setName("name"); tag.setStyleId("id"); tag.setValue("value"); tag.doEndTag(); String result = writer.getBuffer().toString(); assertTrue("bad tag name", result.contains("<textarea")); assertTrue("bad name", result.contains(" name=\"name\"")); assertTrue("bad id", result.contains(" id=\"id\"")); assertTrue("bad rows", result.contains(" rows=\"10\"")); assertTrue("bad cols", result.contains(" cols=\"10\"")); assertTrue("bad value", result.contains(">value<")); }
_reportFilePathsMap.put(SIMPLE_EXCEL_FORMAT, business.getSimpleExcelReport(((ReportableCollection) _dataSource), _reportName,_reportDescription));
_reportFilePathsMap.put(SIMPLE_EXCEL_FORMAT, business.getSimpleExcelReport(((ReportableCollection) _dataSource).getJRDataSource(), _reportName,_reportDescription));
private void generateReport() throws RemoteException, JRException { JasperReportBusiness business = getReportBusiness(); if(_dataSource != null){ if (doGenerateSomeJasperReport() && (_dataSource != null && _design != null)) { _reportDescription.put(DynamicReportDesign.PRM_REPORT_NAME, _reportName); JasperPrint print = business.getReport(_dataSource, _reportDescription.getDisplayValueMap(), _design); if (_reportFilePathsMap == null) { _reportFilePathsMap = new HashMap(); } if(_generatePDFReport){ _reportFilePathsMap.put(PDF_FORMAT, business.getPdfReport(print, "report")); } if(_generateExcelReport){ _reportFilePathsMap.put(EXCEL_FORMAT, business.getExcelReport(print, "report")); } if(_generateHTMLReport){ _reportFilePathsMap.put(HTML_FORMAT, business.getHtmlReport(print, "report")); } } if(_generateSimpleExcelReport && (_dataSource instanceof ReportableCollection)){ if (_reportFilePathsMap == null) { _reportFilePathsMap = new HashMap(); } _reportFilePathsMap.put(SIMPLE_EXCEL_FORMAT, business.getSimpleExcelReport(((ReportableCollection) _dataSource), _reportName,_reportDescription)); } } }
if(data.x_coor[i] != oChunk.data.x_coor[i]) { System.out.println(i + " " + data.x_coor[i] + " " + oChunk.data.x_coor[i]); return false; }
if(data.x_coor[i] != oChunk.data.x_coor[i]) { return false; }
public boolean equals(Object o) { if(o == this) { return true; } else if(o instanceof PlottableChunk) { PlottableChunk oChunk = (PlottableChunk)o; if(ChannelIdUtil.areEqual(channel, oChunk.channel)) { if(samplesPerDay == oChunk.samplesPerDay) { if(jday == oChunk.jday) { if(year == oChunk.year) { if(data.x_coor.length == oChunk.data.x_coor.length) { for(int i = 0; i < data.x_coor.length; i++) { if(data.x_coor[i] != oChunk.data.x_coor[i]) { System.out.println(i + " " + data.x_coor[i] + " " + oChunk.data.x_coor[i]); return false; } } return true; } } } } } } return false; }
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout();
GridLayout layoutThis = new GridLayout();
public ProfileFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 2; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0; layoutThis.marginHeight = 0; this.setLayoutManager(layoutThis); this.setFill(false); this.setFillXOR(false); this.setOutline(false); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.lightGray); createContents(); }
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.lightGray);
this.setLineStyle(Graphics.LINE_SOLID); this.setForegroundColor(ColorConstants.lightGray);
public ProfileFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 2; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0; layoutThis.marginHeight = 0; this.setLayoutManager(layoutThis); this.setFill(false); this.setFillXOR(false); this.setOutline(false); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.lightGray); createContents(); }
org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profile_leftTab0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
profile_leftTab0.setLineStyle(Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL;
GridLayoutData constraintProfile_leftTab0 = new GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profile_rightTab0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
profile_rightTab0.setLineStyle(Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL;
GridLayoutData constraintProfile_rightTab0 = new GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profileFigure_body0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1)));
profileFigure_body0.setLineStyle(Graphics.LINE_SOLID); profileFigure_body0.setBorder(new MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1)));
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL;
GridLayoutData constraintProfileFigure_body0 = new GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout();
ToolbarLayout layoutProfileFigure_body0 = new ToolbarLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER
layoutProfileFigure_body0.setMinorAlignment(ToolbarLayout.ALIGN_CENTER
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profile_NameContainer1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
profile_NameContainer1.setLineStyle(Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutProfile_NameContainer1 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel profileFigure_NameLabel2 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profileFigure_ProfileContainer1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
profileFigure_ProfileContainer1.setLineStyle(Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutProfileFigure_ProfileContainer1 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel profile_ProfileLabel2 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure profileFigure_ContentsCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
profileFigure_ContentsCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure profile_leftTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_leftTab0.setFill(true); profile_leftTab0.setFillXOR(false); profile_leftTab0.setOutline(true); profile_leftTab0.setOutlineXOR(false); profile_leftTab0.setLineWidth(1); profile_leftTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_leftTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_leftTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_leftTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_leftTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_leftTab0.horizontalIndent = 0; constraintProfile_leftTab0.horizontalSpan = 1; constraintProfile_leftTab0.verticalSpan = 1; constraintProfile_leftTab0.grabExcessHorizontalSpace = true; constraintProfile_leftTab0.grabExcessVerticalSpace = false; this.add(profile_leftTab0, constraintProfile_leftTab0); org.eclipse.draw2d.RectangleFigure profile_rightTab0 = new org.eclipse.draw2d.RectangleFigure(); profile_rightTab0.setFill(false); profile_rightTab0.setFillXOR(false); profile_rightTab0.setOutline(false); profile_rightTab0.setOutlineXOR(false); profile_rightTab0.setLineWidth(1); profile_rightTab0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_rightTab0.setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profile_rightTab0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfile_rightTab0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfile_rightTab0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfile_rightTab0.horizontalIndent = 0; constraintProfile_rightTab0.horizontalSpan = 1; constraintProfile_rightTab0.verticalSpan = 1; constraintProfile_rightTab0.grabExcessHorizontalSpace = true; constraintProfile_rightTab0.grabExcessVerticalSpace = false; this.add(profile_rightTab0, constraintProfile_rightTab0); org.eclipse.draw2d.RectangleFigure profileFigure_body0 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_body0.setFill(true); profileFigure_body0.setFillXOR(false); profileFigure_body0.setOutline(true); profileFigure_body0.setOutlineXOR(false); profileFigure_body0.setLineWidth(1); profileFigure_body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.setBorder(new org.eclipse.draw2d.MarginBorder(getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1), getMapMode().DPtoLP(1))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintProfileFigure_body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintProfileFigure_body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintProfileFigure_body0.horizontalIndent = 0; constraintProfileFigure_body0.horizontalSpan = 2; constraintProfileFigure_body0.verticalSpan = 1; constraintProfileFigure_body0.grabExcessHorizontalSpace = true; constraintProfileFigure_body0.grabExcessVerticalSpace = true; this.add(profileFigure_body0, constraintProfileFigure_body0); org.eclipse.draw2d.ToolbarLayout layoutProfileFigure_body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutProfileFigure_body0.setStretchMinorAxis(true); layoutProfileFigure_body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutProfileFigure_body0.setSpacing(0); layoutProfileFigure_body0.setVertical(true); profileFigure_body0.setLayoutManager(layoutProfileFigure_body0); org.eclipse.draw2d.RectangleFigure profile_NameContainer1 = new org.eclipse.draw2d.RectangleFigure(); profile_NameContainer1.setFill(true); profile_NameContainer1.setFillXOR(false); profile_NameContainer1.setOutline(false); profile_NameContainer1.setOutlineXOR(false); profile_NameContainer1.setLineWidth(1); profile_NameContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profile_NameContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profile_NameContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfile_NameContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profile_NameContainer1.setLayoutManager(layoutProfile_NameContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profileFigure_NameLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profileFigure_NameLabel2.setText(""); profile_NameContainer1.add(profileFigure_NameLabel2); setFigureProfileFigure_NameLabel(profileFigure_NameLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ProfileContainer1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ProfileContainer1.setFill(true); profileFigure_ProfileContainer1.setFillXOR(false); profileFigure_ProfileContainer1.setOutline(false); profileFigure_ProfileContainer1.setOutlineXOR(false); profileFigure_ProfileContainer1.setLineWidth(1); profileFigure_ProfileContainer1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_ProfileContainer1.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); profileFigure_body0.add(profileFigure_ProfileContainer1); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutProfileFigure_ProfileContainer1 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); profileFigure_ProfileContainer1.setLayoutManager(layoutProfileFigure_ProfileContainer1); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel profile_ProfileLabel2 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); profile_ProfileLabel2.setText("profile"); profileFigure_ProfileContainer1.add(profile_ProfileLabel2); setFigureProfile_ProfileLabel(profile_ProfileLabel2); org.eclipse.draw2d.RectangleFigure profileFigure_ContentsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); profileFigure_ContentsCompartment1.setFill(true); profileFigure_ContentsCompartment1.setFillXOR(false); profileFigure_ContentsCompartment1.setOutline(false); profileFigure_ContentsCompartment1.setOutlineXOR(false); profileFigure_ContentsCompartment1.setLineWidth(1); profileFigure_ContentsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); profileFigure_body0.add(profileFigure_ContentsCompartment1); setFigureProfileFigure_ContentsCompartment(profileFigure_ContentsCompartment1); }
public org.eclipse.draw2d.RectangleFigure getFigureProfileFigure_ContentsCompartment() {
public RectangleFigure getFigureProfileFigure_ContentsCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureProfileFigure_ContentsCompartment() { return fProfileFigure_ContentsCompartment; }
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureProfileFigure_NameLabel() {
public WrapLabel getFigureProfileFigure_NameLabel() {
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureProfileFigure_NameLabel() { return fProfileFigure_NameLabel; }
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureProfile_ProfileLabel() {
public WrapLabel getFigureProfile_ProfileLabel() {
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureProfile_ProfileLabel() { return fProfile_ProfileLabel; }
private void setFigureProfileFigure_ContentsCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureProfileFigure_ContentsCompartment(RectangleFigure fig) {
private void setFigureProfileFigure_ContentsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fProfileFigure_ContentsCompartment = fig; }
private void setFigureProfileFigure_NameLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) {
private void setFigureProfileFigure_NameLabel(WrapLabel fig) {
private void setFigureProfileFigure_NameLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fProfileFigure_NameLabel = fig; }
private void setFigureProfile_ProfileLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) {
private void setFigureProfile_ProfileLabel(WrapLabel fig) {
private void setFigureProfile_ProfileLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fProfile_ProfileLabel = fig; }
comp[1][j] = getMinValue(uncomp[1], startIndex, endIndex); comp[1][j+1] = (int)getMaxValue(uncomp[1], startIndex, endIndex); comp[0][j] = uncomp[0][endIndex]; comp[0][j+1] = uncomp[0][endIndex];
if(xvalue != 0) { endIndex = uncomp[0].length - 1; comp[1][j] = getMinValue(uncomp[1], startIndex, endIndex); comp[1][j+1] = (int)getMaxValue(uncomp[1], startIndex, endIndex); comp[0][j] = uncomp[0][endIndex]; comp[0][j+1] = uncomp[0][endIndex]; }
protected static int[][] compressYvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size)throws UnsupportedDataEncoding { int[][] uncomp = scaleXvalues(seismogram, config, size); // enough points to take the extra time to compress the line int[][] comp = new int[2][]; int pixels = size.width; int numValuesperPixel = uncomp[0].length/size.width; comp[0] = new int[2*pixels]; comp[1] = new int[2*pixels]; int j=0, i, startIndex, endIndex; int xvalue = 0; startIndex = 0; endIndex = 0; if(uncomp[0].length != 0) xvalue = uncomp[0][0];; for(i = 1, j = 0; i < uncomp[0].length; i++) { if(uncomp[0][i] != xvalue) { endIndex = i-1; comp[1][j] = getMinValue(uncomp[1], startIndex, endIndex); comp[1][j+1] = (int)getMaxValue(uncomp[1], startIndex, endIndex); comp[0][j] = uncomp[0][endIndex]; comp[0][j+1] = uncomp[0][endIndex]; j = j + 2; startIndex = endIndex + 1; xvalue = uncomp[0][i]; } } comp[1][j] = getMinValue(uncomp[1], startIndex, endIndex); comp[1][j+1] = (int)getMaxValue(uncomp[1], startIndex, endIndex); comp[0][j] = uncomp[0][endIndex]; comp[0][j+1] = uncomp[0][endIndex]; return comp; }
int tempValue;
int tempValue = 0;
protected static int[][] scaleXvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size) throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; int[][] out = new int[2][]; int seisIndex = 0; int pixelIndex = 0; int numAdded = 0; if ( seis.getEndTime().before(config.getBeginTime()) || seis.getBeginTime().after(config.getEndTime()) ) { out[0] = new int[0]; out[1] = new int[0]; logger.info("The end time is before the beginTime in simple seismogram"); return out; } MicroSecondDate tMin = config.getBeginTime(); MicroSecondDate tMax = config.getEndTime(); UnitRangeImpl ampRange = config.getAmpRange().convertTo(seis.getUnit()); double yMin = ampRange.getMinValue(); double yMax = ampRange.getMaxValue(); int seisStartIndex = getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), config.getBeginTime()); int seisEndIndex = getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), config.getEndTime()); seisStartIndex--; seisEndIndex++; if (seisStartIndex < 0) { seisStartIndex = 0; } if (seisEndIndex >= seis.getNumPoints()) { seisEndIndex = seis.getNumPoints()-1; } MicroSecondDate tempdate = getValue(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), seisStartIndex); int pixelStartIndex = getPixel(size.width, config.getBeginTime(), config.getEndTime(), tempdate); tempdate = getValue(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), seisEndIndex); int pixelEndIndex = getPixel(size.width, config.getBeginTime(), config.getEndTime(), tempdate); int pixels = size.width; out[0] = new int[2*pixels]; out[1] = new int[out[0].length]; int tempYvalues[] = new int [out[0].length]; seisIndex = seisStartIndex; numAdded = 0; int xvalue = 0; int tempValue; xvalue = Math.round((float)(linearInterp(seisStartIndex, pixelStartIndex, seisEndIndex, pixelEndIndex, seisIndex))); seisIndex++; int j; j = 0; while (seisIndex <= seisEndIndex) { tempValue = Math.round((float)(linearInterp(seisStartIndex, pixelStartIndex, seisEndIndex, pixelEndIndex, seisIndex))); tempYvalues[j++] = (int)seis.getValueAt(seisIndex).getValue(); if(tempValue != xvalue) { out[0][numAdded] = xvalue; out[0][numAdded+1] = xvalue; out[1][numAdded] = tempYvalues[j-1];//getMinValue(tempYvalues, 0, j-1); out[1][numAdded+1] = tempYvalues[j-1];//(int)getMaxValue(tempYvalues, 0, j-1); j = 0; xvalue = tempValue; numAdded = numAdded+2; } seisIndex++; } out[0][numAdded] = xvalue; out[0][numAdded+1] = xvalue; out[1][numAdded] = tempYvalues[j-1]; out[1][numAdded+1] = tempYvalues[j-1]; int temp[][] = new int[2][]; temp[0] = new int[numAdded]; temp[1] = new int[numAdded]; System.arraycopy(out[0], 0, temp[0], 0, numAdded); System.arraycopy(out[1], 0, temp[1], 0, numAdded); return temp; }
out[1][numAdded] = tempYvalues[j-1]; out[1][numAdded+1] = tempYvalues[j-1];
out[1][numAdded] = getMinValue(tempYvalues, 0, j-1); out[1][numAdded+1] = (int)getMaxValue(tempYvalues, 0, j-1);
protected static int[][] scaleXvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size) throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; int[][] out = new int[2][]; int seisIndex = 0; int pixelIndex = 0; int numAdded = 0; if ( seis.getEndTime().before(config.getBeginTime()) || seis.getBeginTime().after(config.getEndTime()) ) { out[0] = new int[0]; out[1] = new int[0]; logger.info("The end time is before the beginTime in simple seismogram"); return out; } MicroSecondDate tMin = config.getBeginTime(); MicroSecondDate tMax = config.getEndTime(); UnitRangeImpl ampRange = config.getAmpRange().convertTo(seis.getUnit()); double yMin = ampRange.getMinValue(); double yMax = ampRange.getMaxValue(); int seisStartIndex = getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), config.getBeginTime()); int seisEndIndex = getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), config.getEndTime()); seisStartIndex--; seisEndIndex++; if (seisStartIndex < 0) { seisStartIndex = 0; } if (seisEndIndex >= seis.getNumPoints()) { seisEndIndex = seis.getNumPoints()-1; } MicroSecondDate tempdate = getValue(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), seisStartIndex); int pixelStartIndex = getPixel(size.width, config.getBeginTime(), config.getEndTime(), tempdate); tempdate = getValue(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), seisEndIndex); int pixelEndIndex = getPixel(size.width, config.getBeginTime(), config.getEndTime(), tempdate); int pixels = size.width; out[0] = new int[2*pixels]; out[1] = new int[out[0].length]; int tempYvalues[] = new int [out[0].length]; seisIndex = seisStartIndex; numAdded = 0; int xvalue = 0; int tempValue; xvalue = Math.round((float)(linearInterp(seisStartIndex, pixelStartIndex, seisEndIndex, pixelEndIndex, seisIndex))); seisIndex++; int j; j = 0; while (seisIndex <= seisEndIndex) { tempValue = Math.round((float)(linearInterp(seisStartIndex, pixelStartIndex, seisEndIndex, pixelEndIndex, seisIndex))); tempYvalues[j++] = (int)seis.getValueAt(seisIndex).getValue(); if(tempValue != xvalue) { out[0][numAdded] = xvalue; out[0][numAdded+1] = xvalue; out[1][numAdded] = tempYvalues[j-1];//getMinValue(tempYvalues, 0, j-1); out[1][numAdded+1] = tempYvalues[j-1];//(int)getMaxValue(tempYvalues, 0, j-1); j = 0; xvalue = tempValue; numAdded = numAdded+2; } seisIndex++; } out[0][numAdded] = xvalue; out[0][numAdded+1] = xvalue; out[1][numAdded] = tempYvalues[j-1]; out[1][numAdded+1] = tempYvalues[j-1]; int temp[][] = new int[2][]; temp[0] = new int[numAdded]; temp[1] = new int[numAdded]; System.arraycopy(out[0], 0, temp[0], 0, numAdded); System.arraycopy(out[1], 0, temp[1], 0, numAdded); return temp; }
TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode);
TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode, stamp);
public CreditCardAuthorizationEntry getAuthorizationEntry(Supplier supplier, String authorizationCode, IWTimestamp stamp) { CreditCardInformation info = getCreditCardInformation(supplier, stamp); if (info != null) { try { if ( CreditCardMerchant.MERCHANT_TYPE_TPOS.equals(info.getType()) ){ TPosAuthorisationEntriesBeanHome authEntHome = (TPosAuthorisationEntriesBeanHome) IDOLookup.getHome(TPosAuthorisationEntriesBean.class); TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode); if (entry != null) { return entry; } } else if ( CreditCardMerchant.MERCHANT_TYPE_KORTHATHJONUSTAN.equals(info.getType()) ) { KortathjonustanAuthorisationEntriesHome authEntHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries entry = authEntHome.findByAuthorizationCode(authorizationCode); if (entry != null) { return entry; } } } catch (IDOFinderException ignore) { } catch (Exception e) { e.printStackTrace(System.err); } } else { try { log("Cannot find creditCardInformation for supplier = "+ supplier.getName()+", looking up authEntry in TPOS...authCode = "+authorizationCode); TPosAuthorisationEntriesBeanHome authEntHome = (TPosAuthorisationEntriesBeanHome) IDOLookup.getHome(TPosAuthorisationEntriesBean.class); TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode); if (entry != null) { return entry; } } catch (IDOFinderException ignore) { } catch (Exception e) { e.printStackTrace(System.err); } } return null; }
KortathjonustanAuthorisationEntries entry = authEntHome.findByAuthorizationCode(authorizationCode);
KortathjonustanAuthorisationEntries entry = authEntHome.findByAuthorizationCode(authorizationCode, stamp);
public CreditCardAuthorizationEntry getAuthorizationEntry(Supplier supplier, String authorizationCode, IWTimestamp stamp) { CreditCardInformation info = getCreditCardInformation(supplier, stamp); if (info != null) { try { if ( CreditCardMerchant.MERCHANT_TYPE_TPOS.equals(info.getType()) ){ TPosAuthorisationEntriesBeanHome authEntHome = (TPosAuthorisationEntriesBeanHome) IDOLookup.getHome(TPosAuthorisationEntriesBean.class); TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode); if (entry != null) { return entry; } } else if ( CreditCardMerchant.MERCHANT_TYPE_KORTHATHJONUSTAN.equals(info.getType()) ) { KortathjonustanAuthorisationEntriesHome authEntHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries entry = authEntHome.findByAuthorizationCode(authorizationCode); if (entry != null) { return entry; } } } catch (IDOFinderException ignore) { } catch (Exception e) { e.printStackTrace(System.err); } } else { try { log("Cannot find creditCardInformation for supplier = "+ supplier.getName()+", looking up authEntry in TPOS...authCode = "+authorizationCode); TPosAuthorisationEntriesBeanHome authEntHome = (TPosAuthorisationEntriesBeanHome) IDOLookup.getHome(TPosAuthorisationEntriesBean.class); TPosAuthorisationEntriesBean entry = authEntHome.findByAuthorisationIdRsp(authorizationCode); if (entry != null) { return entry; } } catch (IDOFinderException ignore) { } catch (Exception e) { e.printStackTrace(System.err); } } return null; }
geoNum = geoNum.substring("GeogRegion".length(), geoNum.length());
public int getRegionValue(String region) { String geoNum = feProps.getProperty(region.replace(' ','_')); if (geoNum != null) { return Integer.parseInt(geoNum); } // end of if (feProps.get(region.replace(' ','_'))) return 0; }
sess.namedQuery("getGuidCountCalendar"); sess.setEntity("cal", val.getCalendar()); sess.setString("guid", val.getGuid()); Collection refs = sess.getList(); Integer ct = (Integer)refs.iterator().next(); if (ct.intValue() > 0) {
if ((countCalendarGuids("getGuidCountCalendar", val) > 0) || (countCalendarGuids("getGuidCountCalendarAnnotation", val) > 0)) {
public void addEvent(BwEvent val, Collection overrides) throws CalFacadeException { RecuridTable recurids = null; HibSession sess = getSess(); if ((overrides != null) && (overrides.size() != 0)) { if (!val.getRecurring()) { throw new CalFacadeException("Master event not recurring"); } recurids = new RecuridTable(overrides); } assignGuid(val); /* The guid must not exist in the same calendar. The above call assigns a guid if * one wasn't assigned already. However, the event may have come with a guid * (caldav, import, etc) so we need to check here. * * It also ensures our guid allocation is working OK */ sess.namedQuery("getGuidCountCalendar"); sess.setEntity("cal", val.getCalendar()); sess.setString("guid", val.getGuid()); Collection refs = sess.getList(); Integer ct = (Integer)refs.iterator().next(); if (ct.intValue() > 0) { throw new CalFacadeException(CalFacadeException.duplicateGuid); } if (val.getOrganizer() != null) { sess.saveOrUpdate(val.getOrganizer()); } sess.save(val); /** If it's a recurring event see what we can do to optimise searching * and retrieval */ if (!val.getRecurring()) { return; } /* Try to create a set of occurrences for the event We'll turn it into a VEvent to use the ical4j code. */ VEvent vev = VEventUtil.toIcalEvent(val, null); /* Determine the absolute latest date. */ Date latest = VEventUtil.getLatestRecurrenceDate(vev, debug); if (latest == null) { /* Unlimited recurrences. No more to do here * We could optionally choose to limit these to say 3 years */ return; } CalTimezones tzs = cal.getTimezones(); DtStart vstart = vev.getStartDate(); String stzid = CalFacadeUtil.getTzid(vstart); TimeZone stz = null; if (stzid != null) { stz = tzs.getTimeZone(stzid); } val.getRecurrence().setLatestDate(tzs.getUtc(latest.toString(), stzid, stz)); /* Get all the times for this event. - this could be a problem. Need to limit the number. Should we do this in chunks, stepping through the whole period? */ Date start = vev.getStartDate().getDate(); PeriodList pl = vev.getConsumedTime(start, latest); Iterator it = pl.iterator(); boolean dateOnly = val.getDtstart().getDateType(); while (it.hasNext()) { Period p = (Period)it.next(); BwDateTime rstart = new BwDateTime(); rstart.init(dateOnly, p.getStart().toString(), stzid, tzs); BwDateTime rend = new BwDateTime(); rend.init(dateOnly, p.getEnd().toString(), stzid, tzs); BwRecurrenceInstance ri = new BwRecurrenceInstance(); ri.setDtstart(rstart); ri.setDtend(rend); ri.setRecurrenceId(ri.getDtstart().getDate()); ri.setMaster(val); if (recurids != null) { /* See if we have a recurrence */ String rid = ri.getRecurrenceId(); BwEventProxy ov = (BwEventProxy)recurids.get(rid); if (ov != null) { if (debug) { debugMsg("Add override with recurid " + rid); } addOverride(ov, ri); recurids.remove(rid); } } sess.save(ri); } if (recurids != null) { if (recurids.size() != 0) { throw new CalFacadeException("Invalid override"); } } val.getRecurrence().setExpanded(true); sess.saveOrUpdate(val); }
_band.setAttribute(ATTRIBUTE_IS_SPLIT_ALLOWED,Boolean.toString(value));
_band.setAttribute(ATTRIBUTE_IS_SPLIT_ALLOWED,String.valueOf(value));
public void setIsSplitAllowed(boolean value){ _band.setAttribute(ATTRIBUTE_IS_SPLIT_ALLOWED,Boolean.toString(value)); }
runAsUser = form.getEnv().getAppProperty("run.as.user");
if (calSuite == null) { runAsUser = form.getEnv().getAppProperty("run.as.user"); }
private boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } // XXX access - disable use of roles access = svci.getUserAuth().getUsertype(); } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); String runAsUser = user; try { svci = new CalSvc(); if (publicAdmin || (user == null)) { runAsUser = form.getEnv().getAppProperty("run.as.user"); } CalSvcIPars pars = new CalSvcIPars(user, //access, runAsUser, form.getEnv().getAppPrefix(), publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); cb.in(true); UserAuth ua = null; UserAuthPar par = new UserAuthPar(); par.svlt = servlet; par.req = request; if (publicAdmin) { try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); // XXX access - disable use of roles access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return false; } } } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
calSuite,
private boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boolean canSwitch, boolean debug) throws CalFacadeException { /** Do some checks first */ String authUser = String.valueOf(form.getCurrentUser()); if (!publicAdmin) { /* We're never allowed to switch identity as a user client. */ if (!authUser.equals(String.valueOf(user))) { return false; } } else if (user == null) { throw new CalFacadeException("Null user parameter for public admin."); } CalSvcI svci = BwWebUtil.getCalSvcI(request); /** Make some checks to see if this is an old - restarted session. If so discard the svc interface */ if (svci != null) { if (!svci.isOpen()) { svci = null; info(".Svci interface discarded from old session"); } } if (svci != null) { /* Already there and already opened */ if (debug) { debugMsg("CalSvcI-- Obtained from session for user " + svci.getUser()); } // XXX access - disable use of roles access = svci.getUserAuth().getUsertype(); } else { if (debug) { debugMsg(".CalSvcI-- get new object for user " + user); } /* create a call back object so the filter can open the service interface */ BwCallback cb = new Callback(form); HttpSession hsess = request.getSession(); hsess.setAttribute(BwCallback.cbAttrName, cb); String runAsUser = user; try { svci = new CalSvc(); if (publicAdmin || (user == null)) { runAsUser = form.getEnv().getAppProperty("run.as.user"); } CalSvcIPars pars = new CalSvcIPars(user, //access, runAsUser, form.getEnv().getAppPrefix(), publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); cb.in(true); UserAuth ua = null; UserAuthPar par = new UserAuthPar(); par.svlt = servlet; par.req = request; if (publicAdmin) { try { ua = svci.getUserAuth(user, par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); svci.setSuperUser((ua.getUsertype() & UserAuth.superUser) != 0); // XXX access - disable use of roles access = ua.getUsertype(); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return false; } } } catch (CalFacadeException cfe) { throw cfe; } catch (Throwable t) { throw new CalFacadeException(t); } } form.assignUserVO((BwUser)svci.getUser().clone()); if (publicAdmin) { canSwitch = canSwitch || ((access & UserAuth.contentAdminUser) != 0) || ((access & UserAuth.superUser) != 0); BwUser u = svci.getUser(); if (u == null) { throw new CalFacadeException("Null user for public admin."); } String curUser = u.getAccount(); if (!canSwitch && !user.equals(curUser)) { /** Trying to switch but not allowed */ return false; } if (!user.equals(curUser)) { /** Switching user */ svci.setUser(user); curUser = user; } form.assignCurrentAdminUser(curUser); } return true; }
form.setHour24(env.getAppBoolProperty("hour24")); form.setMinIncrement(env.getAppIntProperty("minincrement")); if (!admin) { form.assignShowYearData(env.getAppBoolProperty("showyeardata")); }
private synchronized BwSession getState(HttpServletRequest request, BwActionFormBase form, MessageResources messages, String adminUserId, boolean admin) throws Throwable { BwSession s = BwWebUtil.getState(request); HttpSession sess = request.getSession(false); String appName = getAppName(sess); if (s != null) { if (debug) { debugMsg("getState-- obtainedfrom session"); debugMsg("getState-- timeout interval = " + sess.getMaxInactiveInterval()); } form.assignNewSession(false); } else { if (debug) { debugMsg("getState-- get new object"); } form.assignNewSession(true); CalEnv env = getEnv(request, form); String appRoot = env.getAppProperty("root"); /** The actual session class used is possibly site dependent */ s = new BwSessionImpl(form.getCurrentUser(), appRoot, appName, form.getPresentationState(), messages, form.getSchemeHostPort(), debug); BwWebUtil.setState(request, s); form.setHour24(env.getAppBoolProperty("hour24")); form.setMinIncrement(env.getAppIntProperty("minincrement")); if (!admin) { form.assignShowYearData(env.getAppBoolProperty("showyeardata")); } setSessionAttr(request, "cal.pubevents.client.uri", messages.getMessage("org.bedework.public.calendar.uri")); setSessionAttr(request, "cal.personal.client.uri", messages.getMessage("org.bedework.personal.calendar.uri")); setSessionAttr(request, "cal.admin.client.uri", messages.getMessage("org.bedework.public.admin.uri")); String temp = messages.getMessage("org.bedework.host"); if (temp == null) { temp = form.getSchemeHostPort(); } setSessionAttr(request, "cal.server.host", temp); String raddr = request.getRemoteAddr(); String rhost = request.getRemoteHost(); info("===============" + appName + ": New session (" + s.getSessionNum() + ") from " + rhost + "(" + raddr + ")"); if (!admin) { /** Ensure the session timeout interval is longer than our refresh period */ // Should come from db -- int refInt = s.getRefreshInterval(); int refInt = 60; // 1 min refresh? if (refInt > 0) { int timeout = sess.getMaxInactiveInterval(); if (timeout <= refInt) { // An extra minute should do it. debugMsg("@+@+@+@+@+ set timeout to " + (refInt + 60)); sess.setMaxInactiveInterval(refInt + 60); } } } } int access = getAccess(request, messages); if (debug) { debugMsg("Container says that current user has the type: " + access); } /** Ensure we have a CalAdminSvcI object */ checkSvci(request, form, s, access, adminUserId, getPublicAdmin(form), false, debug); /* UserAuth ua = null; UserAuthPar par = new UserAuthPar(); par.svlt = servlet; par.req = request; try { ua = form.fetchSvci().getUserAuth(s.getUser(), par); form.assignAuthorisedUser(ua.getUsertype() != UserAuth.noPrivileges); if (debug) { debugMsg("UserAuth says that current user has the type: " + ua.getUsertype()); } } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); return null; } */ return s; }
env.getAppProperty("logprefix"));
form.retrieveConfig().getLogPrefix());
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm; String adminUserId = null; CalEnv env = getEnv(request, form); setSessionAttr(request, "org.bedework.logprefix", env.getAppProperty("logprefix")); boolean guestMode = env.getAppBoolProperty("guestmode"); if (guestMode) { form.assignCurrentUser(null); } else { adminUserId = form.getCurrentAdminUser(); if (adminUserId == null) { adminUserId = form.getCurrentUser(); } } if (getPublicAdmin(form)) { /** We may want to masquerade as a different user */ String temp = getReqPar(request, "adminUserId"); if (temp != null) { adminUserId = temp; } } /* UWCalCallback cb = new Callback(form); HttpSession sess = request.getSession(); sess.setAttribute(UWCalCallback.cbAttrName, cb); */ BwSession s = getState(request, form, messages, adminUserId, getPublicAdmin(form)); if (s == null) { /* An error should have been emitted. The superclass will return an error forward.*/ return forward; } form.setSession(s); form.setGuest(s.isGuest()); if (form.getGuest()) { // force public view on - off by default form.setPublicView(true); } String appBase = form.getAppBase(); if (appBase != null) { // Embed in request for pages that cannot access the form (loggedOut) request.setAttribute("org.bedework.action.appbase", appBase); } if (form.getNewSession()) { // First time through here for this session // Set to default view setView(null, form); } /* Set up ready for the action */ if (getPublicAdmin(form)) { /* Set some options from the environment */ form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } /** Show the owner we are administering */ form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getUserAuth().isSuperUser()); } if (!form.getAuthorisedUser()) { return "noAccess"; } String temp = checkGroup(request, form, true); if (temp != null) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } /** Ensure we have prefs and other values for the AuthUser */ setAuthUser(form); } else { form.setAutoCreateSponsors(true); form.setAutoCreateLocations(true); form.setAutoDeleteSponsors(true); form.setAutoDeleteLocations(true); String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, form.getEnv().getAppIntProperty("refresh.interval"), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); } } /* see if we got cancelled */ String reqpar = request.getParameter("cancelled"); if (reqpar != null) { /** Set the objects to null so we get new ones. */ initFields(form); form.getMsg().emit("org.bedework.client.message.cancelled"); return "cancelled"; } /* Set up or refresh frequently used information, */ CalSvcI svc = form.fetchSvci(); form.setSubscriptions(svc.getSubscriptions()); try { forward = doAction(request, response, s, form); if (getPublicAdmin(form)) { } else { /* See if we need to refresh */ checkRefresh(form); } } catch (CalFacadeAccessException cfae) { form.getErr().emit("org.bedework.client.error.noaccess", "for that action"); forward="noaccess"; } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); } return forward; }
if (getPublicAdmin(form)) { form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getUserAuth().isSuperUser()); } if (!form.getAuthorisedUser()) { return "noAccess"; } String temp = checkGroup(request, form, true); if (temp != null) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } setAuthUser(form); } else { form.setAutoCreateSponsors(true); form.setAutoCreateLocations(true); form.setAutoDeleteSponsors(true); form.setAutoDeleteLocations(true); String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, form.getEnv().getAppIntProperty("refresh.interval"), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); }
String temp = actionSetup(request, response, form); if (temp != null) { return temp;
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm; String adminUserId = null; CalEnv env = getEnv(request, form); setSessionAttr(request, "org.bedework.logprefix", env.getAppProperty("logprefix")); boolean guestMode = env.getAppBoolProperty("guestmode"); if (guestMode) { form.assignCurrentUser(null); } else { adminUserId = form.getCurrentAdminUser(); if (adminUserId == null) { adminUserId = form.getCurrentUser(); } } if (getPublicAdmin(form)) { /** We may want to masquerade as a different user */ String temp = getReqPar(request, "adminUserId"); if (temp != null) { adminUserId = temp; } } /* UWCalCallback cb = new Callback(form); HttpSession sess = request.getSession(); sess.setAttribute(UWCalCallback.cbAttrName, cb); */ BwSession s = getState(request, form, messages, adminUserId, getPublicAdmin(form)); if (s == null) { /* An error should have been emitted. The superclass will return an error forward.*/ return forward; } form.setSession(s); form.setGuest(s.isGuest()); if (form.getGuest()) { // force public view on - off by default form.setPublicView(true); } String appBase = form.getAppBase(); if (appBase != null) { // Embed in request for pages that cannot access the form (loggedOut) request.setAttribute("org.bedework.action.appbase", appBase); } if (form.getNewSession()) { // First time through here for this session // Set to default view setView(null, form); } /* Set up ready for the action */ if (getPublicAdmin(form)) { /* Set some options from the environment */ form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } /** Show the owner we are administering */ form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getUserAuth().isSuperUser()); } if (!form.getAuthorisedUser()) { return "noAccess"; } String temp = checkGroup(request, form, true); if (temp != null) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } /** Ensure we have prefs and other values for the AuthUser */ setAuthUser(form); } else { form.setAutoCreateSponsors(true); form.setAutoCreateLocations(true); form.setAutoDeleteSponsors(true); form.setAutoDeleteLocations(true); String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, form.getEnv().getAppIntProperty("refresh.interval"), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); } } /* see if we got cancelled */ String reqpar = request.getParameter("cancelled"); if (reqpar != null) { /** Set the objects to null so we get new ones. */ initFields(form); form.getMsg().emit("org.bedework.client.message.cancelled"); return "cancelled"; } /* Set up or refresh frequently used information, */ CalSvcI svc = form.fetchSvci(); form.setSubscriptions(svc.getSubscriptions()); try { forward = doAction(request, response, s, form); if (getPublicAdmin(form)) { } else { /* See if we need to refresh */ checkRefresh(form); } } catch (CalFacadeAccessException cfae) { form.getErr().emit("org.bedework.client.error.noaccess", "for that action"); forward="noaccess"; } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); } return forward; }
if (getPublicAdmin(form)) { } else {
if (!getPublicAdmin(form)) {
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm; String adminUserId = null; CalEnv env = getEnv(request, form); setSessionAttr(request, "org.bedework.logprefix", env.getAppProperty("logprefix")); boolean guestMode = env.getAppBoolProperty("guestmode"); if (guestMode) { form.assignCurrentUser(null); } else { adminUserId = form.getCurrentAdminUser(); if (adminUserId == null) { adminUserId = form.getCurrentUser(); } } if (getPublicAdmin(form)) { /** We may want to masquerade as a different user */ String temp = getReqPar(request, "adminUserId"); if (temp != null) { adminUserId = temp; } } /* UWCalCallback cb = new Callback(form); HttpSession sess = request.getSession(); sess.setAttribute(UWCalCallback.cbAttrName, cb); */ BwSession s = getState(request, form, messages, adminUserId, getPublicAdmin(form)); if (s == null) { /* An error should have been emitted. The superclass will return an error forward.*/ return forward; } form.setSession(s); form.setGuest(s.isGuest()); if (form.getGuest()) { // force public view on - off by default form.setPublicView(true); } String appBase = form.getAppBase(); if (appBase != null) { // Embed in request for pages that cannot access the form (loggedOut) request.setAttribute("org.bedework.action.appbase", appBase); } if (form.getNewSession()) { // First time through here for this session // Set to default view setView(null, form); } /* Set up ready for the action */ if (getPublicAdmin(form)) { /* Set some options from the environment */ form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } /** Show the owner we are administering */ form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getUserAuth().isSuperUser()); } if (!form.getAuthorisedUser()) { return "noAccess"; } String temp = checkGroup(request, form, true); if (temp != null) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } /** Ensure we have prefs and other values for the AuthUser */ setAuthUser(form); } else { form.setAutoCreateSponsors(true); form.setAutoCreateLocations(true); form.setAutoDeleteSponsors(true); form.setAutoDeleteLocations(true); String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, form.getEnv().getAppIntProperty("refresh.interval"), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); } } /* see if we got cancelled */ String reqpar = request.getParameter("cancelled"); if (reqpar != null) { /** Set the objects to null so we get new ones. */ initFields(form); form.getMsg().emit("org.bedework.client.message.cancelled"); return "cancelled"; } /* Set up or refresh frequently used information, */ CalSvcI svc = form.fetchSvci(); form.setSubscriptions(svc.getSubscriptions()); try { forward = doAction(request, response, s, form); if (getPublicAdmin(form)) { } else { /* See if we need to refresh */ checkRefresh(form); } } catch (CalFacadeAccessException cfae) { form.getErr().emit("org.bedework.client.error.noaccess", "for that action"); forward="noaccess"; } catch (Throwable t) { form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); form.getErr().emit(t); } return forward; }
private void newline() throws IOException {
public void newline() throws IOException {
private void newline() throws IOException { wtr.write("\n"); }
ATObject newhost = initargs.base_at(NATNumber.ONE); return new NativeField(newhost, name_, accessor_, mutator_);
if (initargs.base_getLength() != NATNumber.ONE) { return super.meta_newInstance(initargs); } else { ATObject newhost = initargs.base_at(NATNumber.ONE); return new NativeField(newhost, name_, accessor_, mutator_); }
public ATObject meta_newInstance(ATTable initargs) throws InterpreterException { ATObject newhost = initargs.base_at(NATNumber.ONE); return new NativeField(newhost, name_, accessor_, mutator_); }
System.out.println("item = " + item); System.out.println("basket = " + basket);
public void removeItem(BasketItem item) { if (item == null || basket == null) { return; } if (basket.containsKey(item.getItemID())) { basket.remove(item.getItemID()); } }
new ATObject[] { value.base_asMirror().base_getBase() });
new ATObject[] { name.equals(_MIRROR_)? value : value.base_asMirror().base_getBase() });
public ATNil meta_assignField(ATObject receiver, ATSymbol name, ATObject value) throws InterpreterException { NATMirage principal = (NATMirage)receiver.base_asMirror().base_getBase(); String jSelector = Reflection.upMagicFieldMutationSelector(name); try{ JavaInterfaceAdaptor.invokeNativeATMethod( principal.getClass(), principal, jSelector, new ATObject[] { value.base_asMirror().base_getBase() }); } catch (XSelectorNotFound e) { // Principal does not have a corresponding meta_level method // OR the passed value is not a mirror object // try for a base_level method of the mirror itself. return super.meta_assignField(receiver, name, value); } return NATNil._INSTANCE_; }
throw new XUndefinedField("field assignment", name.getText().asNativeText().javaValue);
throw new XUndefinedField("field assignment", name.base_getText().asNativeText().javaValue);
public ATNil meta_assignField(ATSymbol name, ATObject value) throws NATException { String selector = Reflection.upBaseFieldMutationSelector(name); // try to invoke a native base_setName method try { JavaInterfaceAdaptor.invokeJavaMethod( this.getClass(), this, selector, new ATObject[] { value }); } catch (XSelectorNotFound e) { // if such a method does not exist, the field assignment has failed throw new XUndefinedField("field assignment", name.getText().asNativeText().javaValue); } return NATNil._INSTANCE_; }
throw new XUndefinedField("variable assignment", name.getText().asNativeText().javaValue);
throw new XUndefinedField("variable assignment", name.base_getText().asNativeText().javaValue);
public ATNil meta_assignVariable(ATSymbol name, ATObject value) throws NATException { try { return this.meta_assignField(name, value); } catch (XSelectorNotFound e) { // transform selector not found in undefined variable assignment throw new XUndefinedField("variable assignment", name.getText().asNativeText().javaValue); } }
throw new XUndefinedField("variable access", selector.getText().asNativeText().javaValue);
throw new XUndefinedField("variable access", selector.base_getText().asNativeText().javaValue);
public ATObject meta_lookup(ATSymbol selector) throws NATException { try { return this.meta_select(this, selector); } catch(XSelectorNotFound e) { // transform selector not found in undefined variable access throw new XUndefinedField("variable access", selector.getText().asNativeText().javaValue); } }
mailer = (MailerIntf)CalEnv.getGlobalObject("mailerclass",
if (env == null) { throw new Exception("env not set"); } mailer = (MailerIntf)env.getGlobalObject("mailerclass",
public MailerIntf getMailer() { if (mailer != null) { return mailer; } try { mailer = (MailerIntf)CalEnv.getGlobalObject("mailerclass", MailerIntf.class); mailer.init(fetchSvci(), debug); } catch (Throwable t) { err.emit(t); } return mailer; }
System.out.println("[Korta] PostData = "+strPostData.toString());
private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; //System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData = new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE);//"site=22" appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEPTOR_IDENT, ACCEPTOR_IDENTIFICATION); appendProperty(strPostData, PROPERTY_CC_NUMBER, strCCNumber); appendProperty(strPostData, PROPERTY_CC_EXPIRE, strCCExpire); appendProperty(strPostData, PROPERTY_AMOUNT, strAmount); appendProperty(strPostData, PROPERTY_CURRENCY_CODE, strCurrencyCode); appendProperty(strPostData, PROPERTY_CURRENCY_EXPONENT, strCurrencyExponent); appendProperty(strPostData, PROPERTY_CARDHOLDER_NAME, strName); appendProperty(strPostData, PROPERTY_REFERENCE_ID, strReferenceNumber); appendProperty(strPostData, PROPERTY_CURRENT_DATE, strCurrentDate); appendProperty(strPostData, PROPERTY_CC_VERIFY_CODE, strCCVerify); addDefautProperties(strPostData); String strResponse = null; //System.out.println("Request [" + strPostData.toString() + "]"); try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } //System.out.println("Response [" + strResponse + "]"); if (strResponse == null) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest returned null"); cce.setErrorNumber("-"); throw cce; } else if (!strResponse.startsWith(PROPERTY_ACTION_CODE)) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("Invalid response from host, should start with d39 [" + strResponse + "]"); cce.setErrorNumber("-"); throw cce; } else { properties = parseResponse(strResponse); if (CODE_AUTHORIZATOIN_APPROVED.equals(properties.get(PROPERTY_ACTION_CODE))) { return properties; } else { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError(properties.get(PROPERTY_ACTION_CODE_TEXT).toString()); cce.setErrorMessage(properties.get(PROPERTY_ERROR_TEXT).toString()); cce.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); throw cce; } } } catch (UnsupportedEncodingException e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("UnsupportedEncodingException"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } }
System.out.println("[Korta] post_data = "+strPostData.toString());
private String getPostData(Hashtable properties) { StringBuffer strPostData = new StringBuffer(); try { appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return strPostData.toString(); }
private EventQuery buildEventQuery(Vector cfs,
private EventQuery buildEventQuery(Collection cfs,
private EventQuery buildEventQuery(Vector cfs, TimeRange globaltr) throws WebdavException { Iterator it = cfs.iterator(); EventQuery eq = new EventQuery(); eq.trange = globaltr; if (debug) { trace("buildEventQuery ---- entry"); } while (it.hasNext()) { CompFilter cf = (CompFilter)it.next(); if (!"VEVENT".equals(cf.getName())) { if (debug) { trace("buildEventQuery - found cf.getName() - exiting"); } return null; } if (debug) { trace("buildEventQuery - process comp-filter"); cf.dump(getLogger(), ""); } TimeRange tr = cf.getTimeRange(); if (tr != null) { if (debug) { trace("buildEventQuery - found timerange"); } if (eq.trange == null) { eq.trange = tr; } else { eq.trange.merge(tr); } } if ((eq.trange != null) && (eq.trange.getStart().after(eq.trange.getEnd()))) { return null; } Vector propFilters = cf.getPropFilters(); if (eq.propFilters == null) { eq.propFilters = propFilters; eq.postFilter = true; } else { // merge and make sure they don't mean no result } } return eq; }
Vector propFilters = cf.getPropFilters();
Collection propFilters = cf.getPropFilters();
private EventQuery buildEventQuery(Vector cfs, TimeRange globaltr) throws WebdavException { Iterator it = cfs.iterator(); EventQuery eq = new EventQuery(); eq.trange = globaltr; if (debug) { trace("buildEventQuery ---- entry"); } while (it.hasNext()) { CompFilter cf = (CompFilter)it.next(); if (!"VEVENT".equals(cf.getName())) { if (debug) { trace("buildEventQuery - found cf.getName() - exiting"); } return null; } if (debug) { trace("buildEventQuery - process comp-filter"); cf.dump(getLogger(), ""); } TimeRange tr = cf.getTimeRange(); if (tr != null) { if (debug) { trace("buildEventQuery - found timerange"); } if (eq.trange == null) { eq.trange = tr; } else { eq.trange.merge(tr); } } if ((eq.trange != null) && (eq.trange.getStart().after(eq.trange.getEnd()))) { return null; } Vector propFilters = cf.getPropFilters(); if (eq.propFilters == null) { eq.propFilters = propFilters; eq.postFilter = true; } else { // merge and make sure they don't mean no result } } return eq; }
return new Vector();
return new ArrayList();
public Collection postFilter(Collection nodes) throws WebdavException { if (!postFilterNeeded) { return nodes; } if (debug) { trace("post filtering needed"); } CompFilter cfltr = filter; // Currently only handle VCALENDAR for top level. if (!"VCALENDAR".equals(cfltr.getName())) { return new Vector(); } Vector filtered = new Vector(); Iterator it = nodes.iterator(); while (it.hasNext()) { Object node = it.next(); CaldavComponentNode curnode = null; if (!(node instanceof CaldavComponentNode)) { // Cannot match to anything - don't pass it? } else { curnode = (CaldavComponentNode)node; if (cfltr.hasPropFilters()) { // // // Do top level property filters here // Set curnode to null to fail filter // // } if ((curnode != null) && !WebdavUtils.emptyCollection(eventFilters)) { Component comp = curnode.getVevent(); Iterator efit = eventFilters.iterator(); while (efit.hasNext()) { PropFilter pf = (PropFilter)efit.next(); if (!pf.filter(comp)) { curnode = null; break; } } } } if (curnode != null) { filtered.add(curnode); } } return filtered; }