Skip to content
Snippets Groups Projects
Commit 84b96e14 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Some minor code modifications for quality reasons.

parent 1c24f2b6
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,15 @@ org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= ...@@ -9,8 +9,15 @@ org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.6 org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
......
...@@ -98,8 +98,8 @@ public final class CurrentAnalysisEditorBean { ...@@ -98,8 +98,8 @@ public final class CurrentAnalysisEditorBean {
* Creates a new instance of this class. <b>Do not call this constructor manually. It will only be accessed by Spring.</b> * Creates a new instance of this class. <b>Do not call this constructor manually. It will only be accessed by Spring.</b>
*/ */
public CurrentAnalysisEditorBean() { public CurrentAnalysisEditorBean() {
this.availableComponents = new ComponentListContainer(Collections.<PluginContainer> emptyList(), Collections.<PluginContainer> emptyList(), this.availableComponents = new ComponentListContainer(Collections.<PluginContainer>emptyList(), Collections.<PluginContainer>emptyList(),
Collections.<RepositoryContainer> emptyList()); Collections.<RepositoryContainer>emptyList());
} }
/** /**
...@@ -373,16 +373,29 @@ public final class CurrentAnalysisEditorBean { ...@@ -373,16 +373,29 @@ public final class CurrentAnalysisEditorBean {
this.setModificationsFlag(); this.setModificationsFlag();
} }
/**
* This method sets the property {@link CurrentAnalysisEditorBean#unsavedModifications} to false and refreshes the necessary components within the analysis
* editor * to make this visible.
*/
private synchronized void clearModificationsFlag() { private synchronized void clearModificationsFlag() {
this.unsavedModifications = false; this.unsavedModifications = false;
RequestContext.getCurrentInstance().update("menuForm"); RequestContext.getCurrentInstance().update("menuForm");
} }
/**
* This method sets the property {@link CurrentAnalysisEditorBean#unsavedModifications} to true and refreshes the necessary components within the analysis editor
* to make this visible.
*/
private synchronized void setModificationsFlag() { private synchronized void setModificationsFlag() {
this.unsavedModifications = true; this.unsavedModifications = true;
RequestContext.getCurrentInstance().update("menuForm"); RequestContext.getCurrentInstance().update("menuForm");
} }
/**
* Getter for the property {@link CurrentAnalysisEditorBean#unsavedModifications}.
*
* @return The current value of the property.
*/
public synchronized boolean isUnsavedModification() { public synchronized boolean isUnsavedModification() {
return this.unsavedModifications; return this.unsavedModifications;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment