rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
p.getChildren().add(headlineInput); | UIComponent headlineText = WFUtil.group(localizer.getTextVB("headline"), WFUtil.getText(":")); HtmlOutputLabel headlineLabel = new HtmlOutputLabel(); headlineLabel.getChildren().add(headlineText); headlineLabel.setFor(headlineInput.getClientId(context)); WFFormItem headlineItem = new WFFormItem(); headlineItem.add(hea... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
p.getChildren().add(WFUtil.group(localizer.getTextVB("author"), WFUtil.getText(":"))); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
authorInput.setSize(70); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
p.getChildren().add(authorInput); | UIComponent authorText = WFUtil.group(localizer.getTextVB("author"), WFUtil.getText(":")); HtmlOutputLabel authorLabel = new HtmlOutputLabel(); authorLabel.getChildren().add(authorText); authorLabel.setFor(authorInput.getClientId(context)); WFFormItem authorItem = new WFFormItem(); authorItem.add(authorLabel); authorI... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
p.getChildren().add(WFUtil.group(localizer.getTextVB("body"), WFUtil.getText(":"))); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
p.getChildren().add(WFUtil.group(bodyArea, WFUtil.getBreak())); p.getChildren().add(WFUtil.group(localizer.getTextVB("teaser"), WFUtil.getText(":"))); | UIComponent bodyText = WFUtil.group(localizer.getTextVB("body"), WFUtil.getText(":")); HtmlOutputLabel bodyLabel = new HtmlOutputLabel(); bodyLabel.getChildren().add(bodyText); bodyLabel.setFor(bodyArea.getClientId(context)); WFFormItem bodyItem = new WFFormItem(); bodyItem.add(bodyLabel); bodyItem.add(bodyArea); main... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
p.getChildren().add(teaserArea); p.getChildren().add(WFUtil.group(localizer.getTextVB("source"), WFUtil.getText(":"))); HtmlInputText sourceArea = WFUtil.getInputText(SOURCE_ID, ref + "source"); sourceArea.setSize(70); p.getChildren().add(sourceArea); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil... | UIComponent teaserText = WFUtil.group(localizer.getTextVB("teaser"), WFUtil.getText(":")); HtmlOutputLabel teaserLabel = new HtmlOutputLabel(); teaserLabel.getChildren().add(teaserText); teaserLabel.setFor(teaserArea.getClientId(context)); WFFormItem teaserItem = new WFFormItem(); teaserItem.add(teaserLabel); teaserIt... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
p.getChildren().add(commentArea); | UIComponent commentText = WFUtil.group(localizer.getTextVB("comment"), WFUtil.getText(":")); HtmlOutputLabel commentLabel = new HtmlOutputLabel(); commentLabel.getChildren().add(commentText); commentLabel.setFor(commentArea.getClientId(context)); WFFormItem commentItem = new WFFormItem(); commentItem.add(commentLabel)... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
p.getChildren().add(WFUtil.getBreak()); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
addCategoryEditor(p); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); | UIComponent categoriesContainer = getCategoryEditor(); UIComponent categoriesText = WFUtil.group(localizer.getTextVB("categories"), WFUtil.getText(":")); HtmlOutputLabel categoriesLabel = new HtmlOutputLabel(); categoriesLabel.getChildren().add(categoriesText); categoriesLabel.setFor(categoriesContainer.getClientId(con... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
HtmlCommandButton saveButton = localizer.getButtonVB(SAVE_ID, "save", this); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | |
p.getChildren().add(saveButton); mainContainer.add(p); | HtmlCommandButton saveButton = localizer.getButtonVB(SAVE_ID, "save", this); mainContainer.getChildren().add(saveButton); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... |
add(getEditContainer()); | if(isInCreateMode()||isInEditMode()){ add(getEditContainer()); } else if (isInDeleteMode()){ add(getDeleteContainer()); } | protected void initializeComponent(FacesContext context) { setId(EDIT_ARTICLE_BLOCK_ID); if(clearOnInit){ ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(EDIT_ARTICLES_BEAN_ID, "setArticleLinkListener", this, ActionListener.class); add(getEditContainer());... |
} | } else if (id.equals(DELETE_ID)) { ArticleItemBean articleItemBean = getArticleItemBean(); articleItemBean.delete(); WFUtil.addMessageVB(ab.findComponent(DELETE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, "delete_successful"); } | public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { //We have the ... |
bean.getContentLanguage(); | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleItemBean(); //String articlePath = (String)WFUt... | |
tb.setSelectedMenuItemId(TASK_ID_MESSAGES); | public void setMessageMode() { WFTabbedPane tb = (WFTabbedPane) findComponent(TASKBAR_ID); tb.setSelectedMenuItemId(TASK_ID_MESSAGES); } | |
WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); | WFUtil.addErrorMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); | public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... |
WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); WFUtil.addMessage(findComponent(SAVE_ID),e.getClass().getName()+" : "+e.getMessage()); | WFUtil.addErrorMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); | public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... |
if (getHeadline().trim().equals("")) { | if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;// } // if (getRequestedSt... |
ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | |
throw new Exception(); | throw new Exception("Invalid stack state"); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
int depth = 0; | int mdepth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
sb.append(indent,0,depth); | sb.append(indent,0,mdepth); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
depth += 2; | mdepth += 2; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
depth -= 2; | mdepth -= 2; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
if (depth > _qPtr/2) { | if (mdepth > _qPtr/2) { | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
if (depth < 0) { | if (mdepth < 0) { | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
depth = 0; | mdepth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); | sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS:" + "depth=" + depth + " " + "lastOpen=" + lastOpen + " " + "next=" + next + " " + "last=" + last + " " + "buf.length=" + buf.length); e.printStackTrace(); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... |
throw new PropertyException("No method to set \"" + _vname + | throw new PropertyException("No method to set \"" + getVariableName() + | public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null... |
return "property:" + _vname; | return "property:" + getVariableName(); | public final String toString () { return "property:" + _vname; } |
WFTabbedPane tab = getWFTabbedPane(); | WFTabbedPane tab = getTabbedPane(); | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } |
return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); | return (EditArticleView) tab.getTabView(TASK_ID_EDIT); | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } |
super.initializeComponent(context); | UISaveState beanSaveState = new UISaveState(); ValueBinding binding = WFUtil.createValueBinding("#{"+ARTICLE_ITEM_BEAN_ID+"}"); beanSaveState.setId("articleItemBeanSaveState"); beanSaveState.setValueBinding("value",binding); add(beanSaveState); | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... |
String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView()); tb.addTabVB(TAS... | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | |
rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString()); | rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+ARTICLE_SUFFIX,articleDoc.toString()); | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) | public HTMLReport(Coverage coverage, File outputDir, File sourceDir) | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... |
this.coverage = CoverageUnmarshaller.parse(coverageData); | this.coverage = coverage; | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... |
xsdType = "xsd:string"; | xsdType = "xs:string"; | public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xsd:string"; } return xsdType; } |
addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); moveNoteSubmenu.add(moveNoteLeft); moveNoteSubmenu.add(moveNoteRight); moveNoteSubmenu.add(moveNoteUp); moveNoteSubmenu.add(m... | public void populateMenuBar(MenuManager menuBar) { noteMenu = new MenuManager("&Note"); menuBar.add(noteMenu); addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); mo... | |
addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); | addNoteSubmenuTree = new DisableableMenuManager("&Add Note"); addNoteSubmenuAndActions.addActionsToMenuManager(addNoteSubmenuTree); addNoteSubmenuAndActions.add(addNoteSubmenuTree); treeContextMenu.add(addNoteSubmenuTree); | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... |
moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add(moveNoteLeft); moveNoteTreeSubmenu.add(moveNoteRight); moveNoteTreeSubmenu.add(moveNoteUp); moveNoteTreeSubmenu.add(moveNoteDown); treeContextMenu.add(moveNoteTreeSubmenu); | moveNoteSubmenuTree = new DisableableMenuManager("&Move Note"); moveNoteSubmenuAndActions.addActionsToMenuManager(moveNoteSubmenuTree); moveNoteSubmenuAndActions.add(moveNoteSubmenuTree); treeContextMenu.add(moveNoteSubmenuTree); | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... |
treeContextMenu.add(removeNotes); treeContextMenu.add(renameNote); | ungroupedActions.addActionsToMenuManager(treeContextMenu); | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... |
if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNoteSubmenu.setVisible(false); | if (!tree.hasFocus()) { allSubmenusAndActions.setEnabled(false); return; } if (tree.hasFocus() && tree.getSelectionCount() == 1) { allSubmenusAndActions.setEnabled(true); removeNotes.setText("Remove Note"); } else { allSubmenusAndActions.setEnabled(false); if (tree.isEmpty()) { addNoteSubmenuAndActions.setEnabled... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... |
renameNote.setEnabled(false); | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | |
} else { addNoteSubmenu.setVisible(false); moveNoteSubmenu.setVisible(false); removeNotes.setEnabled(false); renameNote.setEnabled(false); | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | |
public DisplayedDocument(Shell shell) { | public DisplayedDocument(Shell shell, Listener listener, Dispatcher dispatcher) { | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... |
Dispatcher dispatcher = new Dispatcher(); Listener listener = new Listener(dispatcher); | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | |
{ load(fileName,this.getClass().getClassLoader()); | { ClassLoader cl = this.getClass().getClassLoader(); URL u = cl.getResource(fileName); if (u == null) { u = ClassLoader.getSystemResource(fileName); } if (u == null) { StringBuffer error = new StringBuffer(); error.append("Unable to locate the configuration file: "); error.append(fileName); error.append("\n"); error.ap... | public void load(String fileName) throws InitException, IOException { load(fileName,this.getClass().getClassLoader()); } |
List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); | getLocalizedArticle().addImage(imageData, contentType); | public void addImage(byte[] imageData, String contentType) { List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); } |
super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null); _isUpdated = false; setFolderLocation(null); | getLocalizedArticle().clear(); | public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; setFolderLocation(null); } |
XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.getBytes("UTF-8"))); bodyElement = bodyDoc.getRootElement(); } XMLEle... | return getLocalizedArticle().getAsXML(); | public String getAsXML() throws IOException, XMLException { XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.ge... |
public String getAuthor() { return (String)getValue(FIELDNAME_AUTHOR); } | public String getAuthor() { return getLocalizedArticle().getAuthor(); } | public String getAuthor() { return (String)getValue(FIELDNAME_AUTHOR); } |
public String getBody() { return (String)getValue(FIELDNAME_BODY); } | public String getBody() { return getLocalizedArticle().getBody(); } | public String getBody() { return (String)getValue(FIELDNAME_BODY); } |
public String getComment() { return (String)getValue(FIELDNAME_COMMENT); } | public String getComment() { return getLocalizedArticle().getComment(); } | public String getComment() { return (String)getValue(FIELDNAME_COMMENT); } |
public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; | public String[] getContentFieldNames() { return getLocalizedArticle().getContentFieldNames(); | public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; } |
return "article_"; | return getLocalizedArticle().getContentItemPrefix(); | public String getContentItemPrefix() { return "article_"; } |
public String getContentLanguage() { return (String)getValue(FIELDNAME_CONTENT_LANGUAGE); } | public String getContentLanguage() { return getLocalizedArticle().getContentLanguage(); } | public String getContentLanguage() { return (String)getValue(FIELDNAME_CONTENT_LANGUAGE); } |
public String getHeadline() { return (String)getValue(FIELDNAME_HEADLINE); } | public String getHeadline() { return getLocalizedArticle().getHeadline(); } | public String getHeadline() { return (String)getValue(FIELDNAME_HEADLINE); } |
public List getImages() { return getItemFields(FIELDNAME_IMAGES); } | public List getImages() { return getLocalizedArticle().getImages(); } | public List getImages() { return getItemFields(FIELDNAME_IMAGES); } |
public String getLanguageChange() { return (String)getValue(FIELDNAME_LANGUAGE_CHANGE); } | public String getLanguageChange() { return languageChange; } | public String getLanguageChange() { return (String)getValue(FIELDNAME_LANGUAGE_CHANGE); } |
public String getSource() { return (String)getValue(FIELDNAME_SOURCE); } | public String getSource() { return getLocalizedArticle().getSource(); } | public String getSource() { return (String)getValue(FIELDNAME_SOURCE); } |
public String getTeaser() { return (String)getValue(FIELDNAME_TEASER); } | public String getTeaser() { return getLocalizedArticle().getTeaser(); } | public String getTeaser() { return (String)getValue(FIELDNAME_TEASER); } |
public String[] getToolbarActions(){ return super.getToolbarActions(); | public String[] getToolbarActions() { return getLocalizedArticle().getToolbarActions(); | public String[] getToolbarActions(){ //return ACTION_ARRAY; return super.getToolbarActions(); } |
public boolean isUpdated() { return _isUpdated; } | public boolean isUpdated() { return getLocalizedArticle().isUpdated(); } | public boolean isUpdated() { return _isUpdated; } |
public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResource.getChildResourc... | protected boolean load(String path) throws Exception { return super.load(path); | public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc... |
String articlePath = ArticleUtil.getArticleRootPath(); | String articlePath = ArticleUtil.getArticleBaseFolderPath(); | private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... |
String body = getBody(); if(body!=null){ Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bais = new ByteArrayInputStream(body.getBytes("UTF-8")); ByteArrayOutputStream baos = new ByteArrayOutputStream(); tidy.parse(bais, ba... | getLocalizedArticle().prettifyBody(); | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... |
int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} | getLocalizedArticle().removeImage(imageNumber); | public void removeImage(Integer imageNumber) { int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} } |
public void setAuthor(String s) { setValue(FIELDNAME_AUTHOR, s); } | public void setAuthor(String s) { getLocalizedArticle().setAuthor(s); } | public void setAuthor(String s) { setValue(FIELDNAME_AUTHOR, s); } |
setValue(FIELDNAME_BODY, body); | getLocalizedArticle().setBody(body); | public void setBody(String body) { setValue(FIELDNAME_BODY, body);// if (null != articleIn) {//// System.out.println("ArticleIn = "+articleIn);// //Use JTidy to clean up the html// Tidy tidy = new Tidy();// tidy.setXHTML(true);// tidy.setXmlOut(true);// ByteArrayInputStream bais = new ByteArrayInputStrea... |
public void setComment(String s) { setValue(FIELDNAME_COMMENT, s); } | public void setComment(String s) { getLocalizedArticle().setComment(s); } | public void setComment(String s) { setValue(FIELDNAME_COMMENT, s); } |
public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } | public void setHeadline(Object o) { getLocalizedArticle().setHeadline(o); } | public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } |
public void setImages(List l) { setItemFields(FIELDNAME_IMAGES, l); } | public void setImages(List l) { getLocalizedArticle().setImages(l); } | public void setImages(List l) { setItemFields(FIELDNAME_IMAGES, l); } |
public void setLanguageChange(String s) { setValue(FIELDNAME_LANGUAGE_CHANGE, s); } | public void setLanguageChange(String s) { languageChange=s; } | public void setLanguageChange(String s) { setValue(FIELDNAME_LANGUAGE_CHANGE, s); } |
protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); | protected void setPublished() { getLocalizedArticle().setPublished(); | protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); } |
public void setSource(String s) { setValue(FIELDNAME_SOURCE, s); } | public void setSource(String s) { getLocalizedArticle().setSource(s); } | public void setSource(String s) { setValue(FIELDNAME_SOURCE, s); } |
public void setTeaser(String s) { setValue(FIELDNAME_TEASER, s); } | public void setTeaser(String s) { getLocalizedArticle().setTeaser(s); } | public void setTeaser(String s) { setValue(FIELDNAME_TEASER, s); } |
public void setUpdated(boolean b) { _isUpdated = b; } | public void setUpdated(boolean b) { getLocalizedArticle().setUpdated(b); } | public void setUpdated(boolean b) { _isUpdated = b; } |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); | public void store() throws IDOStoreException { if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { ArticleStoreException exception = new ArticleStoreException(); exception.setErrorKey(ArticleStoreException.KEY_ERROR_HEADLINE_EMPTY); throw exception; } if (getBody().trim().equals("")) { ArticleStoreEx... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... |
if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; | String articleFolderPath = getResourcePath(); boolean hadToCreate = session.createAllFoldersInPath(articleFolderPath); if(hadToCreate){ String fixedFolderURL = session.getURI(articleFolderPath); rootResource.proppatchMethod(fixedFolderURL,PROPERTY_CONTENT_TYPE,"LocalizedFile",true); } else{ rootResource.proppatchMeth... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... |
if(storeOk){ try { IWUserContext iwuc = IWContext.getInstance(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String filePath=getResourcePath(); String articleFolderPath=getArticlePath(); if(article... | catch(ArticleStoreException ase){ throw ase; | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... |
if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); | catch(Exception e){ throw new RuntimeException(e); | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... |
protected void tryPublish(){ setPublished(); | protected void tryPublish() { getLocalizedArticle().tryPublish(); | protected void tryPublish(){ //TODO: Implement publishing here: setPublished(); } |
System.out.println("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); | log.info("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); | public void makePizza() { System.out.println("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); } |
public ClassData getOrCreateClassData(String name) | public synchronized ClassData getOrCreateClassData(String name) | public ClassData getOrCreateClassData(String name) { ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); addClassData(classData); } return classData; } |
titlePanel.setTitle(title); | titlePanel.setTitle(Res.getString("title.person.search")); | public void showService(String service) { if (serviceMap.containsKey(service)) { cardLayout.show(cardPanel, service); } else { // Create new Form SearchForm searchForm = new SearchForm(service); cardPanel.add(searchForm, service); serviceMa... |
searchResults.invalidate(); searchResults.validate(); searchResults.repaint(); | public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea... | |
FastWriter fw = new FastWriter(os, "UTF8"); | FastWriter fw = new FastWriter(os, context.getEncoding()); | final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ... |
return os.toString("UTF8"); | return os.toString(context.getEncoding()); | final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ... |
public void setColumnNames(String[] colNames){ _colNames = colNames; } | public void setColumnNames(String[] colNames){ if (_caseSensitive){ _colNames = colNames; } else { _colNames = new String[colNames.length]; for (int i=0; i<colNames.length; i++){ _colNames[i] = colNames[i].toUpperCase(); } } } | public void setColumnNames(String[] colNames){ _colNames = colNames; } |
setFolderLocation(null); | public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; } | |
tryPublish(); | public Boolean storeArticle() { try { store(); }catch(ArticleStoreException e) { return new Boolean(false); } return new Boolean(true); } | |
ProviderManager.addIQProvider(Gateway.ELEMENT_NAME, Gateway.NAMESPACE, new Gateway.Provider()); | public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); } catch (Exception e) { Log.error(e); return... | |
Presence presence = statusBar.getPresence(); | Presence oldPresence = statusBar.getPresence(); Presence presence = new Presence(oldPresence.getType(), oldPresence.getStatus(), oldPresence.getPriority(), oldPresence.getMode()); | public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr... |
String version = SpringVersion.getVersion(); | String version = "2.0"; try { Class spring20Clazz = Class.forName("org.springframework.core.AttributeAccessorSupport"); version = "2.0"; } catch(ClassNotFoundException e) { version = "1.2.8"; } | public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = SpringVersion.getVersion(); String className = "org.apache.... |
String baseDir = "."; Vector filesToMerge = new Vector(); | File baseDir = null; List filesToMerge = new ArrayList(); | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... |
baseDir = args[++i]; | baseDir = new File(args[++i]); | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... |
filesToMerge.add(baseDir + File.separator + args[i]); | filesToMerge.add( new File(baseDir, args[i])); | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.