rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
|
---|---|---|
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; } } | 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; } | 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; } } |
} 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; } } | 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; } } | 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; } } |
} else { throw new CreditCardAuthorizationException("Unsupported currency ("+currency+")"); | private void setCurrencyAndAmount(String currency, double amount) throws CreditCardAuthorizationException { if (currency != null) { int amountMultiplier = 100; if (currency.equalsIgnoreCase("ISK")) { strCurrencyCode = "352"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("USD")) { strCurrencyCode = "840"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("GBP")) { strCurrencyCode = "826"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("DKK")) { strCurrencyCode = "208"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("EUR")) { strCurrencyCode = "978"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else { throw new CreditCardAuthorizationException("Unsupported currency ("+currency+")"); } /* Setting amount with correct */ strAmount = Integer.toString((int) amount * amountMultiplier); } else { throw new CreditCardAuthorizationException("Currency is missing"); } } |
|
else { throw new CreditCardAuthorizationException("Unsupported currency (" + currency + ")"); } | private void setCurrencyAndAmount(String currency, double amount) throws CreditCardAuthorizationException { if (currency != null) { int amountMultiplier = 100; if (currency.equalsIgnoreCase("ISK")) { strCurrencyCode = "352"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("USD")) { strCurrencyCode = "840"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("GBP")) { strCurrencyCode = "826"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("DKK")) { strCurrencyCode = "208"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else if (currency.equalsIgnoreCase("EUR")) { strCurrencyCode = "978"; strCurrencyExponent = "2"; amountMultiplier = (int) Math.pow(10, Double.parseDouble(strCurrencyExponent)); } else { throw new CreditCardAuthorizationException("Unsupported currency ("+currency+")"); } /* Setting amount with correct */ strAmount = Integer.toString((int) amount * amountMultiplier); } else { throw new CreditCardAuthorizationException("Currency is missing"); } } |
|
FastEditorInput input = (FastEditorInput) fastEditor.getEditorInput(); File directory = input.getPath().removeLastSegments(1).toFile(); String filePath = input.getPath().removeFileExtension() .addFileExtension("fss").toOSString(); IPreferenceStore store = FastsdkPlugin.getDefault() .getPreferenceStore(); String pathToFast = store.getString(PreferenceConstants.P_PATH); try { Process process = Runtime.getRuntime().exec( pathToFast + " " + filePath, null, directory); Thread.sleep(4000); BufferedReader in = new BufferedReader(new InputStreamReader( process.getErrorStream())); String line = ""; while ((line = in.readLine()) != null) { logger.error(line); } in.close(); fastEditor.setGenerated(true); } catch (IOException exception) { exception.printStackTrace(); } catch (InterruptedException exception) { exception.printStackTrace(); } } | FastEditorInput input = (FastEditorInput) fastEditor.getEditorInput(); File directory = input.getPath().removeLastSegments(1).toFile(); String filePath = input.getPath().removeFileExtension() .addFileExtension("fss").toOSString(); IPreferenceStore store = FastsdkPlugin.getDefault() .getPreferenceStore(); String pathToFast = store.getString(PreferenceConstants.P_PATH); try { Process process = Runtime.getRuntime().exec( pathToFast + " " + filePath, null, directory); Thread.sleep(4000); BufferedReader in = new BufferedReader(new InputStreamReader( process.getInputStream())); String line = ""; while ((line = in.readLine()) != null) { logger.info(line); } in.close(); fastEditor.setGenerated(true); } catch (IOException exception) { exception.printStackTrace(); } catch (InterruptedException exception) { exception.printStackTrace(); } } | public void run() { FastMultiPageEditor fastEditor = (FastMultiPageEditor) window .getActivePage().getActiveEditor(); FastEditorInput input = (FastEditorInput) fastEditor.getEditorInput(); File directory = input.getPath().removeLastSegments(1).toFile(); String filePath = input.getPath().removeFileExtension() .addFileExtension("fss").toOSString(); IPreferenceStore store = FastsdkPlugin.getDefault() .getPreferenceStore(); String pathToFast = store.getString(PreferenceConstants.P_PATH); try { Process process = Runtime.getRuntime().exec( pathToFast + " " + filePath, null, directory); Thread.sleep(4000); BufferedReader in = new BufferedReader(new InputStreamReader( process.getErrorStream())); String line = ""; while ((line = in.readLine()) != null) { logger.error(line); } in.close(); fastEditor.setGenerated(true); } catch (IOException exception) { exception.printStackTrace(); } catch (InterruptedException exception) { exception.printStackTrace(); } } |
viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); | viewMenu.add( viewAutosizeColumns ); viewMenu.add( viewAutosizeAndHideColumns ); viewMenu.addSeparator(); viewExportMenu.add( viewExportFIX ); viewExportMenu.add( viewExportXML ); viewExportMenu.add( viewExportCSV ); viewMenu.add( viewExportMenu ); | public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( about ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); } |
helpMenu.add( about ); | helpMenu.add( helpAbout ); | public MenuBar() throws HeadlessException { super(); int keyMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); fileOpen.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_O, keyMask ) ); fileMenu.add( fileOpen ); fileClose.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_W, keyMask ) ); fileMenu.add( fileClose ); fileMenu.add( new JSeparator() ); fileTrace.setEnabled( true ); fileMenu.add( fileTrace ); add( fileMenu ); viewMenu.add( autosizeColumns ); viewMenu.add( autosizeAndHideColumns ); add( viewMenu ); filterAllMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_M, keyMask ) ); filterMenu.add( filterAllMessages ); filterAdministrativeMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_D, keyMask ) ); filterMenu.add( filterAdministrativeMessages ); filterApplicationMessages.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_P, keyMask ) ); filterMenu.add( filterApplicationMessages ); filterMenu.add( new JSeparator() ); filterCustomFilter.setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_F, keyMask ) ); filterMenu.add( filterCustomFilter ); filterMenu.add( new JSeparator() ); filterMenu.add( filterIndicationCategory ); filterMenu.add( filterEventCommunicationCategory ); filterMenu.add( filterQuotationNegotiationCategory ); filterMenu.add( filterMarketDataCategory ); filterMenu.add( filterSecurityAndTradingSessionCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterSingleGeneralOrderHandlingCategory ); filterMenu.add( filterCrossOrdersCategory ); filterMenu.add( filterMultilegOrdersCategory ); filterMenu.add( filterListProgramBasketTradingCategory ); filterMenu.add( new JSeparator() ); filterMenu.add( filterAllocationCategory ); filterMenu.add( filterConfirmationCategory ); filterMenu.add( filterSettlementInstructionsCategory ); filterMenu.add( filterTradeCaptureReportingCategory ); filterMenu.add( filterRegistrationInstructionsCategory ); filterMenu.add( filterPositionsMaintenanceCategory ); filterMenu.add( filterCollateralManagementCategory ); add( filterMenu ); helpMenu.add( about ); add( helpMenu ); reset(); addActionListener( this ); filterAllMessages.setSelected( true ); } |
autosizeColumns.addActionListener( l ); autosizeAndHideColumns.addActionListener( l ); about.addActionListener( l ); | viewAutosizeColumns.addActionListener( l ); viewAutosizeAndHideColumns.addActionListener( l ); viewExportFIX.addActionListener( l ); viewExportXML.addActionListener( l ); viewExportCSV.addActionListener( l ); helpAbout.addActionListener( l ); | public void addActionListener( ActionListener l ) { if( l == this ) { fileOpen.addActionListener( l ); fileClose.addActionListener( l ); fileTrace.addActionListener( l ); autosizeColumns.addActionListener( l ); autosizeAndHideColumns.addActionListener( l ); about.addActionListener( l ); Component[] components = filterMenu.getMenuComponents(); for( int i = 0; i < components.length; ++i ) { try { JCheckBoxMenuItem component = (JCheckBoxMenuItem)components[i]; component.addActionListener(l); } catch( ClassCastException cce ) { } } } else { actionListeners.add( l ); } } |
form.getErr().emit("org.bedework.error.badcalendarid"); | form.getErr().emit("org.bedework.client.error.badcalendarid"); | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { /* CalSvcI svci = form.getCalSvcI(); if (form.getGuest()) { return "doNothing"; } boolean subscribe = false; String reqpar = request.getParameter("subscribe"); if (Util.checkNull(reqpar) != null) { subscribe = true; } else { reqpar = request.getParameter("unsubscribe"); } int calid; if (Util.checkNull(reqpar) != null) { try { calid = Integer.parseInt(reqpar); } catch (Throwable t) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } BwCalendar cal = svci.getCalendar(calid); if (cal == null) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } if (subscribe) { svci.addSubscription(cal); return "edit"; } svci.removeSubscription(cal); return "success"; } /* Not subscribe/unsubscribe - do the edit actions */ return "success"; } |
if (au == null) { return forwardNoAccess; } | public int actionSetup(HttpServletRequest request, HttpServletResponse response, BwActionFormBase form) throws Throwable { if (getPublicAdmin(form)) { CalSvcI svc = form.fetchSvci(); UserAuth ua = svc.getUserAuth(); BwAuthUser au = ua.getUser(form.getCurrentUser()); // Refresh current auth user prefs. BwAuthUserPrefs prefs = au.getPrefs(); if (prefs == null) { prefs = new BwAuthUserPrefs(); } form.setCurAuthUserPrefs(prefs); if (form.getNewSession()) { // First time through here for this session. svci is still set up for the // authenticated user. Set access rights. int rights = au.getUsertype(); form.assignCurUserAlerts((rights & UserAuth.alertUser) != 0); form.assignCurUserPublicEvents((rights & UserAuth.publicEventUser) != 0); form.assignCurUserContentAdminUser((rights & UserAuth.contentAdminUser) != 0); form.assignCurUserSuperUser((rights & UserAuth.superUser) != 0); form.assignAuthorisedUser(rights != UserAuth.noPrivileges); svc.setSuperUser((rights & UserAuth.superUser) != 0); } if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } /** Show the owner we are administering */ form.setAdminUserId(form.fetchSvci().getUser().getAccount()); if (debug) { logIt("-------- isSuperUser: " + form.getCurUserSuperUser()); } int temp = checkGroup(request, form, true); if (temp != forwardNoAction) { if (debug) { logIt("form.getGroupSet()=" + form.getGroupSet()); } return temp; } if (!form.getAuthorisedUser()) { return forwardNoAccess; } return forwardNoAction; } // Not public admin. ConfigBase conf = form.retrieveConfig(); String refreshAction = conf.getRefreshAction(); if (refreshAction == null) { refreshAction = form.getActionPath(); } if (refreshAction != null) { setRefreshInterval(request, response, conf.getRefreshInterval(), refreshAction, form); } if (debug) { log.debug("curTimeView=" + form.getCurTimeView()); } return forwardNoAction; } |
|
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); | GridLayout layoutThis = new GridLayout(); | public StereotypeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); } |
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); | this.setLineStyle(Graphics.LINE_SOLID); | public StereotypeFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; this.setLayoutManager(layoutThis); this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); } |
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); | WrapLabel stereotypeFigure_StereotypeLabel0 = new WrapLabel(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; | GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = GridLayoutData.FILL; | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); | RectangleFigure stereotypeFigure_NameContainer0 = new RectangleFigure(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); | stereotypeFigure_NameContainer0.setLineStyle(Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; | GridLayoutData constraintStereotypeFigure_NameContainer0 = new GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = GridLayoutData.FILL; | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); | CenterLayout layoutStereotypeFigure_NameContainer0 = new CenterLayout(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); | WrapLabel stereotypeFigure_NameLabel1 = new WrapLabel(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); | RectangleFigure stereotypeFigure_AttributesCompartment0 = new RectangleFigure(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); | stereotypeFigure_AttributesCompartment0.setLineStyle(Graphics.LINE_SOLID); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; | GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = GridLayoutData.FILL; | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); | RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new RectangleFigure(); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); | stereotypeFigure_ConstraintsCompartment0.setLineStyle(Graphics.LINE_SOLID); | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; | GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = GridLayoutData.FILL; | private void createContents() { org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_StereotypeLabel0.setText("\u00ABstereotype\u00BB"); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_StereotypeLabel0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_StereotypeLabel0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_StereotypeLabel0.horizontalIndent = 0; constraintStereotypeFigure_StereotypeLabel0.horizontalSpan = 2; constraintStereotypeFigure_StereotypeLabel0.verticalSpan = 1; constraintStereotypeFigure_StereotypeLabel0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_StereotypeLabel0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_StereotypeLabel0, constraintStereotypeFigure_StereotypeLabel0); setFigureStereotypeFigure_StereotypeLabel(stereotypeFigure_StereotypeLabel0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_NameContainer0.setFill(true); stereotypeFigure_NameContainer0.setFillXOR(false); stereotypeFigure_NameContainer0.setOutline(false); stereotypeFigure_NameContainer0.setOutlineXOR(false); stereotypeFigure_NameContainer0.setLineWidth(1); stereotypeFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); stereotypeFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_NameContainer0.horizontalIndent = 0; constraintStereotypeFigure_NameContainer0.horizontalSpan = 2; constraintStereotypeFigure_NameContainer0.verticalSpan = 1; constraintStereotypeFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_NameContainer0, constraintStereotypeFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutStereotypeFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); stereotypeFigure_NameContainer0.setLayoutManager(layoutStereotypeFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel stereotypeFigure_NameLabel1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); stereotypeFigure_NameLabel1.setText(""); stereotypeFigure_NameContainer0.add(stereotypeFigure_NameLabel1); setFigureStereotypeFigure_NameLabel(stereotypeFigure_NameLabel1); org.eclipse.draw2d.RectangleFigure stereotypeFigure_AttributesCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_AttributesCompartment0.setFill(true); stereotypeFigure_AttributesCompartment0.setFillXOR(false); stereotypeFigure_AttributesCompartment0.setOutline(false); stereotypeFigure_AttributesCompartment0.setOutlineXOR(false); stereotypeFigure_AttributesCompartment0.setLineWidth(1); stereotypeFigure_AttributesCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_AttributesCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_AttributesCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_AttributesCompartment0.horizontalIndent = 0; constraintStereotypeFigure_AttributesCompartment0.horizontalSpan = 2; constraintStereotypeFigure_AttributesCompartment0.verticalSpan = 1; constraintStereotypeFigure_AttributesCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_AttributesCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_AttributesCompartment0, constraintStereotypeFigure_AttributesCompartment0); setFigureStereotypeFigure_AttributesCompartment(stereotypeFigure_AttributesCompartment0); org.eclipse.draw2d.RectangleFigure stereotypeFigure_ConstraintsCompartment0 = new org.eclipse.draw2d.RectangleFigure(); stereotypeFigure_ConstraintsCompartment0.setFill(true); stereotypeFigure_ConstraintsCompartment0.setFillXOR(false); stereotypeFigure_ConstraintsCompartment0.setOutline(false); stereotypeFigure_ConstraintsCompartment0.setOutlineXOR(false); stereotypeFigure_ConstraintsCompartment0.setLineWidth(1); stereotypeFigure_ConstraintsCompartment0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintStereotypeFigure_ConstraintsCompartment0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintStereotypeFigure_ConstraintsCompartment0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintStereotypeFigure_ConstraintsCompartment0.horizontalIndent = 0; constraintStereotypeFigure_ConstraintsCompartment0.horizontalSpan = 2; constraintStereotypeFigure_ConstraintsCompartment0.verticalSpan = 1; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessHorizontalSpace = true; constraintStereotypeFigure_ConstraintsCompartment0.grabExcessVerticalSpace = false; this.add(stereotypeFigure_ConstraintsCompartment0, constraintStereotypeFigure_ConstraintsCompartment0); setFigureStereotypeFigure_ConstraintsCompartment(stereotypeFigure_ConstraintsCompartment0); } |
public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_AttributesCompartment() { | public RectangleFigure getFigureStereotypeFigure_AttributesCompartment() { | public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_AttributesCompartment() { return fStereotypeFigure_AttributesCompartment; } |
public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_ConstraintsCompartment() { | public RectangleFigure getFigureStereotypeFigure_ConstraintsCompartment() { | public org.eclipse.draw2d.RectangleFigure getFigureStereotypeFigure_ConstraintsCompartment() { return fStereotypeFigure_ConstraintsCompartment; } |
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_NameLabel() { | public WrapLabel getFigureStereotypeFigure_NameLabel() { | public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_NameLabel() { return fStereotypeFigure_NameLabel; } |
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_StereotypeLabel() { | public WrapLabel getFigureStereotypeFigure_StereotypeLabel() { | public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureStereotypeFigure_StereotypeLabel() { return fStereotypeFigure_StereotypeLabel; } |
private void setFigureStereotypeFigure_AttributesCompartment(org.eclipse.draw2d.RectangleFigure fig) { | private void setFigureStereotypeFigure_AttributesCompartment(RectangleFigure fig) { | private void setFigureStereotypeFigure_AttributesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fStereotypeFigure_AttributesCompartment = fig; } |
private void setFigureStereotypeFigure_ConstraintsCompartment(org.eclipse.draw2d.RectangleFigure fig) { | private void setFigureStereotypeFigure_ConstraintsCompartment(RectangleFigure fig) { | private void setFigureStereotypeFigure_ConstraintsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fStereotypeFigure_ConstraintsCompartment = fig; } |
private void setFigureStereotypeFigure_NameLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { | private void setFigureStereotypeFigure_NameLabel(WrapLabel fig) { | private void setFigureStereotypeFigure_NameLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fStereotypeFigure_NameLabel = fig; } |
private void setFigureStereotypeFigure_StereotypeLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { | private void setFigureStereotypeFigure_StereotypeLabel(WrapLabel fig) { | private void setFigureStereotypeFigure_StereotypeLabel(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fStereotypeFigure_StereotypeLabel = fig; } |
awp9Key.put("uid", "awp9"); | awp9Key.put("username", "awp9"); | public void testGetUserAttributesMap() { Map awp9Key = new HashMap(); awp9Key.put("uid", "awp9"); assertEquals(this.backingMap.get("awp9"), this.testInstance.getUserAttributes(awp9Key)); Map unknownUserKey = new HashMap(); unknownUserKey.put("uid", "unknownUser"); assertNull(this.testInstance.getUserAttributes(unknownUserKey)); } |
txt.setForeground(null); | txt.setForeground(Color.WHITE); | private static JTextArea makeTextArea(Controller c, String source, GridBagLayout gbl, GridBagConstraints con, int rows, int cols) { JTextArea txt = new JTextArea(); txt.setForeground(null); txt.setBackground(new Color(55, 55, 55)); txt.setCaretColor(Color.WHITE); txt.setAutoscrolls(true); txt.setColumns(cols); txt.setRows(rows); gbl.setConstraints(txt, con); if (source.startsWith("#")) { c.bind(txt, source.substring(1)); } else { txt.setText(source); } txt.setLineWrap(true); txt.setAutoscrolls(true); return txt; } |
for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i]); | for (int i=0; i<fTrans.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i]); | public static final float[] convolve(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i]); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); } |
for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i].conjg()); | for (int i=0; i<fTrans.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i].conjg()); | public static final float[] correlate(float[] fdata, float[] gdata) { Cmplx[] fTrans = fft(fdata); Cmplx[] gTrans = fft(gdata); for (int i=0; i<fdata.length; i++) { fTrans[i] = Cmplx.mul(fTrans[i], gTrans[i].conjg()); } // end of for (int i=0; i<gdata.length; i++) return fftInverse(fTrans, fdata.length); } |
svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, null, debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); | String runAsUser = user; | protected 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()); } } 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); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)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; } |
if (t instanceof CalFacadeException) { throw (CalFacadeException)t; } | protected 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()); } } 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); svci = new CalSvc(); CalSvcIPars pars = new CalSvcIPars(user, access, user, publicAdmin, false, // caldav null, // synchId debug); svci.init(pars); BwWebUtil.setCalSvcI(request, svci); form.setCalSvcI(svci); try { cb.in(true); } catch (Throwable t) { if (t instanceof CalFacadeException) { throw (CalFacadeException)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; } |
|
System.out.println("creating view for "+anIdea); | public IdeaView(Idea anIdea) { System.out.println("creating view for "+anIdea); this.idea = anIdea; this.setLength(15 * anIdea.getText().length()); int subNum = anIdea.getSubIdeas().size(); int i = 0; for (Idea subIdea: anIdea.getSubIdeas()) { IdeaView subView = new IdeaView(subIdea); subView.setAngle(i * (Math.PI / subNum) - (subNum - 1) * Math.PI / subNum); add(subView); i++; } anIdea.addIdeaListener(this); } |
|
if (protocol == null) { | if (protocol == null || protocols == null) { | public boolean handlesProtocol(String protocol) { if (protocol == null) { return false; } for (int i = 0; i < protocols.length; i++) { if (protocol.equalsIgnoreCase(protocols[i])) { return true; } } return false; } |
jmethods[i] = getMethods(fromClass, methodName, isStatic); | jmethods[i++] = getMethods(fromClass, methodName, isStatic); | public static JavaMethod[] getAllMethods(Class fromClass, boolean isStatic) { // assemble a set of all unique selectors of all (non-)static methods of the class HashSet uniqueNames = new HashSet(); Method[] methods = fromClass.getMethods(); for (int i = 0; i < methods.length; i++) { Method m = methods[i]; if ((Modifier.isStatic(m.getModifiers())) == isStatic) { uniqueNames.add(m.getName()); } } // create a JavaMethod[] array large enough to contain all 'unique methods' JavaMethod[] jmethods = new JavaMethod[uniqueNames.size()]; // loop over all entries and group the methods into a single wrapper int i = 0; for (Iterator iter = uniqueNames.iterator(); iter.hasNext();) { String methodName = (String) iter.next(); jmethods[i] = getMethods(fromClass, methodName, isStatic); } return jmethods; } |
final Map mappedAttributesBuilder = new HashMap(); | final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); | static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); } |
for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); | if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); if (mappedAttribute == null) { mappedAttributesBuilder.put(sourceAttrName, null); } else if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); | static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); } |
if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); | for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } | static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); } |
if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } | mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); | static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); } |
return Collections.unmodifiableMap(mappedAttributesBuilder); | else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); | static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final Iterator sourceAttrNameItr = mapping.keySet().iterator(); sourceAttrNameItr.hasNext(); ) { final Object key = sourceAttrNameItr.next(); //The key must exist if (key == null) { throw new IllegalArgumentException("The map from attribute names to attributes must not have any null keys."); } // the key must be of type String if (! (key instanceof String)) { throw new IllegalArgumentException("The map from attribute names to attributes must only have String keys. Encountered a key of class [" + key.getClass().getName() + "]"); } final String sourceAttrName = (String) key; final Object mappedAttribute = mapping.get(sourceAttrName); //mapping cannot be null if (mappedAttribute == null) throw new IllegalArgumentException("Values in the map cannot be null. key='" + sourceAttrName + "'"); //Create a single item set for the string mapping if (mappedAttribute instanceof String) { final Set mappedSet = Collections.singleton(mappedAttribute); mappedAttributesBuilder.put(sourceAttrName, mappedSet); } //Create a defenisve copy of the mapped set & verify its contents are strings else if (mappedAttribute instanceof Set) { final Set sourceSet = (Set)mappedAttribute; final Set mappedSet = new HashSet(); for (final Iterator sourceSetItr = sourceSet.iterator(); sourceSetItr.hasNext(); ) { final Object mappedAttributeName = sourceSetItr.next(); if (mappedAttributeName instanceof String) { mappedSet.add(mappedAttributeName); } else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "', sub value type='" + mappedAttributeName.getClass().getName() + "'"); } } mappedAttributesBuilder.put(sourceAttrName, Collections.unmodifiableSet(mappedSet)); } //Not a valid type for the mapping else { throw new IllegalArgumentException("Invalid mapped type. key='" + sourceAttrName + "', value type='" + mappedAttribute.getClass().getName() + "'"); } } return Collections.unmodifiableMap(mappedAttributesBuilder); } |
form.assignAddingLocation(false); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } String reqpar = request.getParameter("delete"); if (reqpar != null) { return "delete"; } CalSvcI svci = form.fetchSvci(); boolean add = form.getAddingLocation(); /** We are just updating from the current form values. */ BwLocation loc = form.getLocation(); if (!BwWebUtil.validateLocation(loc, form.getErr())) { return "retry"; } /* If the location exists use it otherwise add one. */ if (!add && (loc.getId() <= CalFacadeDefs.maxReservedLocationId)) { // claim it doesn't exist form.getErr().emit("org.bedework.client.error.nosuchlocation", loc.getId()); return "noSuchLocation"; } boolean added = false; if (add) { added = svci.addLocation(loc); } else { svci.replaceLocation(loc); } updateAuthPrefs(form, null, null, loc, null); if (add) { if (added) { form.getMsg().emit("org.bedework.client.message.locations.added", 1); } else { form.getErr().emit("org.bedework.client.error.location.alreadyexists"); } } else { form.getMsg().emit("org.bedework.client.message.location.updated"); } return "continue"; } |
|
assertNull(nullBacking.getPossibleUserAttributeNames()); | assertEquals(Collections.EMPTY_SET, nullBacking.getPossibleUserAttributeNames()); | public void testGetPossibleUserAttributeNames() { HashSet expectedAttributeNames = new HashSet(); expectedAttributeNames.add("shirtColor"); expectedAttributeNames.add("phone"); Set possibleAttributeNames = this.testInstance.getPossibleUserAttributeNames(); assertEquals(expectedAttributeNames, possibleAttributeNames); StubPersonAttributeDao nullBacking = new StubPersonAttributeDao(); assertNull(nullBacking.getPossibleUserAttributeNames()); } |
public Map getUserAttributes(final String uid) { if (uid == null) { throw new IllegalArgumentException("Illegal to invoke getUserAttributes(String) with a null argument."); | public Map getUserAttributes(final Map seed) { if (seed == null) { throw new IllegalArgumentException("Illegal to invoke getUserAttributes(Map) with a null argument."); | public Map getUserAttributes(final String uid) { if (uid == null) { throw new IllegalArgumentException("Illegal to invoke getUserAttributes(String) with a null argument."); } return this.backingMap; } |
sleep((int)(.1*1000)); | sleep((int)(.01*1000)); | public void run() { setProgressOwner(this); setProgressMax(this, 100); NetworkAccess[] nets = getSelectedNetworks(); try { clearStations(); setProgressValue(this, 10); for (int i=0; i<nets.length; i++) { logger.debug("Before get stations"); Station[] newStations = nets[i].retrieve_stations(); logger.debug("got "+newStations.length+" stations"); setProgressValue(this, 60); synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStations(); } } for (int j=0; j<newStations.length; j++) { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { addStation(newStations[j]); try { sleep((int)(.1*1000)); } catch (InterruptedException e) { } // end of try-catch } else { // no longer the active station loader return; } // end of else } setProgressValue(this, 100-newStations.length+j); } setProgressValue(this, 100); logger.debug("finished adding stations"); try { sleep((int)(.1*1000)); } catch (InterruptedException e) { } // end of try-catch } // end of for ((int i=0; i<nets.length; i++) logger.debug("There are "+stationNames.getSize()+" items in the station list model"); // stationList.validate(); //stationList.repaint(); } catch (Exception e) { edu.sc.seis.fissuresUtil.exceptionHandlerGUI.ExceptionHandlerGUI.handleException(e); } // end of try-catch } } |
System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); | public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ view.removeDisplaykey(((AbstractButton)ae.getItem()).getText()); } // view.setDisplayKey(ae.getActionCommand()); repaint(); System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); } |
|
methods.put("PROPFIND", new CaldavPropFindMethod()); | public void addMethods(WebdavNsIntf nsIntf) throws WebdavException{ HashMap methods = nsIntf.getMethods(); super.addMethods(nsIntf); // Replace methods methods.put("MKCALENDAR", new MkcalendarMethod()); methods.put("OPTIONS", new CalDavOptionsMethod()); methods.put("REPORT", new ReportMethod()); } |
|
System.out.println("yLoc: " + yLoc); System.out.println("rowWidth: " + rowWidth); | void drawPlottableNew(Graphics g) { int mean = getMean(); // get new graphics to avoid messing up original Graphics2D g2 = (Graphics2D)g.create(); g2.setClip(LABEL_X_SHIFT, 0, rowWidth, Integer.MAX_VALUE); AffineTransform originalTransform = AffineTransform.getTranslateInstance(LABEL_X_SHIFT, titleHeight); for(int row = 0; row < rows && currentImageGraphics == g; row++) { //use title and label transform to draw red center lines g2.setTransform(originalTransform); g2.setPaint(axisColor); int yLoc = rowOffset * row; System.out.println("yLoc: " + yLoc); System.out.println("rowWidth: " + rowWidth); g2.drawLine(0, yLoc, rowWidth, yLoc); //Create new transform to draw plottable scaled correctly g2.setTransform(new AffineTransform()); //shift the shape left to get to the correct point for this row //and down to get to the correct draw height g2.translate(-1 * rowWidth * row + LABEL_X_SHIFT, yLoc + titleHeight); //flip the y axis to make going lower positive g2.scale(1, -1); //scale for the amplitude slider g2.scale(1, ampScale); g2.scale(1, ampScalePercent); //center the mean g2.translate(0, -1 * mean); if(row % 2 == 0) { g2.setPaint(evenColor); } else { g2.setPaint(oddColor); } if(plottableShape != null) { g2.draw(plottableShape); } // end of if (plottableShape != null) } repaint(); } |
|
short size = 4; | short size = 40; | protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 4; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp } |
shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; | shortTestData[i] = 1; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; | protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); short size = 4; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = i; intTestData[i] = i; floatTestData[i] = i; doubleTestData[i] = i; } // end of for (int i=0; i<intTestData.length; i++) rtrend = createInstance(); // JUnitDoclet end method testcase.setUp } |
envPrefix, | public CalSvcI getSvci() throws WebdavIntfException { boolean publicMode = (account == null); if (svci != null) { if (!svci.isOpen()) { try { svci.open(); svci.beginTransaction(); } catch (Throwable t) { throw new WebdavIntfException(t); } } return svci; } try { svci = new CalSvc(); /* account is what we authenticated with. * user, if non-null, is the user calendar we want to access. */ CalSvcIPars pars = new CalSvcIPars(account, UserAuth.noPrivileges, account, publicMode, true, // caldav null, // synchId debug); svci.init(pars); svci.open(); svci.beginTransaction(); trans = new IcalTranslator(svci.getIcalCallback(), debug); } catch (Throwable t) { throw new WebdavIntfException(t); } return svci; } |
|
namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema"; try { | public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema"; try { publicCalendarRoot = getSvci().getSyspars().getPublicCalendarRoot(); userCalendarRoot = getSvci().getSyspars().getUserCalendarRoot(); } catch (Throwable t) { throw new WebdavIntfException(t); } } |
|
boolean superUser, | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; } |
|
if (authenticatedUser == null) { this.superUser = false; } | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; } |
|
this.superUser = superUser; | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = debug; boolean userCreated = false; if (authenticatedUser == null) { this.superUser = false; // be safe } try { objTimestamp = new Timestamp(System.currentTimeMillis()); this.superUser = superUser; this.synchId = synchId; if ((synchId != null) && publicAdmin) { throw new CalFacadeException("synch only valid for non admin"); } } catch (Throwable t) { throw new CalFacadeException(t); } if (user == null) { user = authenticatedUser; } return userCreated; } |
|
selectionWindow.addWindowListener(new WindowAdapter() { | particleWindow.addWindowListener(new WindowAdapter() { | public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } }); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(particleWindow.getSize().width*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(particleWindow.getSize().width * particleDisplays, tk.getScreenSize().height - particleWindow.getSize().width); }else{ particleWindow.setLocation(tk.getScreenSize().width - particleWindow.getSize().width, tk.getScreenSize().height - particleWindow.getSize().height); } particleDisplays++; particleWindow.setVisible(true); } } |
public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); | public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { Collection oldAces = getAces(ent); | public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } } |
BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); | ent.setAccess(new String(acl.encode())); | public void changeAccess(Object o, Collection aces) throws CalFacadeException { Collection oldAces = getAces(o); try { Acl acl = new Acl(debug); acl.setAces(oldAces); Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); acl.removeAccess(ace); acl.addAce(ace); } BwShareableDbentity sdbe = (BwShareableDbentity)o; sdbe.setAccess(new String(acl.encode())); } catch (Throwable t) { throw new CalFacadeException(t); } } |
public Collection getAces(Object o) throws CalFacadeException { if (!(o instanceof BwShareableDbentity)) { throw new CalFacadeException(CalFacadeException.illegalObjectClass); } BwShareableDbentity sdbe = (BwShareableDbentity)o; return getAces(sdbe, privWriteAcl); | public Collection getAces(BwShareableDbentity ent) throws CalFacadeException { return getAces(ent, privWriteAcl); | public Collection getAces(Object o) throws CalFacadeException { if (!(o instanceof BwShareableDbentity)) { throw new CalFacadeException(CalFacadeException.illegalObjectClass); } BwShareableDbentity sdbe = (BwShareableDbentity)o; return getAces(sdbe, privWriteAcl); } |
boolean superUser, | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException; |
|
SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("selected-value tag must be nested inside a select tag"); select.addValue(value); return EVAL_PAGE; | try { SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("selected-value tag must be nested inside a select tag"); select.addValue(value); return EVAL_PAGE; } finally { release(); } | public int doEndTag() throws JspException { SelectTag select = (SelectTag) findAncestorWithClass(this, SelectTag.class); if (select == null) throw new JspException("selected-value tag must be nested inside a select tag"); select.addValue(value); return EVAL_PAGE; } |
(float)(data[data.length-i] * (f0 - f1 * Math.cos(omega*i))); | (float)(data[data.length-i-1] * (f0 - f1 * Math.cos(omega*i))); | public void applyInPlace(float[] data) { int w = Math.round(data.length*width); double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i-1] = (float)(data[data.length-i] * (f0 - f1 * Math.cos(omega*i))); } } |
form.getErr().emit("org.bedework.error.exc", t.getMessage()); | form.getErr().emit("org.bedework.client.error.exc", t.getMessage()); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; ActionForm form = (ActionForm)frm; setup(request, form, messages); try { forward = doAction(request, response, form); } catch (Throwable t) { form.getErr().emit("org.bedework.error.exc", t.getMessage()); form.getErr().emit(t); } if (form.getPropertyCollections().size() == 0) { // Load the default properties Properties pr = Util.getPropertiesFromResource(defaultProperties); resetProperties(pr, form); } return forward; } |
if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); | if (querySeed.containsKey(defaultAttrName)) { cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); | protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } } |
cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); | protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } } |
|
cacheKey.put(attr, querySeed.get(attr)); | if (querySeed.containsKey(attr)) { cacheKey.put(attr, querySeed.get(attr)); } | protected Serializable getCacheKey(Map querySeed) { final HashMap cacheKey = new HashMap(); if (this.cacheKeyAttributes == null || this.cacheKeyAttributes.size() == 0) { final String defaultAttrName = this.getDefaultAttributeName(); if (defaultAttrName == null) { throw new IllegalStateException("Both 'defaultAttrName' and 'cacheKeyAttributes' properties may not be null."); } cacheKey.put(defaultAttrName, querySeed.get(defaultAttrName)); if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using default attribute='" + defaultAttrName + "'"); } } else { for (final Iterator attrItr = this.cacheKeyAttributes.iterator(); attrItr.hasNext();) { final String attr = (String)attrItr.next(); cacheKey.put(attr, querySeed.get(attr)); } if (log.isDebugEnabled()) { log.debug("Created cacheKey='" + cacheKey + "' from query='" + querySeed + "' using attributes='" + this.cacheKeyAttributes + "'"); } } if (cacheKey.size() > 0) { return cacheKey; } else { return null; } } |
System.out.println(fragment); | public Element retrieve() throws java.net.MalformedURLException, java.io.IOException, org.xml.sax.SAXException, javax.xml.transform.TransformerException { String xlink = element.getAttribute("xlink:href"); int sharpIndex = xlink.indexOf("#"); String fragment = xlink.substring(sharpIndex+1, xlink.length()); int index; System.out.println(fragment); // check for escaped quotes, ASCII 22 (hex) is quote while ((index = fragment.indexOf("%22")) != -1) { fragment = fragment.substring(0,index)+'"'+ fragment.substring(index+3); System.out.println(fragment); } // end of while (fragment.indexOf("%22") != -1) if (xlink.startsWith("http") || xlink.startsWith("ftp")) { URL url = new URL(base, xlink); InputStream conn = url.openStream(); BufferedInputStream inStream = new BufferedInputStream(conn); Document doc = docBuilder.parse(inStream); return retrieve(doc, fragment); } // end of if (link.startsWith("http") || link.startsWith("ftp")) // assume it is a relative path, within current document return retrieve(element, fragment); } |
|
checkAccess(ent, privWriteAcl, false); | public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException { checkOpen(); access.changeAccess(ent, aces); sess.saveOrUpdate(ent); } |
|
DefaultViewNode windowViewNode2 = new WindowViewNode("window",viewManager.getWorkspaceRoot()); windowViewNode2.setRendered(false); | public void start(IWBundle starterBundle) { //Install the idegaweb views: ViewManager viewManager = ViewManager.getInstance(starterBundle.getApplication()); DefaultViewNode loginViewNode = new WindowViewNode("login",viewManager.getApplicationRoot()); //DefaultViewNode pagesViewNode = new BuilderRootViewNode("pages",viewManager.getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",viewManager.getApplicationRoot()); } |
|
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.black); this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.black); | this.setLineStyle(Graphics.LINE_SOLID); this.setForegroundColor(ColorConstants.black); this.setBackgroundColor(ColorConstants.black); | public ExtensionPolyline() { this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); this.setForegroundColor(org.eclipse.draw2d.ColorConstants.black); this.setBackgroundColor(org.eclipse.draw2d.ColorConstants.black); setTargetDecoration(createTargetDecoration()); } |
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); | private RotatableDecoration createTargetDecoration() { PolygonDecoration df = new PolygonDecoration(); | private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; } |
df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); | df.setLineStyle(Graphics.LINE_SOLID); PointList pl = new PointList(); | private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1)); pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0)); pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1)); df.setTemplate(pl); df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3)); return df; } |
updateAuthPrefs(form, null, null, null, cal); | if (cal.getCalendarCollection()) { updateAuthPrefs(form, null, null, null, cal); } | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } String reqpar = request.getParameter("delete"); if (reqpar != null) { return "delete"; } CalSvcI svci = form.fetchSvci(); boolean add = form.getAddingCalendar(); /** We are just updating from the current form values. */ if (!validateCalendar(request, form, add)) { return "retry"; } BwCalendar cal = form.getCalendar(); if (add) { BwCalendar parent = svci.getCalendar(form.getParentCalendarId()); if (parent == null) { return "error"; } svci.addCalendar(cal, parent); } else { svci.updateCalendar(cal); } updateAuthPrefs(form, null, null, null, cal); if (add) { form.getMsg().emit("org.bedework.client.message.calendar.added"); } else { form.getMsg().emit("org.bedework.client.message.calendar.updated"); } return "continue"; } |
ace.encode(this); | if (!ace.getInherited()) { ace.encode(this); } | public char[] encode() throws AccessException { startEncoding(); if (aces != null) { Iterator it = aces.iterator(); while (it.hasNext()) { Ace ace = (Ace)it.next(); ace.encode(this); } } return getEncoding(); } |
} else { | } else if (match != null) { | public void dump(Logger log, String indent) { StringBuffer sb = new StringBuffer(indent); sb.append("<prop-filter name=\""); sb.append(name); sb.append("\">\n"); log.debug(sb.toString()); if (isNotDefined) { log.debug(indent + " " + "<is-not-defined/>\n"); } else if (timeRange != null) { timeRange.dump(log, indent + " "); } else { match.dump(log, indent + " "); } if (paramFilters != null) { Iterator it = paramFilters.iterator(); while (it.hasNext()) { ParamFilter pf = (ParamFilter)it.next(); pf.dump(log, indent + " "); } } log.debug(indent + "<prop-filter/>"); } |
}catch(InterruptedException e) { | }catch(InterruptedException interrupted) { | public void run() { int maxFail = 5; setFinished(false); consecutiveFailures = 0; quitThread = false; while (!quitThread) { try { checkNet(); } catch (RuntimeException e) { if(consecutiveFailures > maxFail) { throw e; } try { setStatus("Waiting 2 seconds before making another attempt"); consecutiveFailures++; Thread.sleep(2000 * consecutiveFailures); if(consecutiveFailures > maxFail) quitThread = true; }catch(InterruptedException e) { } } } logger.debug("network checker thread quitting"); setFinished(); if(consecutiveFailures > maxFail) setStatus("Failed"); } |
renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); | renderPrevLink(out, prevCal.get(Calendar.YEAR), prevCal.get(Calendar.MONTH) + 1); | public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } } |
renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); | renderNextLink(out, nextCal.get(Calendar.YEAR), nextCal.get(Calendar.MONTH) + 1); | public int doEndTag() throws JspException { try { JspWriter out = pageContext.getOut(); // get locale-specific stuff locale = getDefaultLocale(); if (resourceBundle == null) resourceBundle = getDefaultResourceBundle(); if (timeZone == null) timeZone = getDefaultTimeZone(); if (dateFormatSymbols == null) dateFormatSymbols = getDateFormatSymbols(); Date currentTime = new Date(); if (showDate == null) showDate = new Date(currentTime.getTime()); Calendar current = Calendar.getInstance(timeZone, locale); current.setTime(showDate); Calendar prevCal = Calendar.getInstance(timeZone, locale); prevCal.setTime(current.getTime()); prevCal.add(Calendar.MONTH, -1); Calendar nextCal = Calendar.getInstance(timeZone, locale); nextCal.setTime(current.getTime()); nextCal.add(Calendar.MONTH, 1); renderPrevLink(out, prevCal.get(Calendar.MONTH) + 1, prevCal.get(Calendar.YEAR)); renderCaption(out, current); renderNextLink(out, nextCal.get(Calendar.MONTH) + 1, nextCal.get(Calendar.YEAR)); return EVAL_PAGE; } catch (IOException e) { throw new JspException(e); } finally { cleanup(); } } |
return addDisplay(dss, DisplayUtils.getSeismogramNames(dss)); | return addDisplay(dss, globalRegistrar, globalRegistrar); | public BasicSeismogramDisplay addDisplay(DataSetSeismogram[] dss){ return addDisplay(dss, DisplayUtils.getSeismogramNames(dss)); } |
AGSymbol.alloc("at"), | AGSymbol.jAlloc("at"), | public void testJavaBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.base_setArguments( new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); | ATObject accessor = closures.meta_select(closures, AGSymbol.jAlloc("at")); | public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.alloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
closures.meta_select(closures, AGSymbol.alloc("length"))})); | closures.meta_select(closures, AGSymbol.jAlloc("length"))})); | public void testSimulatedBaseFieldAccess() { try { ATObject accessor = closures.meta_select(closures, AGSymbol.alloc("at")); ATObject element = accessor.base_asClosure().base_apply( new NATTable(new ATObject[] { closures.meta_select(closures, AGSymbol.alloc("length"))})); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
AGSymbol.alloc("at"), | AGSymbol.jAlloc("at"), | public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.alloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
AGSymbol.alloc("arguments"), | AGSymbol.jAlloc("arguments"), | public void testSimulatedBaseFieldAssignment() { try { ATMessage message = new NATMethodInvocation( AGSymbol.alloc("at"), NATTable.EMPTY); message.meta_assignVariable( AGSymbol.alloc("arguments"), new NATTable(new ATObject[] { closures.base_getLength() })); ATObject element = message.base_sendTo(closures); element.base_asClosure().base_apply(NATTable.EMPTY); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
True, AGSymbol.alloc("ifTrue:"), | True, AGSymbol.jAlloc("ifTrue:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
True, AGSymbol.alloc("ifFalse:"), | True, AGSymbol.jAlloc("ifFalse:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
True, AGSymbol.alloc("ifTrue:ifFalse:"), | True, AGSymbol.jAlloc("ifTrue:ifFalse:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
False, AGSymbol.alloc("ifTrue:"), | False, AGSymbol.jAlloc("ifTrue:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
False, AGSymbol.alloc("ifFalse:"), | False, AGSymbol.jAlloc("ifFalse:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
False, AGSymbol.alloc("ifTrue:ifFalse:"), | False, AGSymbol.jAlloc("ifTrue:ifFalse:"), | public void testSimulatedBaseInvocation() { try { True.meta_invoke( True, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { success })); True.meta_invoke( True, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { fail })); True.meta_invoke( True, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { success, fail })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:"), new NATTable(new ATObject[] { fail })); False.meta_invoke( False, AGSymbol.alloc("ifFalse:"), new NATTable(new ATObject[] { success })); False.meta_invoke( False, AGSymbol.alloc("ifTrue:ifFalse:"), new NATTable(new ATObject[] { fail, success })); } catch (InterpreterException e) { e.printStackTrace(); fail("exception: "+e); } } |
AGSymbol.alloc("addField"), | AGSymbol.jAlloc("addField"), | public ATNil meta_addField(ATField field) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("addField"), new NATTable(new ATObject[] { field }) ); return NATNil._INSTANCE_; } |
AGSymbol.alloc("addMethod"), | AGSymbol.jAlloc("addMethod"), | public ATNil meta_addMethod(ATMethod method) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("addMethod"), new NATTable(new ATObject[] { method }) ); return NATNil._INSTANCE_; } |
AGSymbol.alloc("assignField"), | AGSymbol.jAlloc("assignField"), | public ATNil meta_assignField(ATObject receiver, ATSymbol selector, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("assignField"), new NATTable(new ATObject[] { receiver, selector, value }) ); return NATNil._INSTANCE_; } |
AGSymbol.alloc("assignVariable"), | AGSymbol.jAlloc("assignVariable"), | public ATNil meta_assignVariable(ATSymbol name, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("assignVariable"), new NATTable(new ATObject[] { name, value }) ); return NATNil._INSTANCE_; } |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.