|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.uml.reveng.ImportCommon
public abstract class ImportCommon
Source language import class - GUI independent superclass.
Specific Swing and SWT/Eclipse importers will extend this class.
NOTE:Any change to the public API here must be tested in both Swing (standalone ArgoUML) and Eclipse (ArgoEclipse) environments.
| Field Summary | |
|---|---|
protected static int |
MAX_PROGRESS_IMPORT
The % maximum progress required to import. |
protected static int |
MAX_PROGRESS_PREPARE
The % maximum progress required to preparing for import. |
| Fields inherited from interface org.argouml.uml.reveng.ImportSettings |
|---|
DETAIL_CLASSIFIER, DETAIL_CLASSIFIER_FEATURE, DETAIL_FULL |
| Constructor Summary | |
|---|---|
protected |
ImportCommon()
|
| Method Summary | |
|---|---|
protected void |
doImport(org.argouml.taskmgmt.ProgressMonitor monitor)
Import the selected source modules. |
protected ImportInterface |
getCurrentModule()
|
java.lang.String |
getEncoding()
The default encoding. |
protected java.util.List<java.io.File> |
getFileList(org.argouml.taskmgmt.ProgressMonitor monitor)
Get the files. |
java.util.List<java.lang.String> |
getImportClasspath()
Deprecated. for 0.25.7 by tfmorris. This is a Java importer specific method. |
abstract int |
getImportLevel()
|
abstract java.lang.String |
getInputSourceEncoding()
|
java.util.List<java.lang.String> |
getLanguages()
Returns the possible languages in which the user can import the sources. |
protected java.util.Hashtable<java.lang.String,ImportInterface> |
getModules()
|
protected java.io.File |
getSelectedFile()
Deprecated. for 0.25.4 by tfmorris. Use getSelectedFiles(). |
protected java.io.File[] |
getSelectedFiles()
|
java.lang.String |
getSrcPath()
|
protected void |
initCurrentDiagram()
Compute and cache the current diagram interface. |
boolean |
isChangedOnly()
The flag for: changed/new files only. |
abstract boolean |
isChangedOnlySelected()
|
boolean |
isCreateDiagrams()
The flag for: create diagrams from imported code. |
abstract boolean |
isCreateDiagramsSelected()
|
boolean |
isDescend()
The flag for: descend directories recursively. |
abstract boolean |
isDescendSelected()
|
boolean |
isDiagramLayout()
The flag for: perform automatic diagram layout. |
abstract boolean |
isDiagramLayoutSelected()
|
boolean |
isMinimizeFigs()
The flag for: minimise class icons in diagrams. |
abstract boolean |
isMinimizeFigsSelected()
|
void |
layoutDiagrams(org.argouml.taskmgmt.ProgressMonitor monitor,
int startingProgress)
Layouts the diagrams. |
protected void |
setCurrentModule(ImportInterface module)
|
protected void |
setSelectedFile(java.io.File file)
Deprecated. for 0.25.5 by tfmorris. Use setSelectedFiles(File[]). |
protected void |
setSelectedFiles(java.io.File[] files)
|
protected void |
setSelectedSuffixFilter(org.argouml.util.SuffixFilter suffixFilter)
Set the selected (file) suffix filter. |
void |
setSrcPath(java.lang.String path)
Set path for processed directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.argouml.uml.reveng.ImportSettings |
|---|
isAttributeSelected, isDatatypeSelected |
| Field Detail |
|---|
protected static final int MAX_PROGRESS_PREPARE
protected static final int MAX_PROGRESS_IMPORT
| Constructor Detail |
|---|
protected ImportCommon()
| Method Detail |
|---|
public abstract int getImportLevel()
getImportLevel in interface ImportSettingsprotected void initCurrentDiagram()
public abstract java.lang.String getInputSourceEncoding()
getInputSourceEncoding in interface ImportSettingsprotected java.util.List<java.io.File> getFileList(org.argouml.taskmgmt.ProgressMonitor monitor)
monitor - progress monitor which can be used to cancel long running
request
public void setSrcPath(java.lang.String path)
path - the given pathpublic java.lang.String getSrcPath()
public abstract boolean isCreateDiagramsSelected()
isCreateDiagramsSelected in interface ImportSettingsisCreateDiagramsSelected in interface ImportSettingsInternalpublic abstract boolean isMinimizeFigsSelected()
isMinimizeFigsSelected in interface ImportSettingsisMinimizeFigsSelected in interface ImportSettingsInternalpublic abstract boolean isDiagramLayoutSelected()
isDiagramLayoutSelected in interface ImportSettingsInternalpublic abstract boolean isDescendSelected()
isDescendSelected in interface ImportSettingsInternalpublic abstract boolean isChangedOnlySelected()
isChangedOnlySelected in interface ImportSettingsInternalprotected java.util.Hashtable<java.lang.String,ImportInterface> getModules()
@Deprecated protected void setSelectedFile(java.io.File file)
setSelectedFiles(File[]).
file - the selected file@Deprecated protected java.io.File getSelectedFile()
getSelectedFiles().
protected void setSelectedFiles(java.io.File[] files)
protected void setSelectedSuffixFilter(org.argouml.util.SuffixFilter suffixFilter)
suffixFilter - the (file) suffix filterprotected java.io.File[] getSelectedFiles()
protected void setCurrentModule(ImportInterface module)
protected ImportInterface getCurrentModule()
public java.util.List<java.lang.String> getLanguages()
public boolean isDescend()
public boolean isChangedOnly()
public boolean isCreateDiagrams()
public boolean isMinimizeFigs()
public boolean isDiagramLayout()
public java.lang.String getEncoding()
public java.util.List<java.lang.String> getImportClasspath()
public void layoutDiagrams(org.argouml.taskmgmt.ProgressMonitor monitor,
int startingProgress)
monitor - the progress meter. Null if not progress updates desired.startingProgress - the actual progress until nowprotected void doImport(org.argouml.taskmgmt.ProgressMonitor monitor)
monitor - a ProgressMonitor to both receive progress updates and to be
polled for user requests to cancel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |