| javax.swing.JFrame tide.editor.MainEditorFrame
MainEditorFrame | public class MainEditorFrame extends JFrame (Code) | | The tIDE application top frame.
Contains also init stuff, management and so on.
|
Method Summary | |
public void | addProjectListener(ProjectListener pl) | public void | compileOnlyChangedFiles() Called on Shift F9. | public Future | compile_queued(List<SourceFile> sourceFiles, SourceFile rootOfBranchBuild, boolean compileAll) Inserts a compile command in the executor. | public static void | debugOut(String s) | public static void | debugOut(Throwable e) | public static void | displayErrorMessage(Throwable t, String title) | public boolean | editSettingsDialog(boolean firstCall, boolean exitIfCancelled) This edits the settings of the actual project. | public void | execute(FileItem src, boolean enableRemoteJMXAccess, String hprofCommand, String appArgs) | public void | execute(FileItem src, boolean enableRemoteJMXAccess, boolean launchDebugger, String hprofCommand, String appArgs) Executes the class corresponding to this src file. | public Future | executeTask(Runnable r) This is used as the main synchronization engine for global operations like compiling, generating jar, javaDoc. | public ProjectSettings | getActualProject() Never null, contains the infos about the actual opened project, ... | public File | getActualProjectFile() | public FileItem | getFileItem(String javaName, String fileName) Looks in the sources and if not found, in all libraries
javaName and fileName are normally parsed from a stacktrace in the output.
give empty fileName if the type has the same name. | public TrayIcon | getTideTrayIcon() Created at first call. | public static void | mainmet(String[] args) Starts tIDE. | public void | notifyProjectListenersProjectClosed() This call may take a "medium" time to execute. | public void | notifyProjectListenersProjectSaving() All listeners saves their data when called. | public void | reloadProject() | public void | removeProjectListener(ProjectListener pl) | public void | runAction_queued(String mainClassName, boolean enableRemoteJMXAccess, boolean launchDebugger, String hprofCommand, String applicationArguments_) All runs are started here. | public void | setFieldToView(FileItem item, String methodName) | public void | setMethodToView(FileItem item, String methodName) Causes a jump to the first method with the given name. | public void | setSourceOrItemToEditOrView(FileItem item, boolean selectInTree) Sourcefile or other text item. | public void | terminateTIDE() Called from the export dialog, if the checkbox is selected... | public void | writeInternalErrorLine(String error) Use this to show internal tIDE errors to the user. |
Alt1TideJarPack200URL | final public static String Alt1TideJarPack200URL(Code) | | |
LicenceHTMLBodyText | final public static String LicenceHTMLBodyText(Code) | | |
OfficialTideJarPack200URL | final public static String OfficialTideJarPack200URL(Code) | | |
PROJ_File_Extension | final static String PROJ_File_Extension(Code) | | |
compactUI | public static boolean compactUI(Code) | | |
compileAllAtStartup | public static boolean compileAllAtStartup(Code) | | |
debug | public static boolean debug(Code) | | |
editorControlPanel | final public JPanel editorControlPanel(Code) | | |
enableExperimental | public static boolean enableExperimental(Code) | | |
fixedWidthFontForProcesses | public static Font fixedWidthFontForProcesses(Code) | | |
lowMemoryMode | public static boolean lowMemoryMode(Code) | | |
noSearchTab | public static boolean noSearchTab(Code) | | |
redirectConsoleInTab | public static boolean redirectConsoleInTab(Code) | | |
useNewAST | public static boolean useNewAST(Code) | | |
MainEditorFrame | public MainEditorFrame(String[] args)(Code) | | Parameters: args - are the passed applications arguments |
compileOnlyChangedFiles | public void compileOnlyChangedFiles()(Code) | | Called on Shift F9. The displayed file is compiled.
|
compile_queued | public Future compile_queued(List<SourceFile> sourceFiles, SourceFile rootOfBranchBuild, boolean compileAll)(Code) | | Inserts a compile command in the executor.
IMPORTANT: all compilations are started from here.
Parameters: rootOfBranchBuild - null for a complete build Parameters: sourceFiles - the sources not belonging to the project are removed !TODO: implement a mechanism that remember the state before when compilation failed,otherwise, we get rapidly growing number of recompiled files... |
debugOut | public static void debugOut(String s)(Code) | | toggable System.out.println(s);
|
debugOut | public static void debugOut(Throwable e)(Code) | | toggable e.printStackTrace();
|
editSettingsDialog | public boolean editSettingsDialog(boolean firstCall, boolean exitIfCancelled)(Code) | | This edits the settings of the actual project. If none, starts a save action
true if the dialog was accepted (false if cancelled) |
execute | public void execute(FileItem src, boolean enableRemoteJMXAccess, boolean launchDebugger, String hprofCommand, String appArgs)(Code) | | Executes the class corresponding to this src file.
Must contain a public static main(String[] a) method AND must be compiled.
This action will be performed later, (just placed in the execution queue now)
|
executeTask | public Future executeTask(Runnable r)(Code) | | This is used as the main synchronization engine for global operations like compiling, generating jar, javaDoc.
This is NOT coupled with the ProcessesManager.
But you can pass the returned Future in the ProcessesManager.
|
getActualProject | public ProjectSettings getActualProject()(Code) | | Never null, contains the infos about the actual opened project, ...
|
getActualProjectFile | public File getActualProjectFile()(Code) | | null if not already saved. |
getFileItem | public FileItem getFileItem(String javaName, String fileName)(Code) | | Looks in the sources and if not found, in all libraries
javaName and fileName are normally parsed from a stacktrace in the output.
give empty fileName if the type has the same name. (often the case).
The compiler generate such paths where the name is the fileName.
|
getTideTrayIcon | public TrayIcon getTideTrayIcon()(Code) | | Created at first call.
|
mainmet | public static void mainmet(String[] args)(Code) | | Starts tIDE.
|
notifyProjectListenersProjectClosed | public void notifyProjectListenersProjectClosed()(Code) | | This call may take a "medium" time to execute. Because called at end, it has to wait until all calls have been performed.
(No thread are created).
|
notifyProjectListenersProjectSaving | public void notifyProjectListenersProjectSaving()(Code) | | All listeners saves their data when called. Without thread delay.
The editor, always listening saves the opened files.
|
reloadProject | public void reloadProject()(Code) | | |
runAction_queued | public void runAction_queued(String mainClassName, boolean enableRemoteJMXAccess, boolean launchDebugger, String hprofCommand, String applicationArguments_)(Code) | | All runs are started here.
TODO: offer to start in own console window.
Parameters: applicationArguments_ - if null, use actualProject.getAppArgs() |
setMethodToView | public void setMethodToView(FileItem item, String methodName)(Code) | | Causes a jump to the first method with the given name.
The mecanism goes through the syntax tree at its next refresh.
|
setSourceOrItemToEditOrView | public void setSourceOrItemToEditOrView(FileItem item, boolean selectInTree)(Code) | | Sourcefile or other text item.
The tree call this with arg selectInTree=false to avoid infinite recursion !
|
terminateTIDE | public void terminateTIDE()(Code) | | Called from the export dialog, if the checkbox is selected...
and from any progress dialog that took a long time and where the user selected it.
Put in the queue, to ensure all enqueued tasks have been terminated.
|
writeInternalErrorLine | public void writeInternalErrorLine(String error)(Code) | | Use this to show internal tIDE errors to the user. Don't abuse !
|
|
|