code
stringlengths
73
34.1k
label
stringclasses
1 value
protected void importUserFromFile() { CmsImportUserThread thread = new CmsImportUserThread( m_cms, m_ou, m_userImportList, getGroupsList(m_importGroups, true), getRolesList(m_importRoles, true), m_sendMail.getValue().booleanValue()); ...
java
private void toCorrectDateWithDay(Calendar date, WeekOfMonth week) { date.set(Calendar.DAY_OF_MONTH, 1); int daysToFirstWeekDayMatch = ((m_weekDay.toInt() + I_CmsSerialDateValue.NUM_OF_WEEKDAYS) - (date.get(Calendar.DAY_OF_WEEK))) % I_CmsSerialDateValue.NUM_OF_WEEKDAYS; date.add(Cal...
java
private void toNextDate(Calendar date, int interval) { long previousDate = date.getTimeInMillis(); if (!m_weekOfMonthIterator.hasNext()) { date.add(Calendar.MONTH, interval); m_weekOfMonthIterator = m_weeksOfMonth.iterator(); } toCorrectDateWithDay(date, m_weekOf...
java
public static boolean isResourceTypeIdFree(int id) { try { OpenCms.getResourceManager().getResourceType(id); } catch (CmsLoaderException e) { return true; } return false; }
java
protected Map<String, String> getGalleryOpenParams( CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param, String resource, long hashId) { Map<String, String> result = new HashMap<String, String>(); result.put(I_CmsGalleryProviderConstants.CONFIG_GALLER...
java
protected I_CmsSearchDocument appendFieldMappingsFromElementsOnThePage( I_CmsSearchDocument document, CmsObject cms, CmsResource resource, List<String> systemFields) { try { CmsFile file = cms.readFile(resource); CmsXmlContainerPage containerPage = CmsXml...
java
public void clearHandlers() { for (Map<String, CmsAttributeHandler> handlers : m_handlers) { for (CmsAttributeHandler handler : handlers.values()) { handler.clearHandlers(); } handlers.clear(); } m_handlers.clear(); m_handlers...
java
public void setDates(SortedSet<Date> dates, boolean checked) { m_checkBoxes.clear(); for (Date date : dates) { CmsCheckBox cb = generateCheckBox(date, checked); m_checkBoxes.add(cb); } reInitLayoutElements(); setDatesInternal(dates); }
java
public void setDatesWithCheckState(Collection<CmsPair<Date, Boolean>> datesWithCheckInfo) { SortedSet<Date> dates = new TreeSet<>(); m_checkBoxes.clear(); for (CmsPair<Date, Boolean> p : datesWithCheckInfo) { addCheckBox(p.getFirst(), p.getSecond().booleanValue()); dates...
java
private void addCheckBox(Date date, boolean checkState) { CmsCheckBox cb = generateCheckBox(date, checkState); m_checkBoxes.add(cb); reInitLayoutElements(); }
java
private void addDateWithCheckState(Date date, boolean checkState) { addCheckBox(date, checkState); if (!m_dates.contains(date)) { m_dates.add(date); fireValueChange(); } }
java
private CmsCheckBox generateCheckBox(Date date, boolean checkState) { CmsCheckBox cb = new CmsCheckBox(); cb.setText(m_dateFormat.format(date)); cb.setChecked(checkState); cb.getElement().setPropertyObject("date", date); return cb; }
java
private void reInitLayoutElements() { m_panel.clear(); for (CmsCheckBox cb : m_checkBoxes) { m_panel.add(setStyle(m_onlyLabels ? new Label(cb.getText()) : cb)); } }
java
private void setDatesInternal(SortedSet<Date> dates) { if (!m_dates.equals(dates)) { m_dates = new TreeSet<>(dates); fireValueChange(); } }
java
private Widget setStyle(Widget widget) { widget.setWidth(m_width); widget.getElement().getStyle().setDisplay(Display.INLINE_BLOCK); return widget; }
java
private List<CmsResource> getDetailContainerResources(CmsObject cms, CmsResource res) throws CmsException { CmsRelationFilter filter = CmsRelationFilter.relationsFromStructureId(res.getStructureId()).filterType( CmsRelationType.DETAIL_ONLY); List<CmsResource> result = Lists.newArrayList(); ...
java
private List<I_CmsSearchFieldMapping> getMappings() { CmsSearchManager manager = OpenCms.getSearchManager(); I_CmsSearchFieldConfiguration fieldConfig = manager.getFieldConfiguration(getParamFieldconfiguration()); CmsLuceneField field; List<I_CmsSearchFieldMapping> result = null; ...
java
public static void showErrorDialog(String message, String details) { Window window = prepareWindow(DialogWidth.wide); window.setCaption("Error"); window.setContent(new CmsSetupErrorDialog(message, details, null, window)); A_CmsUI.get().addWindow(window); }
java
protected Object getMacroBeanValue(Object bean, String property) { Object result = null; if ((bean != null) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(property)) { try { PropertyUtilsBean propBean = BeanUtilsBean.getInstance().getPropertyUtils(); result = pr...
java
public void setEndTime(final Date date) { if (!Objects.equals(m_model.getEnd(), date)) { m_model.setEnd(date); valueChanged(); } }
java
public void setEndType(final String value) { final EndType endType = EndType.valueOf(value); if (!endType.equals(m_model.getEndType())) { removeExceptionsOnChange(new Command() { public void execute() { switch (endType) { ...
java
public void setIsSeries(Boolean isSeries) { if (null != isSeries) { final boolean series = isSeries.booleanValue(); if ((null != m_model.getParentSeriesId()) && series) { m_removeSeriesBindingConfirmDialog.show(new Command() { public void exec...
java
public void setOccurrences(String occurrences) { int o = CmsSerialDateUtil.toIntWithDefault(occurrences, -1); if (m_model.getOccurrences() != o) { m_model.setOccurrences(o); valueChanged(); } }
java
public void setPattern(String patternType) { final PatternType type = PatternType.valueOf(patternType); if (type != m_model.getPatternType()) { removeExceptionsOnChange(new Command() { public void execute() { EndType oldEndType = m_model.getEndT...
java
public void setSeriesEndDate(Date date) { if (!Objects.equals(m_model.getSeriesEndDate(), date)) { m_model.setSeriesEndDate(date); valueChanged(); } }
java
public void setStartTime(final Date date) { if (!Objects.equals(m_model.getStart(), date)) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setStart(date); setPatternDefaultValues(date); ...
java
public void setWholeDay(Boolean isWholeDay) { if (m_model.isWholeDay() ^ ((null != isWholeDay) && isWholeDay.booleanValue())) { m_model.setWholeDay(isWholeDay); valueChanged(); } }
java
public void updateExceptions(SortedSet<Date> exceptions) { SortedSet<Date> e = null == exceptions ? new TreeSet<Date>() : exceptions; if (!m_model.getExceptions().equals(e)) { m_model.setExceptions(e); m_view.updateExceptions(); valueChanged(); siz...
java
I_CmsSerialDateServiceAsync getService() { if (SERVICE == null) { SERVICE = GWT.create(I_CmsSerialDateService.class); String serviceUrl = CmsCoreProvider.get().link("org.opencms.ade.contenteditor.CmsSerialDateService.gwt"); ((ServiceDefTarget)SERVICE).setServiceEntryPoi...
java
void setPatternDefaultValues(Date startDate) { if ((m_patternDefaultValues == null) || !Objects.equals(m_patternDefaultValues.getDate(), startDate)) { m_patternDefaultValues = new PatternDefaultValues(startDate); } }
java
private void initPatternControllers() { m_patternControllers.put(PatternType.NONE, new CmsPatternPanelNoneController()); m_patternControllers.put(PatternType.DAILY, new CmsPatternPanelDailyController(m_model, this)); m_patternControllers.put(PatternType.WEEKLY, new CmsPatternPanelWeeklyCont...
java
@Override public void begin(String namespace, String name, Attributes attributes) throws Exception { // not now: 6.0.0 // digester.setLogger(CmsLog.getLog(digester.getClass())); // Push an array to capture the parameter values if necessary if (m_paramCount > 0) { Object...
java
public void setPublishQueueShutdowntime(String publishQueueShutdowntime) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishQueueShutdowntime = Integer.parseInt(publishQueueShutdowntime); }
java
@PrefMetadata(type = CmsElementViewPreference.class) public String getElementView() { return m_settings.getAdditionalPreference(CmsElementViewPreference.PREFERENCE_NAME, false); }
java
@PrefMetadata(type = CmsHiddenBuiltinPreference.class) public String getExplorerFileEntryOptions() { if (m_settings.getExplorerFileEntryOptions() == null) { return ""; } else { return "" + m_settings.getExplorerFileEntryOptions(); } }
java
@PrefMetadata(type = CmsTimeWarpPreference.class) public String getTimeWarp() { long warp = m_settings.getTimeWarp(); return warp < 0 ? "" : "" + warp; // if timewarp < 0 (i.e. time warp is not set), use the empty string because we don't want the date selector widget to interpret the negative value...
java
public void setTimeWarp(String l) { long warp = CmsContextInfo.CURRENT_TIME; try { warp = Long.parseLong(l); } catch (NumberFormatException e) { // if parsing the time warp fails, it will be set to -1 (i.e. disabled) } m_settings.setTimeWarp(warp); }
java
public final void setExceptions(SortedSet<Date> dates) { m_exceptions.clear(); if (null != dates) { m_exceptions.addAll(dates); } }
java
public final void setIndividualDates(SortedSet<Date> dates) { m_individualDates.clear(); if (null != dates) { m_individualDates.addAll(dates); } for (Date d : getExceptions()) { if (!m_individualDates.contains(d)) { m_exceptions.remove(d); ...
java
public final void setWeekDay(WeekDay weekDay) { SortedSet<WeekDay> wds = new TreeSet<>(); if (null != weekDay) { wds.add(weekDay); } setWeekDays(wds); }
java
public final void setWeekDays(SortedSet<WeekDay> weekDays) { m_weekDays.clear(); if (null != weekDays) { m_weekDays.addAll(weekDays); } }
java
public final void setWeekOfMonth(WeekOfMonth weekOfMonth) { SortedSet<WeekOfMonth> woms = new TreeSet<>(); if (null != weekOfMonth) { woms.add(weekOfMonth); } setWeeksOfMonth(woms); }
java
public final void setWeeksOfMonth(SortedSet<WeekOfMonth> weeksOfMonth) { m_weeksOfMonth.clear(); if (null != weeksOfMonth) { m_weeksOfMonth.addAll(weeksOfMonth); } }
java
protected final boolean isDurationValid() { if (isValidEndTypeForPattern()) { switch (getEndType()) { case DATE: return (getStart().getTime() < (getSeriesEndDate().getTime() + DAY_IN_MILLIS)); case TIMES: return getOccurrences(...
java
protected final boolean isPatternValid() { switch (getPatternType()) { case DAILY: return isEveryWorkingDay() || isIntervalValid(); case WEEKLY: return isIntervalValid() && isWeekDaySet(); case MONTHLY: return isIntervalValid()...
java
protected final boolean isValidEndTypeForPattern() { if (getEndType() == null) { return false; } switch (getPatternType()) { case DAILY: case WEEKLY: case MONTHLY: case YEARLY: return (getEndType().equals(EndType.DATE) ...
java
protected final void setDefaultValue() { m_start = null; m_end = null; m_patterntype = PatternType.NONE; m_dayOfMonth = 0; m_exceptions.clear(); m_individualDates.clear(); m_interval = 0; m_isEveryWorkingDay = false; m_isWholeDay = false; ...
java
protected final void setDerivedEndType() { m_endType = getPatternType().equals(PatternType.NONE) || getPatternType().equals(PatternType.INDIVIDUAL) ? EndType.SINGLE : null != getSeriesEndDate() ? EndType.DATE : EndType.TIMES; }
java
public static String defaultHtml(HttpServletRequest request) { CmsObject cms = CmsFlexController.getController(request).getCmsObject(); // We only want the big red warning in Offline mode if (cms.getRequestContext().getCurrentProject().isOnlineProject()) { return "<div><!--Dynamic ...
java
private static String getEncodedInstance(String encodedResponse) { if (isReturnValue(encodedResponse) || isThrownException(encodedResponse)) { return encodedResponse.substring(4); } return encodedResponse; }
java
protected <T> Request doInvoke(ResponseReader responseReader, String methodName, RpcStatsContext statsContext, String requestData, AsyncCallback<T> callback) { RequestBuilder rb = doPrepareRequestBuilderImpl(responseReader, methodName, statsContext, requestData, callback); try { retu...
java
protected <T> RequestBuilder doPrepareRequestBuilder( ResponseReader responseReader, String methodName, RpcStatsContext statsContext, String requestData, AsyncCallback<T> callback) { RequestBuilder rb = doPrepareRequestBuilderImpl(responseReader, methodName, statsContext, requestData, callback)...
java
private <T> RequestBuilder doPrepareRequestBuilderImpl( ResponseReader responseReader, String methodName, RpcStatsContext statsContext, String requestData, AsyncCallback<T> callback) { if (getServiceEntryPoint() == null) { throw new NoServiceEntryPointSpecifiedException(); } RequestCallb...
java
private void deselectChildren(CmsTreeItem item) { for (String childId : m_childrens.get(item.getId())) { CmsTreeItem child = m_categories.get(childId); deselectChildren(child); child.getCheckBox().setChecked(false); if (m_selectedCategories.contains(childId...
java
private void normalizeSelectedCategories() { Collection<String> normalizedCategories = new ArrayList<String>(m_selectedCategories.size()); for (CmsTreeItem item : m_categories.values()) { if (item.getCheckBox().isChecked()) { normalizedCategories.add(item.getId()); ...
java
private void uncheckAll(CmsList<? extends I_CmsListItem> list) { for (Widget it : list) { CmsTreeItem treeItem = (CmsTreeItem)it; treeItem.getCheckBox().setChecked(false); uncheckAll(treeItem.getChildren()); } }
java
public static String getButtonName(String gallery) { StringBuffer sb = new StringBuffer(GUI_BUTTON_PREF); sb.append(gallery.toUpperCase()); sb.append(GUI_BUTTON_SUF); return sb.toString(); }
java
public boolean addDescriptor() { saveLocalization(); IndexedContainer oldContainer = m_container; try { createAndLockDescriptorFile(); unmarshalDescriptor(); updateBundleDescriptorContent(); m_hasMasterMode = true; m_container = create...
java
public void deleteDescriptorIfNecessary() throws CmsException { if (m_removeDescriptorOnCancel && (m_desc != null)) { m_cms.deleteResource(m_desc, CmsResourceDeleteMode.valueOf(2)); } }
java
public ConfigurableMessages getConfigurableMessages(CmsMessages defaultMessages, Locale locale) { return new ConfigurableMessages(defaultMessages, locale, m_configuredBundle); }
java
public CmsContextMenu getContextMenuForItem(Object itemId) { CmsContextMenu result = null; try { final Item item = m_container.getItem(itemId); Property<?> keyProp = item.getItemProperty(TableProperty.KEY); String key = (String)keyProp.getValue(); if ((nu...
java
public List<TableProperty> getEditableColumns(CmsMessageBundleEditorTypes.EditMode mode) { return m_editorState.get(mode).getEditableColumns(); }
java
public String getEditedFilePath() { switch (getBundleType()) { case DESCRIPTOR: return m_cms.getSitePath(m_desc); case PROPERTY: return null != m_lockedBundleFiles.get(getLocale()) ? m_cms.getSitePath(m_lockedBundleFiles.get(getLocale()).g...
java
public void handleChange(Object propertyId) { try { lockOnChange(propertyId); } catch (CmsException e) { LOG.debug(e); } if (isDescriptorProperty(propertyId)) { m_descriptorHasChanges = true; } if (isBundleProperty(propertyId)) { ...
java
public KeyChangeResult handleKeyChange(EntryChangeEvent event, boolean allLanguages) { if (m_keyset.getKeySet().contains(event.getNewValue())) { m_container.getItem(event.getItemId()).getItemProperty(TableProperty.KEY).setValue(event.getOldValue()); return KeyChangeResult.FAILED_DUPLICA...
java
public boolean handleKeyDeletion(final String key) { if (m_keyset.getKeySet().contains(key)) { if (removeKeyForAllLanguages(key)) { m_keyset.removeKey(key); return true; } else { return false; } } return true; ...
java
public void publish() { CmsDirectPublishDialogAction action = new CmsDirectPublishDialogAction(); List<CmsResource> resources = getBundleResources(); I_CmsDialogContext context = new A_CmsDialogContext("", ContextType.appToolbar, resources) { public void focus(CmsUUID structureId) ...
java
public void save() throws CmsException { if (hasChanges()) { switch (m_bundleType) { case PROPERTY: saveLocalization(); saveToPropertyVfsBundle(); break; case XML: saveLocalization(); ...
java
public void saveAsPropertyBundle() throws UnsupportedEncodingException, CmsException, IOException { switch (m_bundleType) { case XML: saveLocalization(); loadAllRemainingLocalizations(); createPropertyVfsBundleFiles(); saveToPropertyVf...
java
public void unlock() { for (Locale l : m_lockedBundleFiles.keySet()) { LockedFile f = m_lockedBundleFiles.get(l); f.tryUnlock(); } if (null != m_descFile) { m_descFile.tryUnlock(); } }
java
List<CmsResource> getBundleResources() { List<CmsResource> resources = new ArrayList<>(m_bundleFiles.values()); if (m_desc != null) { resources.add(m_desc); } return resources; }
java
private void createAndLockDescriptorFile() throws CmsException { String sitePath = m_sitepath + m_basename + CmsMessageBundleEditorTypes.Descriptor.POSTFIX; m_desc = m_cms.createResource( sitePath, OpenCms.getResourceManager().getResourceType(CmsMessageBundleEditorTypes.BundleTy...
java
private IndexedContainer createContainerForBundleWithDescriptor() throws IOException, CmsException { IndexedContainer container = new IndexedContainer(); // create properties container.addContainerProperty(TableProperty.KEY, String.class, ""); container.addContainerProperty(TableProper...
java
private IndexedContainer createContainerForBundleWithoutDescriptor() throws IOException, CmsException { IndexedContainer container = new IndexedContainer(); // create properties container.addContainerProperty(TableProperty.KEY, String.class, ""); container.addContainerProperty(TablePro...
java
private IndexedContainer createContainerForDescriptorEditing() { IndexedContainer container = new IndexedContainer(); // create properties container.addContainerProperty(TableProperty.KEY, String.class, ""); container.addContainerProperty(TableProperty.DESCRIPTION, String.class, ""); ...
java
private void createPropertyVfsBundleFiles() throws CmsIllegalArgumentException, CmsLoaderException, CmsException { String bundleFileBasePath = m_sitepath + m_basename + "_"; for (Locale l : m_localizations.keySet()) { CmsResource res = m_cms.createResource( bundleFileBasePat...
java
private EditorState getDefaultState() { List<TableProperty> cols = new ArrayList<TableProperty>(1); cols.add(TableProperty.TRANSLATION); return new EditorState(cols, false); }
java
private SortedProperties getLocalization(Locale locale) throws IOException, CmsException { if (null == m_localizations.get(locale)) { switch (m_bundleType) { case PROPERTY: loadLocalizationFromPropertyBundle(locale); break; cas...
java
private EditorState getMasterState() { List<TableProperty> cols = new ArrayList<TableProperty>(4); cols.add(TableProperty.KEY); cols.add(TableProperty.DESCRIPTION); cols.add(TableProperty.DEFAULT); cols.add(TableProperty.TRANSLATION); return new EditorState(cols, true); ...
java
private CmsMessageBundleEditorTypes.BundleType initBundleType() { String resourceTypeName = OpenCms.getResourceManager().getResourceType(m_resource).getTypeName(); return CmsMessageBundleEditorTypes.BundleType.toBundleType(resourceTypeName); }
java
private void initDescriptor() throws CmsXmlException, CmsException { if (m_bundleType.equals(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR)) { m_desc = m_resource; } else { //First try to read from same folder like resource, if it fails use CmsMessageBundleEditorTypes.getDes...
java
private void initEditorStates() { m_editorState = new HashMap<CmsMessageBundleEditorTypes.EditMode, EditorState>(); List<TableProperty> cols = null; switch (m_bundleType) { case PROPERTY: case XML: if (hasDescriptor()) { // bundle descriptor is present, k...
java
private void initHasMasterMode() throws CmsException { if (hasDescriptor() && m_cms.hasPermissions(m_desc, CmsPermissionSet.ACCESS_WRITE, false, CmsResourceFilter.ALL)) { m_hasMasterMode = true; } else { m_hasMasterMode = false; } }
java
private void initKeySetForXmlBundle() { // consider only available locales for (Locale l : m_locales) { if (m_xmlBundle.hasLocale(l)) { Set<Object> keys = new HashSet<Object>(); for (I_CmsXmlContentValue msg : m_xmlBundle.getValueSequence("Message", l).getVal...
java
private Collection<Locale> initLocales() { Collection<Locale> locales = null; switch (m_bundleType) { case DESCRIPTOR: locales = new ArrayList<Locale>(1); locales.add(Descriptor.LOCALE); break; case XML: case PROPERTY: ...
java
private void initPropertyBundle() throws CmsLoaderException, CmsException, IOException { for (Locale l : m_locales) { String filePath = m_sitepath + m_basename + "_" + l.toString(); CmsResource resource = null; if (m_cms.existsResource( filePath, ...
java
private void initXmlBundle() throws CmsException { CmsFile file = m_cms.readFile(m_resource); m_bundleFiles.put(null, m_resource); m_xmlBundle = CmsXmlContentFactory.unmarshal(m_cms, file); initKeySetForXmlBundle(); }
java
private boolean isBundleProperty(Object property) { return (property.equals(TableProperty.KEY) || property.equals(TableProperty.TRANSLATION)); }
java
private boolean isDescriptorProperty(Object property) { return (getBundleType().equals(BundleType.DESCRIPTOR) || (hasDescriptor() && (property.equals(TableProperty.KEY) || property.equals(TableProperty.DEFAULT) || property.equals(TableProperty...
java
private void loadAllRemainingLocalizations() throws CmsException, UnsupportedEncodingException, IOException { if (!m_alreadyLoadedAllLocalizations) { // is only necessary for property bundles if (m_bundleType.equals(BundleType.PROPERTY)) { for (Locale l : m_locales) { ...
java
private void loadLocalizationFromXmlBundle(Locale locale) { CmsXmlContentValueSequence messages = m_xmlBundle.getValueSequence("Message", locale); SortedProperties props = new SortedProperties(); if (null != messages) { for (I_CmsXmlContentValue msg : messages.getValues()) { ...
java
private void lockDescriptor() throws CmsException { if ((null == m_descFile) && (null != m_desc)) { m_descFile = LockedFile.lockResource(m_cms, m_desc); } }
java
private void lockLocalization(Locale l) throws CmsException { if (null == m_lockedBundleFiles.get(l)) { LockedFile lf = LockedFile.lockResource(m_cms, m_bundleFiles.get(l)); m_lockedBundleFiles.put(l, lf); } }
java
private void lockOnChange(Object propertyId) throws CmsException { if (isDescriptorProperty(propertyId)) { lockDescriptor(); } else { Locale l = m_bundleType.equals(BundleType.PROPERTY) ? m_locale : null; lockLocalization(l); } }
java
private boolean removeKeyForAllLanguages(String key) { try { if (hasDescriptor()) { lockDescriptor(); } loadAllRemainingLocalizations(); lockAllLocalizations(key); } catch (CmsException | IOException e) { LOG.warn("Not able loc...
java
private void removeXmlBundleFile() throws CmsException { lockLocalization(null); m_cms.deleteResource(m_resource, CmsResource.DELETE_PRESERVE_SIBLINGS); m_resource = null; }
java
private boolean renameKeyForAllLanguages(String oldKey, String newKey) { try { loadAllRemainingLocalizations(); lockAllLocalizations(oldKey); if (hasDescriptor()) { lockDescriptor(); } } catch (CmsException | IOException e) { L...
java
private boolean replaceValues(Locale locale) { try { SortedProperties localization = getLocalization(locale); if (hasDescriptor()) { for (Object itemId : m_container.getItemIds()) { Item item = m_container.getItem(itemId); String k...
java
private void saveLocalization() { SortedProperties localization = new SortedProperties(); for (Object itemId : m_container.getItemIds()) { Item item = m_container.getItem(itemId); String key = item.getItemProperty(TableProperty.KEY).getValue().toString(); String valu...
java
private void saveToBundleDescriptor() throws CmsException { if (null != m_descFile) { m_removeDescriptorOnCancel = false; updateBundleDescriptorContent(); m_descFile.getFile().setContents(m_descContent.marshal()); m_cms.writeFile(m_descFile.getFile()); } ...
java